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

Unified Diff: ui/aura/window_port_for_shutdown.cc

Issue 2897663002: chromeos: makes it possible for windows to outlive WindowTreeClient (Closed)
Patch Set: cleanup Created 3 years, 7 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 | « ui/aura/window_port_for_shutdown.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/window_port_for_shutdown.cc
diff --git a/ui/aura/window_port_for_shutdown.cc b/ui/aura/window_port_for_shutdown.cc
new file mode 100644
index 0000000000000000000000000000000000000000..78ca06cb7e8226674f9b99541487f729951c3993
--- /dev/null
+++ b/ui/aura/window_port_for_shutdown.cc
@@ -0,0 +1,63 @@
+// Copyright 2017 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.
+
+#include "ui/aura/window_port_for_shutdown.h"
+
+#include "base/memory/ptr_util.h"
+#include "cc/output/compositor_frame_sink.h"
+#include "ui/aura/window.h"
+
+namespace aura {
+
+WindowPortForShutdown::WindowPortForShutdown() {}
+
+WindowPortForShutdown::~WindowPortForShutdown() {}
+
+// static
+void WindowPortForShutdown::Install(aura::Window* window) {
+ window->port_owner_.reset(new WindowPortForShutdown);
+ window->port_ = window->port_owner_.get();
+}
+
+void WindowPortForShutdown::OnPreInit(Window* window) {}
+
+void WindowPortForShutdown::OnDeviceScaleFactorChanged(
+ float device_scale_factor) {}
+
+void WindowPortForShutdown::OnWillAddChild(Window* child) {}
+
+void WindowPortForShutdown::OnWillRemoveChild(Window* child) {}
+
+void WindowPortForShutdown::OnWillMoveChild(size_t current_index,
+ size_t dest_index) {}
+
+void WindowPortForShutdown::OnVisibilityChanged(bool visible) {}
+
+void WindowPortForShutdown::OnDidChangeBounds(const gfx::Rect& old_bounds,
+ const gfx::Rect& new_bounds) {}
+
+std::unique_ptr<ui::PropertyData> WindowPortForShutdown::OnWillChangeProperty(
+ const void* key) {
+ return nullptr;
+}
+
+void WindowPortForShutdown::OnPropertyChanged(
+ const void* key,
+ int64_t old_value,
+ std::unique_ptr<ui::PropertyData> data) {}
+
+std::unique_ptr<cc::CompositorFrameSink>
+WindowPortForShutdown::CreateCompositorFrameSink() {
+ return nullptr;
+}
+
+cc::SurfaceId WindowPortForShutdown::GetSurfaceId() const {
+ return cc::SurfaceId();
+}
+
+void WindowPortForShutdown::OnWindowAddedToRootWindow() {}
+
+void WindowPortForShutdown::OnWillRemoveWindowFromRootWindow() {}
+
+} // namespace aura
« no previous file with comments | « ui/aura/window_port_for_shutdown.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698