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

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

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: updated comment 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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef SERVICES_UI_PUBLIC_CPP_SURFACE_ID_HANDLER_H_
6 #define SERVICES_UI_PUBLIC_CPP_SURFACE_ID_HANDLER_H_
7
8 namespace ui {
9
10 class SurfaceIdHandler {
11 public:
12 // Called when a child window allocates a new surface ID.
13 // If the handler wishes to retain ownership of the |surface_info|,
14 // it can move it.
15 virtual void OnChildWindowSurfaceCreated(
sky 2016/10/14 21:55:34 This may be called with null, right? In which case
Fady Samuel 2016/10/14 22:20:13 Done.
16 Window* window,
17 std::unique_ptr<Window::SurfaceInfo>* surface_info) = 0;
sky 2016/10/14 21:55:34 You'll need to include window.h here (which seems
Fady Samuel 2016/10/14 22:20:13 Done.
18 };
19
20 } // namespace ui
21
22 #endif // SERVICES_UI_PUBLIC_CPP_SURFACE_ID_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698