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

Side by Side Diff: services/ui/ws/platform_display_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/platform_display.cc ('k') | services/ui/ws/server_window.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_DELEGATE_H_ 5 #ifndef SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ 6 #define SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
7 7
8 namespace gfx { 8 namespace gfx {
9 class Size; 9 class Size;
10 } 10 }
(...skipping 24 matching lines...) Expand all
35 // Called when an event arrives. 35 // Called when an event arrives.
36 virtual void OnEvent(const ui::Event& event) = 0; 36 virtual void OnEvent(const ui::Event& event) = 0;
37 37
38 // Called when the Display loses capture. 38 // Called when the Display loses capture.
39 virtual void OnNativeCaptureLost() = 0; 39 virtual void OnNativeCaptureLost() = 0;
40 40
41 // Signals that the metrics of this display's viewport has changed. 41 // Signals that the metrics of this display's viewport has changed.
42 virtual void OnViewportMetricsChanged(const ViewportMetrics& old_metrics, 42 virtual void OnViewportMetricsChanged(const ViewportMetrics& old_metrics,
43 const ViewportMetrics& new_metrics) = 0; 43 const ViewportMetrics& new_metrics) = 0;
44 44
45 // Called when a compositor frame is finished drawing.
46 virtual void OnCompositorFrameDrawn() = 0;
47
48 protected: 45 protected:
49 virtual ~PlatformDisplayDelegate() {} 46 virtual ~PlatformDisplayDelegate() {}
50 }; 47 };
51 48
52 } // namespace ws 49 } // namespace ws
53 50
54 } // namespace ui 51 } // namespace ui
55 52
56 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_ 53 #endif // SERVICES_UI_WS_PLATFORM_DISPLAY_DELEGATE_H_
OLDNEW
« no previous file with comments | « services/ui/ws/platform_display.cc ('k') | services/ui/ws/server_window.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698