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

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

Issue 10409011: Aura/ash: On Desktops, use a aura::client to resolve screen coordinates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge with trunk. Created 8 years, 7 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/aura.gyp ('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
new file mode 100644
index 0000000000000000000000000000000000000000..bca59c76d8505607cd1be4d6f0d9555237cf7e05
--- /dev/null
+++ b/ui/aura/client/screen_position_client.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_AURA_SCREEN_POSITION_CLIENT_H_
+#define UI_AURA_SCREEN_POSITION_CLIENT_H_
+#pragma once
+
+#include "ui/aura/aura_export.h"
+#include "ui/aura/window.h"
+
+namespace aura {
+
+class Event;
+class Window;
+
+namespace client {
+
+// An interface implemented by an object that changes coordinates on a
+// RootWindow into system coordinates.
+class AURA_EXPORT ScreenPositionClient {
+ public:
+ // Converts the |screen_point| from a given RootWindow's coordinates space
+ // into screen coordinate space.
+ virtual void ConvertToScreenPoint(gfx::Point* screen_point) = 0;
+
+ virtual ~ScreenPositionClient() {}
+};
+
+// Sets/Gets the activation client on the Window.
+AURA_EXPORT void SetScreenPositionClient(Window* window,
+ ScreenPositionClient* client);
+AURA_EXPORT ScreenPositionClient* GetScreenPositionClient(
+ Window* window);
+
+} // namespace clients
+} // namespace aura
+
+#endif // UI_AURA_SCREEN_POSITION_CLIENT_H_
« no previous file with comments | « ui/aura/aura.gyp ('k') | ui/aura/client/screen_position_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698