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

Unified Diff: ui/views/controls/menu/menu_controller.cc

Issue 8771015: Rename Desktop->RootWindow. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years 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/base/ime/input_method.h ('k') | ui/views/test/views_test_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/menu/menu_controller.cc
===================================================================
--- ui/views/controls/menu/menu_controller.cc (revision 113260)
+++ ui/views/controls/menu/menu_controller.cc (working copy)
@@ -25,7 +25,7 @@
#include "ui/views/widget/widget.h"
#if defined(USE_AURA)
-#include "ui/aura/desktop.h"
+#include "ui/aura/root_window.h"
#elif defined(TOOLKIT_USES_GTK)
#include "ui/base/keycodes/keyboard_code_conversion_gtk.h"
#endif
@@ -884,7 +884,7 @@
base::MessagePumpDispatcher::DispatchStatus
MenuController::Dispatch(XEvent* xev) {
if (exit_type_ == EXIT_ALL || exit_type_ == EXIT_DESTROYED) {
- aura::Desktop::GetInstance()->GetDispatcher()->Dispatch(xev);
+ aura::RootWindow::GetInstance()->GetDispatcher()->Dispatch(xev);
return base::MessagePumpDispatcher::EVENT_QUIT;
}
switch (ui::EventTypeFromNative(xev)) {
@@ -904,7 +904,7 @@
// TODO(oshima): Update Windows' Dispatcher to return DispatchStatus
// instead of bool.
- if (aura::Desktop::GetInstance()->GetDispatcher()->Dispatch(xev) ==
+ if (aura::RootWindow::GetInstance()->GetDispatcher()->Dispatch(xev) ==
base::MessagePumpDispatcher::EVENT_IGNORED)
return EVENT_IGNORED;
return exit_type_ != EXIT_NONE ?
@@ -1947,7 +1947,7 @@
// Send non-op event so that Dispatch method will always be called.
// crbug.com/104684.
if (exit_type_ == EXIT_ALL || exit_type_ == EXIT_DESTROYED)
- aura::Desktop::GetInstance()->PostNativeEvent(ui::CreateNoopEvent());
+ aura::RootWindow::GetInstance()->PostNativeEvent(ui::CreateNoopEvent());
#endif
}
« no previous file with comments | « ui/base/ime/input_method.h ('k') | ui/views/test/views_test_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698