Chromium Code Reviews| OLD | NEW |
|---|---|
| (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_ | |
| OLD | NEW |