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

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

Issue 2916823002: Move Mus into chrome's process when running with --mus.
Patch Set: Removing debug include. 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/display.cc ('k') | services/ui/ws/platform_display.cc » ('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>
11 11
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "services/ui/display/viewport_metrics.h" 14 #include "services/ui/display/viewport_metrics.h"
15 #include "services/ui/public/interfaces/cursor/cursor.mojom.h" 15 #include "services/ui/public/interfaces/cursor/cursor.mojom.h"
16 #include "ui/events/event_source.h" 16 #include "ui/events/event_source.h"
17 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
18 18
19 namespace ui { 19 namespace ui {
20 20
21 enum class CursorSize; 21 enum class CursorSize;
22 struct TextInputState; 22 struct TextInputState;
23 23
24 namespace ws { 24 namespace ws {
25 25
26 class FrameGenerator; 26 class FrameGenerator;
27 class PlatformDisplayDelegate; 27 class PlatformDisplayDelegate;
28 class PlatformDisplayFactory; 28 class PlatformDisplayFactory;
29 class ServerWindow; 29 class ServerWindow;
30 class ThreadedImageCursorsFactory;
30 31
31 // PlatformDisplay is used to connect the root ServerWindow to a display. 32 // PlatformDisplay is used to connect the root ServerWindow to a display.
32 class PlatformDisplay : public ui::EventSource { 33 class PlatformDisplay : public ui::EventSource {
33 public: 34 public:
34 ~PlatformDisplay() override {} 35 ~PlatformDisplay() override {}
35 36
36 static std::unique_ptr<PlatformDisplay> Create( 37 static std::unique_ptr<PlatformDisplay> Create(
37 ServerWindow* root_window, 38 ServerWindow* root_window,
38 const display::ViewportMetrics& metrics); 39 const display::ViewportMetrics& metrics,
40 ThreadedImageCursorsFactory* threaded_image_cursors_factory);
39 41
40 virtual void Init(PlatformDisplayDelegate* delegate) = 0; 42 virtual void Init(PlatformDisplayDelegate* delegate) = 0;
41 43
42 virtual void SetViewportSize(const gfx::Size& size) = 0; 44 virtual void SetViewportSize(const gfx::Size& size) = 0;
43 45
44 virtual void SetTitle(const base::string16& title) = 0; 46 virtual void SetTitle(const base::string16& title) = 0;
45 47
46 virtual void SetCapture() = 0; 48 virtual void SetCapture() = 0;
47 49
48 virtual void ReleaseCapture() = 0; 50 virtual void ReleaseCapture() = 0;
(...skipping 26 matching lines...) Expand all
75 private: 77 private:
76 // Static factory instance (always NULL for non-test). 78 // Static factory instance (always NULL for non-test).
77 static PlatformDisplayFactory* factory_; 79 static PlatformDisplayFactory* factory_;
78 }; 80 };
79 81
80 82
81 } // namespace ws 83 } // namespace ws
82 } // namespace ui 84 } // namespace ui
83 85
84 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 86 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_
OLDNEW
« no previous file with comments | « services/ui/ws/display.cc ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698