Chromium change: https://source.chromium.org/chromium/chromium/src/+/cd23b8b9d212daf06dde638488dbaa355d6651fa commit cd23b8b9d212daf06dde638488dbaa355d6651fa Author: Daniel Cheng <dcheng@chromium.org> Date: Fri Sep 16 17:16:24 2022 +0000 Move bind.h, callback{,_forward,_helpers}.h into //base/functional Forwarding headers remain in the old locations to ease migration. Include paths for files in //base/functional/ are also fixed up to the new canonical path; remaining fixups are deferred until followups to minimize the risk of conflicts. Bug: 1364441
28 lines
951 B
C++
28 lines
951 B
C++
/* Copyright (c) 2022 The Brave Authors. All rights reserved.
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
#ifndef BRAVE_BROWSER_BRAVE_SHELL_INTEGRATION_WIN_H_
|
|
#define BRAVE_BROWSER_BRAVE_SHELL_INTEGRATION_WIN_H_
|
|
|
|
#include "base/functional/callback.h"
|
|
#include "base/functional/callback_helpers.h"
|
|
|
|
class Profile;
|
|
|
|
namespace shell_integration::win {
|
|
|
|
// Pin profile-specific shortcut when |profile| is non-null.
|
|
void PinToTaskbar(
|
|
Profile* profile = nullptr,
|
|
base::OnceCallback<void(bool)> result_callback = base::DoNothing());
|
|
|
|
// Returns true when taskbar has any shortcuts(default or profile-specific
|
|
// ones).
|
|
void IsShortcutPinned(base::OnceCallback<void(bool)> result_callback);
|
|
|
|
} // namespace shell_integration::win
|
|
|
|
#endif // BRAVE_BROWSER_BRAVE_SHELL_INTEGRATION_WIN_H_
|