| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_WM_CORE_DEFAULT_SCREEN_POSITION_CLIENT_H_ | 5 #ifndef UI_WM_CORE_DEFAULT_SCREEN_POSITION_CLIENT_H_ |
| 6 #define UI_WM_CORE_DEFAULT_SCREEN_POSITION_CLIENT_H_ | 6 #define UI_WM_CORE_DEFAULT_SCREEN_POSITION_CLIENT_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "ui/aura/client/screen_position_client.h" | 9 #include "ui/aura/client/screen_position_client.h" |
| 10 #include "ui/wm/wm_export.h" | 10 #include "ui/wm/wm_export.h" |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 // aura::client::ScreenPositionClient overrides: | 22 // aura::client::ScreenPositionClient overrides: |
| 23 void ConvertPointToScreen(const aura::Window* window, | 23 void ConvertPointToScreen(const aura::Window* window, |
| 24 gfx::Point* point) override; | 24 gfx::Point* point) override; |
| 25 void ConvertPointFromScreen(const aura::Window* window, | 25 void ConvertPointFromScreen(const aura::Window* window, |
| 26 gfx::Point* point) override; | 26 gfx::Point* point) override; |
| 27 void ConvertHostPointToScreen(aura::Window* window, | 27 void ConvertHostPointToScreen(aura::Window* window, |
| 28 gfx::Point* point) override; | 28 gfx::Point* point) override; |
| 29 void SetBounds(aura::Window* window, | 29 void SetBounds(aura::Window* window, |
| 30 const gfx::Rect& bounds, | 30 const gfx::Rect& bounds, |
| 31 const gfx::Display& display) override; | 31 const display::Display& display) override; |
| 32 | 32 |
| 33 protected: | 33 protected: |
| 34 // Returns the origin of the host platform-window in system pixel coordinates. | 34 // Returns the origin of the host platform-window in system pixel coordinates. |
| 35 gfx::Point GetOriginInScreen(const aura::Window* root_window); | 35 gfx::Point GetOriginInScreen(const aura::Window* root_window); |
| 36 | 36 |
| 37 private: | 37 private: |
| 38 DISALLOW_COPY_AND_ASSIGN(DefaultScreenPositionClient); | 38 DISALLOW_COPY_AND_ASSIGN(DefaultScreenPositionClient); |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 } // namespace wm | 41 } // namespace wm |
| 42 | 42 |
| 43 #endif // UI_WM_CORE_DEFAULT_SCREEN_POSITION_CLIENT_H_ | 43 #endif // UI_WM_CORE_DEFAULT_SCREEN_POSITION_CLIENT_H_ |
| OLD | NEW |