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

Side by Side Diff: services/ui/ws/platform_display_delegate.h

Issue 2268563003: Replaced CursorLoader in PlatformDisplay with a ImageCursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years 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 | « services/ui/ws/platform_display_default.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
7 7
8 namespace display {
9 class Display;
10 }
11
8 namespace ui { 12 namespace ui {
9 13
10 class Event; 14 class Event;
11 15
12 namespace ws { 16 namespace ws {
13 17
14 class ServerWindow; 18 class ServerWindow;
15 19
16 // PlatformDisplayDelegate is implemented by an object that manages the 20 // PlatformDisplayDelegate is implemented by an object that manages the
17 // lifetime of a PlatformDisplay, forwards events to the appropriate windows, 21 // lifetime of a PlatformDisplay, forwards events to the appropriate windows,
18 /// and responses to changes in viewport size. 22 /// and responses to changes in viewport size.
19 class PlatformDisplayDelegate { 23 class PlatformDisplayDelegate {
20 public: 24 public:
25 // Returns a display::Display for this display.
26 virtual display::Display GetDisplay() = 0;
27
21 // Returns the root window of this display. 28 // Returns the root window of this display.
22 virtual ServerWindow* GetRootWindow() = 0; 29 virtual ServerWindow* GetRootWindow() = 0;
23 30
24 // Called once when the AcceleratedWidget is available for drawing. 31 // Called once when the AcceleratedWidget is available for drawing.
25 virtual void OnAcceleratedWidgetAvailable() = 0; 32 virtual void OnAcceleratedWidgetAvailable() = 0;
26 33
27 virtual bool IsInHighContrastMode() = 0; 34 virtual bool IsInHighContrastMode() = 0;
28 35
29 // Called when an event arrives. 36 // Called when an event arrives.
30 virtual void OnEvent(const ui::Event& event) = 0; 37 virtual void OnEvent(const ui::Event& event) = 0;
31 38
32 // Called when the Display loses capture. 39 // Called when the Display loses capture.
33 virtual void OnNativeCaptureLost() = 0; 40 virtual void OnNativeCaptureLost() = 0;
34 41
35 protected: 42 protected:
36 virtual ~PlatformDisplayDelegate() {} 43 virtual ~PlatformDisplayDelegate() {}
37 }; 44 };
38 45
39 } // namespace ws 46 } // namespace ws
40 47
41 } // namespace ui 48 } // namespace ui
42 49
43 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ 50 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display_default.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698