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

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

Issue 2712963003: mustash: Use ui::chromeos::EventRewriter in mus (Closed)
Patch Set: Fix build issues. Created 3 years, 9 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_unittest.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>
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.mojom.h" 15 #include "services/ui/public/interfaces/cursor.mojom.h"
16 #include "ui/events/event_source.h"
16 #include "ui/gfx/native_widget_types.h" 17 #include "ui/gfx/native_widget_types.h"
17 18
18 namespace ui { 19 namespace ui {
19 20
20 struct TextInputState; 21 struct TextInputState;
21 22
22 namespace ws { 23 namespace ws {
23 24
24 class FrameGenerator; 25 class FrameGenerator;
25 class PlatformDisplayDelegate; 26 class PlatformDisplayDelegate;
26 class PlatformDisplayFactory; 27 class PlatformDisplayFactory;
27 class ServerWindow; 28 class ServerWindow;
28 29
29 // PlatformDisplay is used to connect the root ServerWindow to a display. 30 // PlatformDisplay is used to connect the root ServerWindow to a display.
30 class PlatformDisplay { 31 class PlatformDisplay : public ui::EventSource {
31 public: 32 public:
32 virtual ~PlatformDisplay() {} 33 ~PlatformDisplay() override {}
33 34
34 static std::unique_ptr<PlatformDisplay> Create( 35 static std::unique_ptr<PlatformDisplay> Create(
35 ServerWindow* root_window, 36 ServerWindow* root_window,
36 const display::ViewportMetrics& metrics); 37 const display::ViewportMetrics& metrics);
37 38
38 virtual void Init(PlatformDisplayDelegate* delegate) = 0; 39 virtual void Init(PlatformDisplayDelegate* delegate) = 0;
39 40
40 virtual void SetViewportSize(const gfx::Size& size) = 0; 41 virtual void SetViewportSize(const gfx::Size& size) = 0;
41 42
42 virtual void SetTitle(const base::string16& title) = 0; 43 virtual void SetTitle(const base::string16& title) = 0;
(...skipping 27 matching lines...) Expand all
70 private: 71 private:
71 // Static factory instance (always NULL for non-test). 72 // Static factory instance (always NULL for non-test).
72 static PlatformDisplayFactory* factory_; 73 static PlatformDisplayFactory* factory_;
73 }; 74 };
74 75
75 76
76 } // namespace ws 77 } // namespace ws
77 } // namespace ui 78 } // namespace ui
78 79
79 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 80 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_
OLDNEW
« no previous file with comments | « services/ui/ws/display_unittest.cc ('k') | services/ui/ws/platform_display_default.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698