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 ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_ | 5 #ifndef ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_ |
6 #define ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_ | 6 #define ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include "ui/aura/window.h" | 8 #include "ui/aura/window.h" |
9 #include "ui/base/cursor/cursor.h" | 9 #include "ui/base/cursor/cursor.h" |
10 #include "ui/gfx/display.h" | 10 #include "ui/gfx/display.h" |
11 | 11 |
12 namespace ash { | 12 namespace ash { |
13 namespace test{ | 13 namespace test{ |
14 class MirrorWindowTestApi; | 14 class MirrorWindowTestApi; |
15 } | 15 } |
16 | 16 |
17 namespace internal { | |
18 | |
19 class CursorWindowDelegate; | 17 class CursorWindowDelegate; |
20 | 18 |
21 // Draws a mouse cursor on a given container window. | 19 // Draws a mouse cursor on a given container window. |
22 // When cursor compositing is disabled, CursorWindowController is responsible | 20 // When cursor compositing is disabled, CursorWindowController is responsible |
23 // to scale and rotate the mouse cursor bitmap to match settings of the | 21 // to scale and rotate the mouse cursor bitmap to match settings of the |
24 // primary display. | 22 // primary display. |
25 // When cursor compositing is enabled, just draw the cursor as-is. | 23 // When cursor compositing is enabled, just draw the cursor as-is. |
26 class CursorWindowController { | 24 class CursorWindowController { |
27 public: | 25 public: |
28 CursorWindowController(); | 26 CursorWindowController(); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 // The display on which the cursor is drawn. | 75 // The display on which the cursor is drawn. |
78 // For mirroring mode, the display is always the primary display. | 76 // For mirroring mode, the display is always the primary display. |
79 gfx::Display display_; | 77 gfx::Display display_; |
80 | 78 |
81 scoped_ptr<aura::Window> cursor_window_; | 79 scoped_ptr<aura::Window> cursor_window_; |
82 scoped_ptr<CursorWindowDelegate> delegate_; | 80 scoped_ptr<CursorWindowDelegate> delegate_; |
83 | 81 |
84 DISALLOW_COPY_AND_ASSIGN(CursorWindowController); | 82 DISALLOW_COPY_AND_ASSIGN(CursorWindowController); |
85 }; | 83 }; |
86 | 84 |
87 } // namespace internal | |
88 } // namespace ash | 85 } // namespace ash |
89 | 86 |
90 #endif // ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_ | 87 #endif // ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_ |
OLD | NEW |