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 <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
11 #include "ui/aura/client/screen_position_client.h" | 11 #include "ui/aura/client/screen_position_client.h" |
12 | 12 |
13 namespace ash { | 13 namespace ash { |
14 | 14 |
15 class ScreenPositionController : public aura::client::ScreenPositionClient { | 15 class ScreenPositionController : public aura::client::ScreenPositionClient { |
16 public: | 16 public: |
17 // Finds the root window at |location| in |window|'s coordinates | 17 // Finds the root window at |location| in |window|'s coordinates |
18 // from given |root_windows| and returns the found root window and | 18 // from given |root_windows| and returns the found root window and |
19 // location in that root window's coordinates. The function usually | 19 // location in that root window's coordinates. The function usually |
20 // returns |window->GetRootWindow()|, but if the mouse pointer is | 20 // returns |window->GetRootWindow()|, but if the mouse pointer is |
(...skipping 19 matching lines...) Expand all Loading... |
40 const gfx::Rect& bounds, | 40 const gfx::Rect& bounds, |
41 const gfx::Display& display) override; | 41 const gfx::Display& display) override; |
42 | 42 |
43 private: | 43 private: |
44 DISALLOW_COPY_AND_ASSIGN(ScreenPositionController); | 44 DISALLOW_COPY_AND_ASSIGN(ScreenPositionController); |
45 }; | 45 }; |
46 | 46 |
47 } // namespace ash | 47 } // namespace ash |
48 | 48 |
49 #endif // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ | 49 #endif // ASH_DISPLAY_SCREEN_POSITION_CONTROLLER_H_ |
OLD | NEW |