Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(348)

Unified Diff: chrome/browser/ui/ash/accelerator_commands_browsertest.cc

Issue 2901663003: chromeos: converts WindowState to aura::Window (Closed)
Patch Set: feedback Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/wm_window.cc ('k') | chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/ash/accelerator_commands_browsertest.cc
diff --git a/chrome/browser/ui/ash/accelerator_commands_browsertest.cc b/chrome/browser/ui/ash/accelerator_commands_browsertest.cc
index 44fb02393d6d5247b04aa64e5dc03c27855a2b6b..4b13aa033d881adb6f7a4c15aeaf5f59c9db6391 100644
--- a/chrome/browser/ui/ash/accelerator_commands_browsertest.cc
+++ b/chrome/browser/ui/ash/accelerator_commands_browsertest.cc
@@ -7,7 +7,6 @@
#include "ash/accelerators/accelerator_commands_aura.h"
#include "ash/shell.h"
#include "ash/wm/window_state.h"
-#include "ash/wm_window.h"
#include "base/command_line.h"
#include "base/macros.h"
#include "build/build_config.h"
@@ -22,6 +21,7 @@
#include "extensions/browser/app_window/native_app_window.h"
#include "services/ui/public/interfaces/window_manager_constants.mojom.h"
#include "ui/aura/client/aura_constants.h"
+#include "ui/aura/window.h"
#include "ui/views/widget/widget.h"
#include "ui/views/widget/widget_delegate.h"
@@ -72,8 +72,7 @@ IN_PROC_BROWSER_TEST_F(AcceleratorCommandsBrowserTest, ToggleMaximized) {
// When in fullscreen accelerators::ToggleMaximized gets out of fullscreen.
EXPECT_FALSE(window_state->IsFullscreen());
- Browser* browser = chrome::FindBrowserWithWindow(
- ash::WmWindow::GetAuraWindow(window_state->window()));
+ Browser* browser = chrome::FindBrowserWithWindow(window_state->window());
ASSERT_TRUE(browser);
chrome::ToggleFullscreenMode(browser);
EXPECT_TRUE(window_state->IsFullscreen());
@@ -139,9 +138,8 @@ IN_PROC_BROWSER_TEST_P(AcceleratorCommandsFullscreenBrowserTest,
// 2) ToggleFullscreen() should have no effect on windows which cannot be
// maximized.
- ash::WmWindow::GetAuraWindow(window_state->window())
- ->SetProperty(aura::client::kResizeBehaviorKey,
- ui::mojom::kResizeBehaviorNone);
+ window_state->window()->SetProperty(aura::client::kResizeBehaviorKey,
+ ui::mojom::kResizeBehaviorNone);
ash::accelerators::ToggleFullscreen();
EXPECT_TRUE(IsInitialShowState(window_state));
« no previous file with comments | « ash/wm_window.cc ('k') | chrome/browser/ui/views/apps/chrome_native_app_window_views_aura_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698