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

Side by Side Diff: services/ui/ws/platform_display_default.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/platform_display.h ('k') | services/ui/ws/platform_display_default.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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_DEFAULT_H_ 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "services/ui/display/viewport_metrics.h" 11 #include "services/ui/display/viewport_metrics.h"
12 #include "services/ui/ws/frame_generator.h" 12 #include "services/ui/ws/frame_generator.h"
13 #include "services/ui/ws/platform_display.h" 13 #include "services/ui/ws/platform_display.h"
14 #include "services/ui/ws/platform_display_delegate.h" 14 #include "services/ui/ws/platform_display_delegate.h"
15 #include "services/ui/ws/server_window.h" 15 #include "services/ui/ws/server_window.h"
16 #include "ui/platform_window/platform_window_delegate.h" 16 #include "ui/platform_window/platform_window_delegate.h"
17 17
18 namespace ui { 18 namespace ui {
19 19
20 class EventSink;
20 class ImageCursors; 21 class ImageCursors;
21 class LocatedEvent; 22 class LocatedEvent;
22 class PlatformWindow; 23 class PlatformWindow;
23 24
24 namespace ws { 25 namespace ws {
25 26
26 // PlatformDisplay implementation that connects to a PlatformWindow and 27 // PlatformDisplay implementation that connects to a PlatformWindow and
27 // FrameGenerator for Chrome OS. 28 // FrameGenerator for Chrome OS.
28 class PlatformDisplayDefault : public PlatformDisplay, 29 class PlatformDisplayDefault : public PlatformDisplay,
29 public ui::PlatformWindowDelegate { 30 public ui::PlatformWindowDelegate {
30 public: 31 public:
31 PlatformDisplayDefault(ServerWindow* root_window, 32 PlatformDisplayDefault(ServerWindow* root_window,
32 const display::ViewportMetrics& metrics); 33 const display::ViewportMetrics& metrics);
33 ~PlatformDisplayDefault() override; 34 ~PlatformDisplayDefault() override;
34 35
36 // EventSource::
37 EventSink* GetEventSink() override;
38
35 // PlatformDisplay: 39 // PlatformDisplay:
36 void Init(PlatformDisplayDelegate* delegate) override; 40 void Init(PlatformDisplayDelegate* delegate) override;
37 void SetViewportSize(const gfx::Size& size) override; 41 void SetViewportSize(const gfx::Size& size) override;
38 void SetTitle(const base::string16& title) override; 42 void SetTitle(const base::string16& title) override;
39 void SetCapture() override; 43 void SetCapture() override;
40 void ReleaseCapture() override; 44 void ReleaseCapture() override;
41 void SetCursorById(mojom::Cursor cursor) override; 45 void SetCursorById(mojom::Cursor cursor) override;
42 void UpdateTextInputState(const ui::TextInputState& state) override; 46 void UpdateTextInputState(const ui::TextInputState& state) override;
43 void SetImeVisibility(bool visible) override; 47 void SetImeVisibility(bool visible) override;
44 bool UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; 48 bool UpdateViewportMetrics(const display::ViewportMetrics& metrics) override;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 gfx::AcceleratedWidget widget_; 84 gfx::AcceleratedWidget widget_;
81 float init_device_scale_factor_; 85 float init_device_scale_factor_;
82 86
83 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); 87 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault);
84 }; 88 };
85 89
86 } // namespace ws 90 } // namespace ws
87 } // namespace ui 91 } // namespace ui
88 92
89 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ 93 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display.h ('k') | services/ui/ws/platform_display_default.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698