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

Unified Diff: ui/views/controls/menu/menu_controller_aura.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
« no previous file with comments | « ui/views/controls/menu/display_change_listener_aura.cc ('k') | ui/views/corewm/capture_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller_aura.cc
diff --git a/ui/views/controls/menu/menu_controller_aura.cc b/ui/views/controls/menu/menu_controller_aura.cc
index c65c97ff5b2ec338b381d3056c892bfe2eda3b48..48bf3118ff6f18f43280ea52ae41ff671d597fa9 100644
--- a/ui/views/controls/menu/menu_controller_aura.cc
+++ b/ui/views/controls/menu/menu_controller_aura.cc
@@ -9,7 +9,7 @@
#include "ui/aura/client/activation_client.h"
#include "ui/aura/client/dispatcher_client.h"
#include "ui/aura/client/drag_drop_client.h"
-#include "ui/aura/root_window.h"
+#include "ui/aura/window.h"
#include "ui/aura/window_observer.h"
#include "ui/gfx/screen.h"
#include "ui/views/widget/widget.h"
@@ -27,7 +27,7 @@ class ActivationChangeObserverImpl
public ui::EventHandler {
public:
ActivationChangeObserverImpl(MenuController* controller,
- aura::RootWindow* root)
+ aura::Window* root)
: controller_(controller),
root_(root) {
aura::client::GetActivationClient(root_)->AddObserver(this);
@@ -71,12 +71,12 @@ class ActivationChangeObserverImpl
}
MenuController* controller_;
- aura::RootWindow* root_;
+ aura::Window* root_;
DISALLOW_COPY_AND_ASSIGN(ActivationChangeObserverImpl);
};
-aura::RootWindow* GetOwnerRootWindow(views::Widget* owner) {
+aura::Window* GetOwnerRootWindow(views::Widget* owner) {
return owner ? owner->GetNativeWindow()->GetRootWindow() : NULL;
}
@@ -84,7 +84,7 @@ aura::RootWindow* GetOwnerRootWindow(views::Widget* owner) {
void MenuController::RunMessageLoop(bool nested_menu) {
// |owner_| may be NULL.
- aura::RootWindow* root = GetOwnerRootWindow(owner_);
+ aura::Window* root = GetOwnerRootWindow(owner_);
if (root) {
scoped_ptr<ActivationChangeObserverImpl> observer;
if (!nested_menu)
@@ -100,13 +100,13 @@ void MenuController::RunMessageLoop(bool nested_menu) {
}
bool MenuController::ShouldQuitNow() const {
- aura::RootWindow* root = GetOwnerRootWindow(owner_);
+ aura::Window* root = GetOwnerRootWindow(owner_);
return !aura::client::GetDragDropClient(root) ||
!aura::client::GetDragDropClient(root)->IsDragDropInProgress();
}
gfx::Screen* MenuController::GetScreen() {
- aura::RootWindow* root = GetOwnerRootWindow(owner_);
+ aura::Window* root = GetOwnerRootWindow(owner_);
return root ?
gfx::Screen::GetScreenFor(root) : gfx::Screen::GetNativeScreen();
}
« no previous file with comments | « ui/views/controls/menu/display_change_listener_aura.cc ('k') | ui/views/corewm/capture_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698