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

Unified Diff: chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc

Issue 37733003: Make GetRootWindow() return a Window instead of a RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 2 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
Index: chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc
diff --git a/chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc b/chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc
index dcf54e88ce193d3d9757ef401ef88759c1f9be51..d9aab04caeacfc4eb6547c4997ea08596a6e84ab 100644
--- a/chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc
+++ b/chrome/browser/ui/views/frame/app_non_client_frame_view_ash_browsertest.cc
@@ -78,7 +78,7 @@ class AppNonClientFrameViewAshTest : public InProcessBrowserTest {
return browser_frame->GetFrameView()->GetClassName();
}
- aura::RootWindow* GetRootWindow() const {
+ aura::Window* GetRootWindow() const {
BrowserView* browser_view =
static_cast<BrowserView*>(app_browser_->window());
views::Widget* widget = browser_view->GetWidget();
@@ -137,7 +137,7 @@ IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, SwitchFrames) {
// Ensure that we can click the close button when the controls are shown.
// In particular make sure that we can click it on the top pixel of the button.
IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, ClickClose) {
- aura::RootWindow* root_window = GetRootWindow();
+ aura::Window* root_window = GetRootWindow();
aura::test::EventGenerator eg(root_window, gfx::Point(0, 1));
// Click close button.
@@ -154,7 +154,7 @@ IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, ClickClose) {
// Ensure that closing a maximized app with Ctrl-W does not crash the
// application. crbug.com/147635
IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, KeyboardClose) {
- aura::RootWindow* root_window = GetRootWindow();
+ aura::Window* root_window = GetRootWindow();
aura::test::EventGenerator eg(root_window);
// Base browser and app browser.
@@ -176,7 +176,7 @@ IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, KeyboardClose) {
// Ensure that snapping left with Alt-[ closes the control window.
IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, SnapLeftClosesControls) {
- aura::RootWindow* root_window = GetRootWindow();
+ aura::Window* root_window = GetRootWindow();
aura::test::EventGenerator eg(root_window);
aura::Window* native_window = app_browser()->window()->GetNativeWindow();
@@ -196,7 +196,7 @@ IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, SnapLeftClosesControls) {
// Ensure that the controls are at the proper locations.
IN_PROC_BROWSER_TEST_F(AppNonClientFrameViewAshTest, ControlsAtRightSide) {
- aura::RootWindow* root_window = GetRootWindow();
+ aura::Window* root_window = GetRootWindow();
aura::test::EventGenerator eg(root_window);
aura::Window* native_window = app_browser()->window()->GetNativeWindow();
const gfx::Rect work_area =

Powered by Google App Engine
This is Rietveld 408576698