OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_SCREEN_POSITION_CLIENT_H_ |
| 6 #define UI_AURA_SCREEN_POSITION_CLIENT_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "ui/aura/aura_export.h" |
| 10 #include "ui/aura/window.h" |
| 11 |
| 12 namespace aura { |
| 13 |
| 14 class Event; |
| 15 class Window; |
| 16 |
| 17 namespace client { |
| 18 |
| 19 // An interface implemented by an object that changes coordinates on a |
| 20 // RootWindow into system coordinates. |
| 21 class AURA_EXPORT ScreenPositionClient { |
| 22 public: |
| 23 // Converts the |screen_point| from a given RootWindow's coordinates space |
| 24 // into screen coordinate space. |
| 25 virtual void ConvertToScreenPoint(gfx::Point* screen_point) = 0; |
| 26 |
| 27 virtual ~ScreenPositionClient() {} |
| 28 }; |
| 29 |
| 30 // Sets/Gets the activation client on the Window. |
| 31 AURA_EXPORT void SetScreenPositionClient(Window* window, |
| 32 ScreenPositionClient* client); |
| 33 AURA_EXPORT ScreenPositionClient* GetScreenPositionClient( |
| 34 Window* window); |
| 35 |
| 36 } // namespace clients |
| 37 } // namespace aura |
| 38 |
| 39 #endif // UI_AURA_SCREEN_POSITION_CLIENT_H_ |
OLD | NEW |