Chromium Code Reviews| Index: services/ui/public/cpp/surface_id_handler.h |
| diff --git a/services/ui/public/cpp/surface_id_handler.h b/services/ui/public/cpp/surface_id_handler.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..b2cd3fdbf13aa8f69052a7162f188337568fd537 |
| --- /dev/null |
| +++ b/services/ui/public/cpp/surface_id_handler.h |
| @@ -0,0 +1,22 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef SERVICES_UI_PUBLIC_CPP_SURFACE_ID_HANDLER_H_ |
| +#define SERVICES_UI_PUBLIC_CPP_SURFACE_ID_HANDLER_H_ |
| + |
| +namespace ui { |
| + |
| +class SurfaceIdHandler { |
| + public: |
| + // Called when a child window allocates a new surface ID. |
| + // If the handler wishes to retain ownership of the |surface_info|, |
| + // it can move it. |
| + 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.
|
| + Window* window, |
| + 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.
|
| +}; |
| + |
| +} // namespace ui |
| + |
| +#endif // SERVICES_UI_PUBLIC_CPP_SURFACE_ID_HANDLER_H_ |