OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef UI_AURA_SCREEN_POSITION_CLIENT_H_ | 5 #ifndef UI_AURA_SCREEN_POSITION_CLIENT_H_ |
6 #define UI_AURA_SCREEN_POSITION_CLIENT_H_ | 6 #define UI_AURA_SCREEN_POSITION_CLIENT_H_ |
7 | 7 |
8 #include "ui/aura/aura_export.h" | 8 #include "ui/aura/aura_export.h" |
9 #include "ui/aura/window.h" | 9 #include "ui/aura/window.h" |
10 | 10 |
(...skipping 22 matching lines...) Expand all Loading... |
33 // into screen coordinate space. | 33 // into screen coordinate space. |
34 // A typical example of using this function instead of ConvertPointToScreen is | 34 // A typical example of using this function instead of ConvertPointToScreen is |
35 // when X's native input is captured by a drag operation. | 35 // when X's native input is captured by a drag operation. |
36 // See the comments for ash::GetRootWindowRelativeToWindow for details. | 36 // See the comments for ash::GetRootWindowRelativeToWindow for details. |
37 virtual void ConvertHostPointToScreen(Window* root_window, | 37 virtual void ConvertHostPointToScreen(Window* root_window, |
38 gfx::Point* point) = 0; | 38 gfx::Point* point) = 0; |
39 // Sets the bounds of the window. The implementation is responsible | 39 // Sets the bounds of the window. The implementation is responsible |
40 // for finding out and translating the right coordinates for the |window|. | 40 // for finding out and translating the right coordinates for the |window|. |
41 virtual void SetBounds(Window* window, | 41 virtual void SetBounds(Window* window, |
42 const gfx::Rect& bounds, | 42 const gfx::Rect& bounds, |
43 const gfx::Display& display) = 0; | 43 const display::Display& display) = 0; |
44 }; | 44 }; |
45 | 45 |
46 // Sets/Gets the activation client on the Window. | 46 // Sets/Gets the activation client on the Window. |
47 AURA_EXPORT void SetScreenPositionClient(Window* root_window, | 47 AURA_EXPORT void SetScreenPositionClient(Window* root_window, |
48 ScreenPositionClient* client); | 48 ScreenPositionClient* client); |
49 AURA_EXPORT ScreenPositionClient* GetScreenPositionClient( | 49 AURA_EXPORT ScreenPositionClient* GetScreenPositionClient( |
50 const Window* root_window); | 50 const Window* root_window); |
51 | 51 |
52 } // namespace clients | 52 } // namespace clients |
53 } // namespace aura | 53 } // namespace aura |
54 | 54 |
55 #endif // UI_AURA_SCREEN_POSITION_CLIENT_H_ | 55 #endif // UI_AURA_SCREEN_POSITION_CLIENT_H_ |
OLD | NEW |