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

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

Issue 1915363002: Rename gfx::Display/Screen to display::Display/Screen in views/wm (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more cleanups 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
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 <memory> 8 #include <memory>
9 9
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
11 11
12 namespace aura { 12 namespace aura {
13 class RootWindow; 13 class RootWindow;
14 } 14 }
15 15
16 namespace gfx { 16 namespace gfx {
17 class Display; 17 class Display;
18 } 18 }
19 19
20 namespace display {
21 using Display = gfx::Display;
22 }
23
20 namespace ui { 24 namespace ui {
21 class CursorLoader; 25 class CursorLoader;
22 } 26 }
23 27
24 namespace views { 28 namespace views {
25 29
26 // An interface to optionally update the state of a cursor loader. Only used on 30 // An interface to optionally update the state of a cursor loader. Only used on
27 // desktop AuraX11. 31 // desktop AuraX11.
28 class VIEWS_EXPORT DesktopCursorLoaderUpdater { 32 class VIEWS_EXPORT DesktopCursorLoaderUpdater {
29 public: 33 public:
30 virtual ~DesktopCursorLoaderUpdater() {} 34 virtual ~DesktopCursorLoaderUpdater() {}
31 35
32 // Creates a new DesktopCursorLoaderUpdater, or NULL if the platform doesn't 36 // Creates a new DesktopCursorLoaderUpdater, or NULL if the platform doesn't
33 // support one. 37 // support one.
34 static std::unique_ptr<DesktopCursorLoaderUpdater> Create(); 38 static std::unique_ptr<DesktopCursorLoaderUpdater> Create();
35 39
36 // Called when a CursorLoader is created. 40 // Called when a CursorLoader is created.
37 virtual void OnCreate(float device_scale_factor, 41 virtual void OnCreate(float device_scale_factor,
38 ui::CursorLoader* loader) = 0; 42 ui::CursorLoader* loader) = 0;
39 43
40 // Called when the display has changed (as we may need to reload the cursor 44 // Called when the display has changed (as we may need to reload the cursor
41 // assets in response to a device scale factor or rotation change). 45 // assets in response to a device scale factor or rotation change).
42 virtual void OnDisplayUpdated(const gfx::Display& display, 46 virtual void OnDisplayUpdated(const display::Display& display,
43 ui::CursorLoader* loader) = 0; 47 ui::CursorLoader* loader) = 0;
44 }; 48 };
45 49
46 } // namespace views 50 } // namespace views
47 51
48 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DISPLAY_CHANGE_HANDLER_H_ 52 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_DISPLAY_CHANGE_HANDLER_H_
OLDNEW
« no previous file with comments | « ui/views/view.cc ('k') | ui/views/widget/desktop_aura/desktop_cursor_loader_updater_auralinux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698