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

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

Issue 2830703003: [views-mus] Support custom cursors. (Closed)
Patch Set: fix cast_shell_linux Created 3 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 | « services/ui/ws/event_dispatcher.cc ('k') | services/ui/ws/platform_display_default.h » ('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 SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_H_
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 28 matching lines...) Expand all
39 virtual void Init(PlatformDisplayDelegate* delegate) = 0; 39 virtual void Init(PlatformDisplayDelegate* delegate) = 0;
40 40
41 virtual void SetViewportSize(const gfx::Size& size) = 0; 41 virtual void SetViewportSize(const gfx::Size& size) = 0;
42 42
43 virtual void SetTitle(const base::string16& title) = 0; 43 virtual void SetTitle(const base::string16& title) = 0;
44 44
45 virtual void SetCapture() = 0; 45 virtual void SetCapture() = 0;
46 46
47 virtual void ReleaseCapture() = 0; 47 virtual void ReleaseCapture() = 0;
48 48
49 virtual void SetCursorById(mojom::CursorType cursor) = 0; 49 virtual void SetCursor(const ui::CursorData& cursor) = 0;
50 50
51 virtual void UpdateTextInputState(const ui::TextInputState& state) = 0; 51 virtual void UpdateTextInputState(const ui::TextInputState& state) = 0;
52 virtual void SetImeVisibility(bool visible) = 0; 52 virtual void SetImeVisibility(bool visible) = 0;
53 53
54 // Updates the viewport metrics for the display. 54 // Updates the viewport metrics for the display.
55 virtual void UpdateViewportMetrics( 55 virtual void UpdateViewportMetrics(
56 const display::ViewportMetrics& metrics) = 0; 56 const display::ViewportMetrics& metrics) = 0;
57 57
58 // Returns the AcceleratedWidget associated with the Display. It can return 58 // Returns the AcceleratedWidget associated with the Display. It can return
59 // kNullAcceleratedWidget if the accelerated widget is not available yet. 59 // kNullAcceleratedWidget if the accelerated widget is not available yet.
(...skipping 10 matching lines...) Expand all
70 private: 70 private:
71 // Static factory instance (always NULL for non-test). 71 // Static factory instance (always NULL for non-test).
72 static PlatformDisplayFactory* factory_; 72 static PlatformDisplayFactory* factory_;
73 }; 73 };
74 74
75 75
76 } // namespace ws 76 } // namespace ws
77 } // namespace ui 77 } // namespace ui
78 78
79 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 79 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_
OLDNEW
« no previous file with comments | « services/ui/ws/event_dispatcher.cc ('k') | services/ui/ws/platform_display_default.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698