Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(340)

Side by Side Diff: ash/display/cursor_window_controller.h

Issue 1924703002: Rename gfx::Display/Screen to display::Display/Screen in ash (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/dip_unittest.cc ('k') | ash/display/cursor_window_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <memory> 8 #include <memory>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "ui/aura/window.h" 12 #include "ui/aura/window.h"
13 #include "ui/base/cursor/cursor.h" 13 #include "ui/base/cursor/cursor.h"
14 #include "ui/gfx/display.h" 14 #include "ui/display/display.h"
15 15
16 namespace ash { 16 namespace ash {
17 namespace test { 17 namespace test {
18 class MirrorWindowTestApi; 18 class MirrorWindowTestApi;
19 } 19 }
20 20
21 class CursorWindowControllerTest; 21 class CursorWindowControllerTest;
22 class CursorWindowDelegate; 22 class CursorWindowDelegate;
23 23
24 // Draws a mouse cursor on a given container window. 24 // Draws a mouse cursor on a given container window.
(...skipping 11 matching lines...) Expand all
36 } 36 }
37 37
38 // Sets cursor compositing mode on/off. 38 // Sets cursor compositing mode on/off.
39 void SetCursorCompositingEnabled(bool enabled); 39 void SetCursorCompositingEnabled(bool enabled);
40 40
41 // Updates the container window for the cursor window controller. 41 // Updates the container window for the cursor window controller.
42 void UpdateContainer(); 42 void UpdateContainer();
43 43
44 // Sets the display on which to draw cursor. 44 // Sets the display on which to draw cursor.
45 // Only applicable when cursor compositing is enabled. 45 // Only applicable when cursor compositing is enabled.
46 void SetDisplay(const gfx::Display& display); 46 void SetDisplay(const display::Display& display);
47 47
48 // Sets cursor location, shape, set and visibility. 48 // Sets cursor location, shape, set and visibility.
49 void UpdateLocation(); 49 void UpdateLocation();
50 void SetCursor(gfx::NativeCursor cursor); 50 void SetCursor(gfx::NativeCursor cursor);
51 void SetCursorSet(ui::CursorSetType); 51 void SetCursorSet(ui::CursorSetType);
52 void SetVisibility(bool visible); 52 void SetVisibility(bool visible);
53 53
54 private: 54 private:
55 friend class CursorWindowControllerTest; 55 friend class CursorWindowControllerTest;
56 friend class test::MirrorWindowTestApi; 56 friend class test::MirrorWindowTestApi;
(...skipping 23 matching lines...) Expand all
80 int cursor_type_; 80 int cursor_type_;
81 81
82 // The last requested cursor visibility. 82 // The last requested cursor visibility.
83 bool visible_; 83 bool visible_;
84 84
85 ui::CursorSetType cursor_set_; 85 ui::CursorSetType cursor_set_;
86 gfx::Point hot_point_; 86 gfx::Point hot_point_;
87 87
88 // The display on which the cursor is drawn. 88 // The display on which the cursor is drawn.
89 // For mirroring mode, the display is always the primary display. 89 // For mirroring mode, the display is always the primary display.
90 gfx::Display display_; 90 display::Display display_;
91 91
92 std::unique_ptr<aura::Window> cursor_window_; 92 std::unique_ptr<aura::Window> cursor_window_;
93 std::unique_ptr<CursorWindowDelegate> delegate_; 93 std::unique_ptr<CursorWindowDelegate> delegate_;
94 94
95 DISALLOW_COPY_AND_ASSIGN(CursorWindowController); 95 DISALLOW_COPY_AND_ASSIGN(CursorWindowController);
96 }; 96 };
97 97
98 } // namespace ash 98 } // namespace ash
99 99
100 #endif // ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_ 100 #endif // ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/dip_unittest.cc ('k') | ash/display/cursor_window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698