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

Unified Diff: ui/aura/window.cc

Issue 8417008: aura: Add fullscreen/popups to RenderWidgetHostViewAura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: avoid emulating WM_CHAR events for many keys Created 9 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
« content/browser/renderer_host/web_input_event_aura.cc ('K') | « ui/aura/window.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window.cc
diff --git a/ui/aura/window.cc b/ui/aura/window.cc
index 4a0fb350a56fbd4833d726f13ba07bdfcd42d11a..5724fee95618f25cd58a52569892363293c8a314 100644
--- a/ui/aura/window.cc
+++ b/ui/aura/window.cc
@@ -141,6 +141,14 @@ gfx::Rect Window::GetScreenBounds() const {
return gfx::Rect(origin, local_bounds.size());
}
+gfx::Point Window::GetPointInScreenCoordinates(
+ const gfx::Point& local_point) {
+ gfx::Point global_point = local_point;
+ Window::ConvertPointToWindow(
+ this, aura::Desktop::GetInstance(), &global_point);
+ return global_point;
+}
+
void Window::Activate() {
// If we support minimization need to ensure this restores the window first.
aura::Desktop::GetInstance()->SetActiveWindow(this, this);
« content/browser/renderer_host/web_input_event_aura.cc ('K') | « ui/aura/window.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698