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

Unified Diff: ui/aura/ui_controls_x11.cc

Issue 11419013: Add desktop vs. ash context to ui_controls Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 8 years, 1 month 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
« ash/shell.cc ('K') | « ui/aura/ui_controls_win.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/ui_controls_x11.cc
diff --git a/ui/aura/ui_controls_x11.cc b/ui/aura/ui_controls_x11.cc
index 47f37ee7dc879bf077678e84641cb47a3361ea65..19e5c4b36db1b09dd5b2910d3feda2e2b9c68a0c 100644
--- a/ui/aura/ui_controls_x11.cc
+++ b/ui/aura/ui_controls_x11.cc
@@ -12,11 +12,11 @@
#include "base/logging.h"
#include "base/message_pump_aurax11.h"
+#include "ui/aura/desktop_ui_controls.h"
#include "ui/aura/root_window.h"
-#include "ui/aura/ui_controls_aura.h"
#include "ui/base/keycodes/keyboard_code_conversion_x.h"
#include "ui/compositor/dip_util.h"
-#include "ui/ui_controls/ui_controls_aura.h"
+#include "ui/ui_controls/ui_controls.h"
namespace aura {
namespace {
@@ -77,10 +77,11 @@ bool Matcher(const base::NativeEvent& event) {
event->xclient.message_type == MarkerEventAtom();
}
-class UIControlsX11 : public ui_controls::UIControlsAura {
+class UIControlsX11 : public ui_controls::UIControls {
public:
- UIControlsX11(RootWindow* root_window) : root_window_(root_window) {
+ explicit UIControlsX11(RootWindow* root_window) : root_window_(root_window) {
}
+ virtual ~UIControlsX11() {}
virtual bool SendKeyPress(gfx::NativeWindow window,
ui::KeyboardCode key,
@@ -236,7 +237,7 @@ class UIControlsX11 : public ui_controls::UIControlsAura {
} // namespace
-ui_controls::UIControlsAura* CreateUIControlsAura(RootWindow* root_window) {
+ui_controls::UIControls* CreateDesktopUIControls(RootWindow* root_window) {
return new UIControlsX11(root_window);
}
« ash/shell.cc ('K') | « ui/aura/ui_controls_win.cc ('k') | ui/ui.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698