summaryrefslogtreecommitdiffstats
path: root/ui/aura/desktop.cc
diff options
context:
space:
mode:
authoroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 21:34:17 +0000
committeroshima@chromium.org <oshima@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-11-22 21:34:17 +0000
commitace7ca0c74a46611c404e399fc35cee45ba840e4 (patch)
treeba4c74175841f8503f7f2667a481c6e2cdba2659 /ui/aura/desktop.cc
parentd604bdbf601e723fb81773d4044e4417941a6f2b (diff)
downloadchromium_src-ace7ca0c74a46611c404e399fc35cee45ba840e4.zip
chromium_src-ace7ca0c74a46611c404e399fc35cee45ba840e4.tar.gz
chromium_src-ace7ca0c74a46611c404e399fc35cee45ba840e4.tar.bz2
Implement ui_controls for aura
- Move windows impl to ui_controls_internal_win.cc so that aurawin can use it. - For windows, we can simply adjust coordinates, so ConvertPointToNativeScreen is added. - Aurax11 uses PostNativeEvent to send event. I changed XPutBackEvent to XSendEvent as PutBackEvent puts the event at the top. - Aurax11 uses synthesized flash event to run "run-after-events" task. - exclude events_x.cc from gtk build as it's not necessary. BUG=103497, 104396 TEST=following tests now passes on aura PrintDialogCloudTest.HandlersRegistered (browser tests) several tests in interactive_ui_tests (MenuModelAdapterTest,MenuItemViewTestInsert00) now passes. I'll post the list in the bug. Review URL: http://codereview.chromium.org/8585015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@111219 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/aura/desktop.cc')
-rw-r--r--ui/aura/desktop.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/ui/aura/desktop.cc b/ui/aura/desktop.cc
index a4aa58e..b3a8b8a 100644
--- a/ui/aura/desktop.cc
+++ b/ui/aura/desktop.cc
@@ -377,6 +377,11 @@ void Desktop::PostNativeEvent(const base::NativeEvent& native_event) {
host_->PostNativeEvent(native_event);
}
+void Desktop::ConvertPointToNativeScreen(gfx::Point* point) const {
+ gfx::Point location = host_->GetLocationOnNativeScreen();
+ point->Offset(location.x(), location.y());
+}
+
void Desktop::SetCapture(Window* window) {
if (capture_window_ == window)
return;