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

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

Issue 38423002: Make aura::clients take Window instead of RootWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 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
« no previous file with comments | « ui/aura/client/focus_client.cc ('k') | ui/aura/client/screen_position_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 e5505eb75ef23240d8cecbc9a71d6ceee0390bb5..98707cc1639a385e648738a33efc72277c1955a3 100644
--- a/ui/aura/client/screen_position_client.h
+++ b/ui/aura/client/screen_position_client.h
@@ -14,15 +14,11 @@ class Rect;
}
namespace aura {
-
-class Event;
-class RootWindow;
class Window;
-
namespace client {
-// An interface implemented by an object that changes coordinates on a
-// RootWindow into system coordinates.
+// An interface implemented by an object that changes coordinates within a root
+// Window into system coordinates.
class AURA_EXPORT ScreenPositionClient {
public:
// Converts the |screen_point| from a given |window|'s coordinate space
@@ -36,7 +32,7 @@ class AURA_EXPORT ScreenPositionClient {
// 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 for ash::GetRootWindowRelativeToWindow for details.
- virtual void ConvertHostPointToScreen(aura::RootWindow* root_window,
+ virtual void ConvertHostPointToScreen(Window* root_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|.
@@ -47,10 +43,10 @@ class AURA_EXPORT ScreenPositionClient {
};
// Sets/Gets the activation client on the Window.
-AURA_EXPORT void SetScreenPositionClient(RootWindow* window,
+AURA_EXPORT void SetScreenPositionClient(Window* root_window,
ScreenPositionClient* client);
AURA_EXPORT ScreenPositionClient* GetScreenPositionClient(
- const RootWindow* window);
+ const Window* root_window);
} // namespace clients
} // namespace aura
« no previous file with comments | « ui/aura/client/focus_client.cc ('k') | ui/aura/client/screen_position_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698