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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_cursor_loader_updater.h

Issue 31043006: Moves creation of various clients to DesktopNativeWidgetAura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: resolve merge Created 7 years, 2 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CURSOR_LOADER_UPDATER_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CURSOR_LOADER_UPDATER_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CURSOR_LOADER_UPDATER_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_CURSOR_LOADER_UPDATER_H_
7 7
8 #include "base/memory/scoped_ptr.h"
9 #include "ui/views/views_export.h"
10
8 namespace aura { 11 namespace aura {
9 class RootWindow; 12 class RootWindow;
10 } 13 }
11 14
12 namespace gfx { 15 namespace gfx {
13 class Display; 16 class Display;
14 } 17 }
15 18
16 namespace ui { 19 namespace ui {
17 class CursorLoader; 20 class CursorLoader;
18 } 21 }
19 22
20 namespace views { 23 namespace views {
21 24
22 // An interface to optionally update the state of a cursor loader. Only used on 25 // An interface to optionally update the state of a cursor loader. Only used on
23 // desktop AuraX11. 26 // desktop AuraX11.
24 class DesktopCursorLoaderUpdater { 27 class VIEWS_EXPORT DesktopCursorLoaderUpdater {
25 public: 28 public:
26 virtual ~DesktopCursorLoaderUpdater() {} 29 virtual ~DesktopCursorLoaderUpdater() {}
27 30
31 // Creates a new DesktopCursorLoaderUpdater, or NULL if the platform doesn't
32 // support one.
33 static scoped_ptr<DesktopCursorLoaderUpdater> Create();
34
28 // Called when a CursorLoader is created. 35 // Called when a CursorLoader is created.
29 virtual void OnCreate(aura::RootWindow* window, 36 virtual void OnCreate(aura::RootWindow* window,
30 ui::CursorLoader* loader) = 0; 37 ui::CursorLoader* loader) = 0;
31 38
32 // Called when the display has changed (as we may need to reload the cursor 39 // Called when the display has changed (as we may need to reload the cursor
33 // assets in response to a device scale factor or rotation change). 40 // assets in response to a device scale factor or rotation change).
34 virtual void OnDisplayUpdated(const gfx::Display& display, 41 virtual void OnDisplayUpdated(const gfx::Display& display,
35 ui::CursorLoader* loader) = 0; 42 ui::CursorLoader* loader) = 0;
36 }; 43 };
37 44
38 } // namespace views 45 } // namespace views
39 46
40 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DISPLAY_CHANGE_HANDLER_H_ 47 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DISPLAY_CHANGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/views.gyp ('k') | ui/views/widget/desktop_aura/desktop_cursor_loader_updater_aurawin.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698