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

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

Issue 2784663003: mus: Rename mojom::Cursor to mojom::CursorType. (Closed)
Patch Set: Created 3 years, 8 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"
(...skipping 24 matching lines...) Expand all
35 35
36 // EventSource:: 36 // EventSource::
37 EventSink* GetEventSink() override; 37 EventSink* GetEventSink() override;
38 38
39 // PlatformDisplay: 39 // PlatformDisplay:
40 void Init(PlatformDisplayDelegate* delegate) override; 40 void Init(PlatformDisplayDelegate* delegate) override;
41 void SetViewportSize(const gfx::Size& size) override; 41 void SetViewportSize(const gfx::Size& size) override;
42 void SetTitle(const base::string16& title) override; 42 void SetTitle(const base::string16& title) override;
43 void SetCapture() override; 43 void SetCapture() override;
44 void ReleaseCapture() override; 44 void ReleaseCapture() override;
45 void SetCursorById(mojom::Cursor cursor) override; 45 void SetCursorById(mojom::CursorType cursor) override;
46 void UpdateTextInputState(const ui::TextInputState& state) override; 46 void UpdateTextInputState(const ui::TextInputState& state) override;
47 void SetImeVisibility(bool visible) override; 47 void SetImeVisibility(bool visible) override;
48 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; 48 void UpdateViewportMetrics(const display::ViewportMetrics& metrics) override;
49 gfx::AcceleratedWidget GetAcceleratedWidget() const override; 49 gfx::AcceleratedWidget GetAcceleratedWidget() const override;
50 FrameGenerator* GetFrameGenerator() override; 50 FrameGenerator* GetFrameGenerator() override;
51 51
52 private: 52 private:
53 // Update the root_location of located events to be relative to the origin 53 // Update the root_location of located events to be relative to the origin
54 // of this display. For example, if the origin of this display is (1800, 0) 54 // of this display. For example, if the origin of this display is (1800, 0)
55 // and the location of the event is (100, 200) then the root_location will be 55 // and the location of the event is (100, 200) then the root_location will be
(...skipping 27 matching lines...) Expand all
83 std::unique_ptr<ui::PlatformWindow> platform_window_; 83 std::unique_ptr<ui::PlatformWindow> platform_window_;
84 gfx::AcceleratedWidget widget_; 84 gfx::AcceleratedWidget widget_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); 86 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault);
87 }; 87 };
88 88
89 } // namespace ws 89 } // namespace ws
90 } // namespace ui 90 } // namespace ui
91 91
92 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ 92 #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