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

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

Issue 2369793002: WIP: Propagate SurfaceID up window tree hierarchy
Patch Set: Fix input events: EventDispatcher ignores container windows Created 4 years, 2 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/frame_generator_delegate.h ('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 <map> 10 #include <map>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 void OnCloseRequest() override; 158 void OnCloseRequest() override;
159 void OnClosed() override; 159 void OnClosed() override;
160 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 160 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
161 void OnLostCapture() override; 161 void OnLostCapture() override;
162 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 162 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
163 float device_scale_factor) override; 163 float device_scale_factor) override;
164 void OnAcceleratedWidgetDestroyed() override; 164 void OnAcceleratedWidgetDestroyed() override;
165 void OnActivationChanged(bool active) override; 165 void OnActivationChanged(bool active) override;
166 166
167 // FrameGeneratorDelegate: 167 // FrameGeneratorDelegate:
168 ServerWindow* GetActiveRootWindow() override;
168 ServerWindow* GetRootWindow() override; 169 ServerWindow* GetRootWindow() override;
169 void OnCompositorFrameDrawn() override; 170 void OnCompositorFrameDrawn() override;
170 bool IsInHighContrastMode() override; 171 bool IsInHighContrastMode() override;
171 const ViewportMetrics& GetViewportMetrics() override; 172 const ViewportMetrics& GetViewportMetrics() override;
172 173
173 int64_t id_; 174 int64_t id_;
174 175
175 #if !defined(OS_ANDROID) 176 #if !defined(OS_ANDROID)
176 std::unique_ptr<ui::CursorLoader> cursor_loader_; 177 std::unique_ptr<ui::CursorLoader> cursor_loader_;
177 #endif 178 #endif
178 179
179 PlatformDisplayDelegate* delegate_ = nullptr; 180 PlatformDisplayDelegate* delegate_ = nullptr;
180 std::unique_ptr<FrameGenerator> frame_generator_; 181 std::unique_ptr<FrameGenerator> frame_generator_;
181 182
182 ViewportMetrics metrics_; 183 ViewportMetrics metrics_;
183 std::unique_ptr<ui::PlatformWindow> platform_window_; 184 std::unique_ptr<ui::PlatformWindow> platform_window_;
184 185
185 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); 186 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay);
186 }; 187 };
187 188
188 } // namespace ws 189 } // namespace ws
189 190
190 } // namespace ui 191 } // namespace ui
191 192
192 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 193 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_
OLDNEW
« no previous file with comments | « services/ui/ws/frame_generator_delegate.h ('k') | services/ui/ws/platform_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698