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

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

Issue 258893002: app_shell: Add support for mouse cursors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update build to exclude ImageCursors on android Created 6 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 | Annotate | Revision Log
« no previous file with comments | « ash/ash.gyp ('k') | ash/test/cursor_manager_test_api.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 "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 class CursorWindowDelegate; 17 class CursorWindowDelegate;
18 18
19 // Draws a mouse cursor on a given container window. 19 // Draws a mouse cursor on a given container window.
20 // When cursor compositing is disabled, CursorWindowController is responsible 20 // When cursor compositing is disabled, CursorWindowController is responsible
21 // 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
22 // primary display. 22 // primary display.
23 // When cursor compositing is enabled, just draw the cursor as-is. 23 // When cursor compositing is enabled, just draw the cursor as-is.
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 scoped_ptr<aura::Window> cursor_window_; 79 scoped_ptr<aura::Window> cursor_window_;
80 scoped_ptr<CursorWindowDelegate> delegate_; 80 scoped_ptr<CursorWindowDelegate> delegate_;
81 81
82 DISALLOW_COPY_AND_ASSIGN(CursorWindowController); 82 DISALLOW_COPY_AND_ASSIGN(CursorWindowController);
83 }; 83 };
84 84
85 } // namespace ash 85 } // namespace ash
86 86
87 #endif // ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_ 87 #endif // ASH_DISPLAY_CURSOR_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/ash.gyp ('k') | ash/test/cursor_manager_test_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698