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

Unified Diff: services/ui/public/cpp/surface_id_handler.h

Issue 2424633002: Revert of Mus+Ash: propagate Surface ID to parents (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/ui/public/cpp/BUILD.gn ('k') | services/ui/public/cpp/tests/test_window_tree.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
deleted file mode 100644
index 77bacfd1396d05edbd5bba59b577e0ebb1ef6e0f..0000000000000000000000000000000000000000
--- a/services/ui/public/cpp/surface_id_handler.h
+++ /dev/null
@@ -1,44 +0,0 @@
-// 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_
-
-#include "cc/surfaces/surface_id.h"
-#include "cc/surfaces/surface_sequence.h"
-#include "ui/gfx/geometry/size.h"
-
-namespace ui {
-
-class Window;
-
-// Holds information about the current surface held by a Window.
-// |surface_id| uniquely identifies the surface in the display
-// compositor.
-// |surface_sequence| is a reference to the surface to retain
-// this surface even after a new surface has been created.
-// |frame_size| is the size of the frame held by the surface.
-// |device_scale_factor| is the scale factor that the frame was
-// renderered for.
-struct SurfaceInfo {
- cc::SurfaceId surface_id;
- cc::SurfaceSequence surface_sequence;
- gfx::Size frame_size;
- float device_scale_factor;
-};
-
-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. If a child's surface has been cleared then
- // |surface_info| will refer to a null pointer.
- virtual void OnChildWindowSurfaceChanged(
- Window* window,
- std::unique_ptr<SurfaceInfo>* surface_info) = 0;
-};
-
-} // namespace ui
-
-#endif // SERVICES_UI_PUBLIC_CPP_SURFACE_ID_HANDLER_H_
« no previous file with comments | « services/ui/public/cpp/BUILD.gn ('k') | services/ui/public/cpp/tests/test_window_tree.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698