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

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

Issue 2961403002: WIP fix for Ozone cursor woes in Mushrome: Numéro deux
Patch Set: Created 3 years, 5 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/window_server.cc ('k') | ui/base/cursor/cursor_loader_ozone.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_WINDOW_SERVER_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_
6 #define SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ 6 #define SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <string> 11 #include <string>
12 12
13 #include "mojo/public/cpp/bindings/interface_request.h" 13 #include "mojo/public/cpp/bindings/interface_request.h"
14 #include "services/ui/common/types.h" 14 #include "services/ui/common/types.h"
15 #include "services/ui/public/interfaces/window_tree.mojom.h" 15 #include "services/ui/public/interfaces/window_tree.mojom.h"
16 16
17 namespace base { 17 namespace base {
18 class SingleThreadTaskRunner; 18 class SingleThreadTaskRunner;
19 } 19 }
20 20
21 namespace ui { 21 namespace ui {
22 22
23 class ImageCursors; 23 class ImageCursorsHolder;
24 24
25 namespace mojom { 25 namespace mojom {
26 class WindowTree; 26 class WindowTree;
27 } 27 }
28 28
29 namespace ws { 29 namespace ws {
30 30
31 class Display; 31 class Display;
32 class WindowServer; 32 class WindowServer;
33 class WindowTree; 33 class WindowTree;
(...skipping 29 matching lines...) Expand all
63 // WindowManagerWindowTreeFactory. |automatically_create_display_roots| 63 // WindowManagerWindowTreeFactory. |automatically_create_display_roots|
64 // mirrors that of CreateWindowTree(). See it for details. 64 // mirrors that of CreateWindowTree(). See it for details.
65 virtual void OnWillCreateTreeForWindowManager( 65 virtual void OnWillCreateTreeForWindowManager(
66 bool automatically_create_display_roots) = 0; 66 bool automatically_create_display_roots) = 0;
67 67
68 // Returns a valid task runner which can be used to load resources. 68 // Returns a valid task runner which can be used to load resources.
69 virtual scoped_refptr<base::SingleThreadTaskRunner>& GetResourceRunner() = 0; 69 virtual scoped_refptr<base::SingleThreadTaskRunner>& GetResourceRunner() = 0;
70 70
71 // The returned weak pointer can be used to manipulate the cursor, and should 71 // The returned weak pointer can be used to manipulate the cursor, and should
72 // only be dereferenced on the task runner returned by GetResourceRunner(). 72 // only be dereferenced on the task runner returned by GetResourceRunner().
73 virtual base::WeakPtr<ui::ImageCursors> GetImageCursorsWeakPtr() = 0; 73 virtual base::WeakPtr<ui::ImageCursorsHolder>
74 GetImageCursorsHolderWeakPtr() = 0;
74 75
75 protected: 76 protected:
76 virtual ~WindowServerDelegate() {} 77 virtual ~WindowServerDelegate() {}
77 }; 78 };
78 79
79 } // namespace ws 80 } // namespace ws
80 } // namespace ui 81 } // namespace ui
81 82
82 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_ 83 #endif // SERVICES_UI_WS_WINDOW_SERVER_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/window_server.cc ('k') | ui/base/cursor/cursor_loader_ozone.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698