| 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_id|, |
| 14 // and |surface_sequence|, it should return true. |
| 15 virtual bool OnChildWindowSurfaceCreated( |
| 16 Window* window, |
| 17 const cc::SurfaceId& surface_id, |
| 18 const cc::SurfaceSequence& surface_sequence, |
| 19 const gfx::Size& frame_size, |
| 20 float device_scale_factor) = 0; |
| 21 }; |
| 22 |
| 23 } // namespace ui |
| 24 |
| 25 #endif // SERVICES_UI_PUBLIC_CPP_SURFACE_ID_HANDLER_H_ |
| OLD | NEW |