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}
30 lines
980 B
C++
30 lines
980 B
C++
// Copyright (c) 2023 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/.
|
|
|
|
#ifndef BRAVE_BROWSER_UI_COMMANDER_SIMPLE_COMMAND_SOURCE_H_
|
|
#define BRAVE_BROWSER_UI_COMMANDER_SIMPLE_COMMAND_SOURCE_H_
|
|
|
|
#include "brave/browser/ui/commander/command_source.h"
|
|
|
|
namespace commander {
|
|
|
|
class SimpleCommandSource : public CommandSource {
|
|
public:
|
|
SimpleCommandSource();
|
|
~SimpleCommandSource() override;
|
|
|
|
SimpleCommandSource(const SimpleCommandSource& other) = delete;
|
|
SimpleCommandSource& operator=(const SimpleCommandSource& other) = delete;
|
|
|
|
// CommandSource:
|
|
CommandSource::CommandResults GetCommands(
|
|
const std::u16string& input,
|
|
BrowserWindowInterface* browser) const override;
|
|
};
|
|
|
|
} // namespace commander
|
|
|
|
#endif // BRAVE_BROWSER_UI_COMMANDER_SIMPLE_COMMAND_SOURCE_H_
|