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

Side by Side Diff: services/ui/ws/frame_generator_delegate.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.cc ('k') | services/ui/ws/platform_display.h » ('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_FRAME_GENERATOR_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_
6 #define SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ 6 #define SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "services/ui/ws/viewport_metrics.h" 9 #include "services/ui/ws/viewport_metrics.h"
10 10
11 namespace ui { 11 namespace ui {
12 namespace ws { 12 namespace ws {
13 13
14 class ServerWindow; 14 class ServerWindow;
15 15
16 class FrameGeneratorDelegate { 16 class FrameGeneratorDelegate {
17 public: 17 public:
18 // Returns the root window of the display. 18 // Returns the root window of the display.
19 virtual ServerWindow* GetRootWindow() = 0; 19 virtual ServerWindow* GetRootWindow() = 0;
20 20
21 // Called when a compositor frame is finished drawing.
22 virtual void OnCompositorFrameDrawn() = 0;
23
24 virtual bool IsInHighContrastMode() = 0; 21 virtual bool IsInHighContrastMode() = 0;
25 22
26 virtual const ViewportMetrics& GetViewportMetrics() = 0; 23 virtual const ViewportMetrics& GetViewportMetrics() = 0;
27 24
28 protected: 25 protected:
29 virtual ~FrameGeneratorDelegate() {} 26 virtual ~FrameGeneratorDelegate() {}
30 }; 27 };
31 28
32 } // namespace ws 29 } // namespace ws
33 } // namespace ui 30 } // namespace ui
34 31
35 #endif // SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_ 32 #endif // SERVICES_UI_WS_FRAME_GENERATOR_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/frame_generator.cc ('k') | services/ui/ws/platform_display.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698