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

Unified Diff: ui/aura/desktop.cc

Issue 8585015: Implement ui_controls for aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 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
Index: ui/aura/desktop.cc
diff --git a/ui/aura/desktop.cc b/ui/aura/desktop.cc
index 74b5e4e127ddfcca1dd080d211cd78c3d054aaed..c149f4b95fd257923ae1f93b1b5eb6b1bc908a9e 100644
--- a/ui/aura/desktop.cc
+++ b/ui/aura/desktop.cc
@@ -432,6 +432,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;
« no previous file with comments | « ui/aura/desktop.h ('k') | ui/aura/desktop_host.h » ('j') | ui/aura/desktop_host_linux.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698