gd: Add Additional Const
Code cleanup to add additional const. Bug: None Test: Manual verification and all tests pass Change-Id: If247866dcce1fa4095f82584c1d868b1875089a2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/5692219 Commit-Queue: Gina Domergue <gdomergue@google.com> Reviewed-by: Prameet Shah <phshah@chromium.org> Cr-Commit-Position: refs/heads/main@{#1327632}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
19dbf0a88a
commit
7a5056a371
@ -1050,7 +1050,7 @@ void GameDashboardMainMenuView::AddShortcutTilesRow() {
|
||||
}
|
||||
|
||||
void GameDashboardMainMenuView::MaybeAddArcFeatureRows() {
|
||||
aura::Window* game_window = context_->game_window();
|
||||
const aura::Window* game_window = context_->game_window();
|
||||
if (!IsArcWindow(game_window)) {
|
||||
return;
|
||||
}
|
||||
|
@ -65,7 +65,8 @@ views::Widget* GetNextWidgetToFocus(
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
std::optional<ArcGameControlsFlag> GetGameControlsFlag(aura::Window* window) {
|
||||
std::optional<ArcGameControlsFlag> GetGameControlsFlag(
|
||||
const aura::Window* window) {
|
||||
if (!IsArcWindow(window)) {
|
||||
return std::nullopt;
|
||||
}
|
||||
|
@ -52,7 +52,8 @@ ASH_EXPORT views::Widget* GetNextWidgetToFocus(
|
||||
|
||||
// Returns flags value if `window` is an ARC game window. Otherwise, it returns
|
||||
// nullopt.
|
||||
std::optional<ArcGameControlsFlag> GetGameControlsFlag(aura::Window* window);
|
||||
std::optional<ArcGameControlsFlag> GetGameControlsFlag(
|
||||
const aura::Window* window);
|
||||
|
||||
// Updates Game Controls mapping hint button, such as button enabled state,
|
||||
// toggled state, label text and tooltip text. `button` refers to
|
||||
|
Reference in New Issue
Block a user