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

Side by Side Diff: services/ui/public/cpp/window_observer.h

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Add missing file 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
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_PUBLIC_CPP_WINDOW_OBSERVER_H_ 5 #ifndef SERVICES_UI_PUBLIC_CPP_WINDOW_OBSERVER_H_
6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_OBSERVER_H_ 6 #define SERVICES_UI_PUBLIC_CPP_WINDOW_OBSERVER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 // Sent when the drawn state changes. This is only sent for the root nodes 111 // Sent when the drawn state changes. This is only sent for the root nodes
112 // when embedded. 112 // when embedded.
113 virtual void OnWindowDrawnChanging(Window* window) {} 113 virtual void OnWindowDrawnChanging(Window* window) {}
114 virtual void OnWindowDrawnChanged(Window* window) {} 114 virtual void OnWindowDrawnChanged(Window* window) {}
115 115
116 virtual void OnTransientChildAdded(ui::Window* window, 116 virtual void OnTransientChildAdded(ui::Window* window,
117 ui::Window* transient) {} 117 ui::Window* transient) {}
118 virtual void OnTransientChildRemoved(ui::Window* window, 118 virtual void OnTransientChildRemoved(ui::Window* window,
119 ui::Window* transient) {} 119 ui::Window* transient) {}
120 120
121 virtual void OnChildWindowSurfaceCreated(
122 Window* window,
123 const cc::SurfaceId& surface_id,
124 const cc::SurfaceSequence& surface_sequence,
125 const gfx::Size& frame_size,
126 float device_scale_factor) {}
127
121 // The WindowManager has requested the window to close. If the observer 128 // The WindowManager has requested the window to close. If the observer
122 // allows the close it should destroy the window as appropriate. 129 // allows the close it should destroy the window as appropriate.
123 virtual void OnRequestClose(Window* window) {} 130 virtual void OnRequestClose(Window* window) {}
124 131
125 protected: 132 protected:
126 virtual ~WindowObserver() {} 133 virtual ~WindowObserver() {}
127 }; 134 };
128 135
129 } // namespace ui 136 } // namespace ui
130 137
131 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_OBSERVER_H_ 138 #endif // SERVICES_UI_PUBLIC_CPP_WINDOW_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698