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

Unified Diff: ui/aura/client/screen_position_client.h

Issue 10911342: Add ScreenPositionClient::ConvertNativePointToScreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
Index: ui/aura/client/screen_position_client.h
diff --git a/ui/aura/client/screen_position_client.h b/ui/aura/client/screen_position_client.h
index 17e73d88b459f3dfe9ffa5bf7ee2b3884f438074..ac45d44b656f3fbb7c33e514282c25e27d9baa96 100644
--- a/ui/aura/client/screen_position_client.h
+++ b/ui/aura/client/screen_position_client.h
@@ -31,6 +31,13 @@ class AURA_EXPORT ScreenPositionClient {
gfx::Point* point) = 0;
virtual void ConvertPointFromScreen(const Window* window,
gfx::Point* point) = 0;
+ // Converts the |screen_point| from a given |window|'s native screen
+ // coordinate space into screen coordinate space.
+ // A typical example of using this function instead of ConvertPointToScreen is
+ // when X's native input is captured by a drag operation.
+ // See the comments in ash::wm::GetRootWindowRelativeToWindow for details.
+ virtual void ConvertNativePointToScreen(Window* window,
+ gfx::Point* point) = 0;
// Sets the bounds of the window. The implementation is responsible
// for finding out and translating the right coordinates for the |window|.
virtual void SetBounds(Window* window,

Powered by Google App Engine
This is Rietveld 408576698