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 ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ |
6 #define ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ | 6 #define ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "ui/aura/client/screen_position_client.h" | 9 #include "ui/aura/client/screen_position_client.h" |
10 | 10 |
11 namespace ash { | 11 namespace ash { |
12 | 12 |
13 class ScreenPositionController : public aura::client::ScreenPositionClient { | 13 class ScreenPositionController : public aura::client::ScreenPositionClient { |
14 public: | 14 public: |
15 ScreenPositionController() {} | 15 ScreenPositionController() {} |
16 virtual ~ScreenPositionController() {} | 16 virtual ~ScreenPositionController() {} |
17 | 17 |
18 // aura::client::ScreenPositionClient overrides: | 18 // aura::client::ScreenPositionClient overrides: |
19 virtual void ConvertPointToScreen(const aura::Window* window, | 19 virtual void ConvertPointToScreen(const aura::Window* window, |
20 gfx::Point* point) OVERRIDE; | 20 gfx::Point* point) override; |
21 virtual void ConvertPointFromScreen(const aura::Window* window, | 21 virtual void ConvertPointFromScreen(const aura::Window* window, |
22 gfx::Point* point) OVERRIDE; | 22 gfx::Point* point) override; |
23 virtual void ConvertHostPointToScreen(aura::Window* window, | 23 virtual void ConvertHostPointToScreen(aura::Window* window, |
24 gfx::Point* point) OVERRIDE; | 24 gfx::Point* point) override; |
25 virtual void SetBounds(aura::Window* window, | 25 virtual void SetBounds(aura::Window* window, |
26 const gfx::Rect& bounds, | 26 const gfx::Rect& bounds, |
27 const gfx::Display& display) OVERRIDE; | 27 const gfx::Display& display) override; |
28 | 28 |
29 private: | 29 private: |
30 DISALLOW_COPY_AND_ASSIGN(ScreenPositionController); | 30 DISALLOW_COPY_AND_ASSIGN(ScreenPositionController); |
31 }; | 31 }; |
32 | 32 |
33 } // namespace ash | 33 } // namespace ash |
34 | 34 |
35 #endif // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ | 35 #endif // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ |
OLD | NEW |