This change allows a couple of more places to be migrated to `BrowserWindowInterface`. Chromium changes: https://chromium.googlesource.com/chromium/src/+/e8d0df41d25900497716dd3a4b070c6436fa1a97 commit e8d0df41d25900497716dd3a4b070c6436fa1a97 Author: Kun Wang <kunwang@microsoft.com> Date: Wed Apr 15 23:35:39 2026 -0700 [bedrock] Migrate FindLastActiveWithProfile Step 1 Bug: 494010890 Change-Id: Ie0385deeda2e2f28baf75a810ada0becf5807c78 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7753884 Reviewed-by: Thomas Lukaszewicz <tluk@chromium.org> Reviewed-by: Qikai Zhong <qikaizhong@microsoft.com> Commit-Queue: Kun Wang <kunwang@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1615659}
41 lines
1.4 KiB
C++
41 lines
1.4 KiB
C++
// Copyright (c) 2024 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 https://mozilla.org/MPL/2.0/.
|
|
|
|
// Based on Chromium code subject to the following license:
|
|
// Copyright 2020 The Chromium Authors
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
#ifndef BRAVE_BROWSER_UI_COMMANDER_BOOKMARK_COMMAND_SOURCE_H_
|
|
#define BRAVE_BROWSER_UI_COMMANDER_BOOKMARK_COMMAND_SOURCE_H_
|
|
|
|
#include "brave/browser/ui/commander/command_source.h"
|
|
|
|
class BrowserWindowInterface;
|
|
|
|
namespace commander {
|
|
|
|
// Provides an "Open Bookmark..." composite command which lets the user
|
|
// search for a bookmark to open. If the user has typed a minimum threshold
|
|
// of characters, this will also return matching individual bookmark commands
|
|
// directly.
|
|
class BookmarkCommandSource : public CommandSource {
|
|
public:
|
|
BookmarkCommandSource();
|
|
~BookmarkCommandSource() override;
|
|
|
|
BookmarkCommandSource(const BookmarkCommandSource& other) = delete;
|
|
BookmarkCommandSource& operator=(const BookmarkCommandSource& other) = delete;
|
|
|
|
// Command source overrides
|
|
CommandSource::CommandResults GetCommands(
|
|
const std::u16string& input,
|
|
BrowserWindowInterface* browser) const override;
|
|
};
|
|
|
|
} // namespace commander
|
|
|
|
#endif // BRAVE_BROWSER_UI_COMMANDER_BOOKMARK_COMMAND_SOURCE_H_
|