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

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

Issue 2268563003: Replaced CursorLoader in PlatformDisplay with a ImageCursor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | « no previous file | services/ui/ws/platform_display.cc » ('j') | services/ui/ws/platform_display.cc » ('J')
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 <map> 10 #include <map>
(...skipping 24 matching lines...) Expand all
35 35
36 namespace ui { 36 namespace ui {
37 class CursorLoader; 37 class CursorLoader;
38 class PlatformWindow; 38 class PlatformWindow;
39 struct TextInputState; 39 struct TextInputState;
40 } // namespace ui 40 } // namespace ui
41 41
42 namespace ui { 42 namespace ui {
43 43
44 class FrameGenerator; 44 class FrameGenerator;
45 class ImageCursors;
45 46
46 namespace ws { 47 namespace ws {
47 48
48 class EventDispatcher; 49 class EventDispatcher;
49 class PlatformDisplayFactory; 50 class PlatformDisplayFactory;
50 struct PlatformDisplayInitParams; 51 struct PlatformDisplayInitParams;
51 class ServerWindow; 52 class ServerWindow;
52 53
53 // PlatformDisplay is used to connect the root ServerWindow to a display. 54 // PlatformDisplay is used to connect the root ServerWindow to a display.
54 class PlatformDisplay { 55 class PlatformDisplay {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 // FrameGeneratorDelegate: 158 // FrameGeneratorDelegate:
158 ServerWindow* GetRootWindow() override; 159 ServerWindow* GetRootWindow() override;
159 void OnCompositorFrameDrawn() override; 160 void OnCompositorFrameDrawn() override;
160 bool IsInHighContrastMode() override; 161 bool IsInHighContrastMode() override;
161 const ViewportMetrics& GetViewportMetrics() override; 162 const ViewportMetrics& GetViewportMetrics() override;
162 163
163 int64_t id_; 164 int64_t id_;
164 display::PlatformScreen* platform_screen_; 165 display::PlatformScreen* platform_screen_;
165 166
166 #if !defined(OS_ANDROID) 167 #if !defined(OS_ANDROID)
167 std::unique_ptr<ui::CursorLoader> cursor_loader_; 168 // std::unique_ptr<ui::CursorLoader> cursor_loader_;
sadrul 2016/08/22 14:39:40 Remove
Alex Z. 2016/08/22 15:11:51 Done.
169 std::unique_ptr<ui::ImageCursors> image_cursors_;
168 #endif 170 #endif
169 171
170 PlatformDisplayDelegate* delegate_ = nullptr; 172 PlatformDisplayDelegate* delegate_ = nullptr;
171 std::unique_ptr<FrameGenerator> frame_generator_; 173 std::unique_ptr<FrameGenerator> frame_generator_;
172 174
173 ViewportMetrics metrics_; 175 ViewportMetrics metrics_;
174 std::unique_ptr<ui::PlatformWindow> platform_window_; 176 std::unique_ptr<ui::PlatformWindow> platform_window_;
175 177
176 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); 178 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay);
177 }; 179 };
178 180
179 } // namespace ws 181 } // namespace ws
180 182
181 } // namespace ui 183 } // namespace ui
182 184
183 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 185 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_
OLDNEW
« no previous file with comments | « no previous file | services/ui/ws/platform_display.cc » ('j') | services/ui/ws/platform_display.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698