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

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

Issue 2481263002: Introduce Display Compositor mojo interface. Use InProcessContextProvider. (Closed)
Patch Set: Speculative fix for android build issue Created 4 years, 1 month 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
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 26 matching lines...) Expand all
37 void SetViewportSize(const gfx::Size& size) override; 37 void SetViewportSize(const gfx::Size& size) override;
38 void SetTitle(const base::string16& title) override; 38 void SetTitle(const base::string16& title) override;
39 void SetCapture() override; 39 void SetCapture() override;
40 void ReleaseCapture() override; 40 void ReleaseCapture() override;
41 void SetCursorById(mojom::Cursor cursor) override; 41 void SetCursorById(mojom::Cursor cursor) override;
42 void UpdateTextInputState(const ui::TextInputState& state) override; 42 void UpdateTextInputState(const ui::TextInputState& state) override;
43 void SetImeVisibility(bool visible) override; 43 void SetImeVisibility(bool visible) override;
44 gfx::Rect GetBounds() const override; 44 gfx::Rect GetBounds() const override;
45 bool UpdateViewportMetrics(const display::ViewportMetrics& metrics) override; 45 bool UpdateViewportMetrics(const display::ViewportMetrics& metrics) override;
46 const display::ViewportMetrics& GetViewportMetrics() const override; 46 const display::ViewportMetrics& GetViewportMetrics() const override;
47 void OnGpuChannelEstablished(
48 scoped_refptr<gpu::GpuChannelHost> gpu_channel) override;
49 FrameGenerator* GetFrameGenerator() override; 47 FrameGenerator* GetFrameGenerator() override;
50 48
51 private: 49 private:
52 // Update the root_location of located events to be relative to the origin 50 // Update the root_location of located events to be relative to the origin
53 // of this display. For example, if the origin of this display is (1800, 0) 51 // of this display. For example, if the origin of this display is (1800, 0)
54 // and the location of the event is (100, 200) then the root_location will be 52 // and the location of the event is (100, 200) then the root_location will be
55 // updated to be (1900, 200). 53 // updated to be (1900, 200).
56 // TODO(riajiang): This is totally broken with HDPI. 54 // TODO(riajiang): This is totally broken with HDPI.
57 void UpdateEventRootLocation(ui::LocatedEvent* event); 55 void UpdateEventRootLocation(ui::LocatedEvent* event);
58 56
(...skipping 25 matching lines...) Expand all
84 display::ViewportMetrics metrics_; 82 display::ViewportMetrics metrics_;
85 std::unique_ptr<ui::PlatformWindow> platform_window_; 83 std::unique_ptr<ui::PlatformWindow> platform_window_;
86 84
87 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault); 85 DISALLOW_COPY_AND_ASSIGN(PlatformDisplayDefault);
88 }; 86 };
89 87
90 } // namespace ws 88 } // namespace ws
91 } // namespace ui 89 } // namespace ui
92 90
93 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_ 91 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DEFAULT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698