Files
brave-core/browser/ui/commander/window_command_source.h
Claudio DeSouza cffb249298 [cr149] FindLastActiveWithProfile returning BWI
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}
2026-05-22 16:24:59 -04:00

35 lines
1.2 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 2021 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_WINDOW_COMMAND_SOURCE_H_
#define BRAVE_BROWSER_UI_COMMANDER_WINDOW_COMMAND_SOURCE_H_
#include "brave/browser/ui/commander/command_source.h"
namespace commander {
// Command source for window-related commands.
class WindowCommandSource : public CommandSource {
public:
WindowCommandSource();
~WindowCommandSource() override;
WindowCommandSource(const WindowCommandSource& other) = delete;
WindowCommandSource& operator=(const WindowCommandSource& other) = delete;
// Command source overrides
CommandSource::CommandResults GetCommands(
const std::u16string& input,
BrowserWindowInterface* browser) const override;
};
} // namespace commander
#endif // BRAVE_BROWSER_UI_COMMANDER_WINDOW_COMMAND_SOURCE_H_