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

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

Issue 2414683003: Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: Removed stale 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_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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698