blob: 76bc87fed178c57b382cc1e3cf5bf682697dd37a [file] [log] [blame]
David Bienvenufa7a2cd2025-03-26 22:56:511// Copyright 2025 The Chromium Authors
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_WIN_TASKBAR_MANAGER_H_
6#define CHROME_BROWSER_WIN_TASKBAR_MANAGER_H_
7
David Bienvenuec47f982025-03-28 21:32:298#include <string>
9
David Bienvenufa7a2cd2025-03-26 22:56:5110#include "base/functional/callback_forward.h"
David Bienvenufa7a2cd2025-03-26 22:56:5111
12namespace browser_util {
13
14using PinResultCallback = base::OnceCallback<void(bool)>;
15
16// Functions to pin an icon for a Chrome window to the Windows taskbar, and to
17// check if Chrome should offer to pin. These functions do most of their work on
18// a background thread, but have to finish the work on the UI thread.
David Bienvenuf6e6c04e2025-04-01 22:11:4519// The result callback will be called from the thread that called them.
David Bienvenufa7a2cd2025-03-26 22:56:5120
21// `callback` is called with true if pinning is supported, and the app is not
22// currently pinned to the taskbar, false otherwise. There must be a shortcut
23// with `app_user_model_id` in the start menu for pinning to be supported.
David Bienvenu