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

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

Issue 2400723003: Mus+Ash: Use standard cc mechanism for surface lifetime. (Closed)
Patch Set: Only AddObserver once 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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 void OnClosed() override; 162 void OnClosed() override;
163 void OnWindowStateChanged(ui::PlatformWindowState new_state) override; 163 void OnWindowStateChanged(ui::PlatformWindowState new_state) override;
164 void OnLostCapture() override; 164 void OnLostCapture() override;
165 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget, 165 void OnAcceleratedWidgetAvailable(gfx::AcceleratedWidget widget,
166 float device_scale_factor) override; 166 float device_scale_factor) override;
167 void OnAcceleratedWidgetDestroyed() override; 167 void OnAcceleratedWidgetDestroyed() override;
168 void OnActivationChanged(bool active) override; 168 void OnActivationChanged(bool active) override;
169 169
170 // FrameGeneratorDelegate: 170 // FrameGeneratorDelegate:
171 ServerWindow* GetRootWindow() override; 171 ServerWindow* GetRootWindow() override;
172 void OnCompositorFrameDrawn() override;
173 bool IsInHighContrastMode() override; 172 bool IsInHighContrastMode() override;
174 const ViewportMetrics& GetViewportMetrics() override; 173 const ViewportMetrics& GetViewportMetrics() override;
175 174
176 int64_t id_; 175 int64_t id_;
177 176
178 #if !defined(OS_ANDROID) 177 #if !defined(OS_ANDROID)
179 std::unique_ptr<ui::CursorLoader> cursor_loader_; 178 std::unique_ptr<ui::CursorLoader> cursor_loader_;
180 #endif 179 #endif
181 180
182 PlatformDisplayDelegate* delegate_ = nullptr; 181 PlatformDisplayDelegate* delegate_ = nullptr;
183 std::unique_ptr<FrameGenerator> frame_generator_; 182 std::unique_ptr<FrameGenerator> frame_generator_;
184 183
185 ViewportMetrics metrics_; 184 ViewportMetrics metrics_;
186 std::unique_ptr<ui::PlatformWindow> platform_window_; 185 std::unique_ptr<ui::PlatformWindow> platform_window_;
187 186
188 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay); 187 DISALLOW_COPY_AND_ASSIGN(DefaultPlatformDisplay);
189 }; 188 };
190 189
191 } // namespace ws 190 } // namespace ws
192 191
193 } // namespace ui 192 } // namespace ui
194 193
195 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_H_ 194 #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