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

Unified Diff: chromecast/graphics/cast_window_manager_default.h

Issue 2643553002: [Chromecast] Reuse the Aura window manager across receiver apps. (Closed)
Patch Set: Created 3 years, 11 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
Index: chromecast/graphics/cast_window_manager_default.h
diff --git a/chromecast/graphics/cast_window_manager_default.h b/chromecast/graphics/cast_window_manager_default.h
new file mode 100644
index 0000000000000000000000000000000000000000..d3ce4d4ef9a62f3bc3b2e86202740abc46292da9
--- /dev/null
+++ b/chromecast/graphics/cast_window_manager_default.h
@@ -0,0 +1,35 @@
+// 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.
+#ifndef CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_DEFAULT_H_
+#define CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_DEFAULT_H_
+
+#include <memory>
+
+#include "base/macros.h"
+#include "chromecast/graphics/cast_window_manager.h"
+
+namespace chromecast {
+
+class CastWindowManagerDefault : public CastWindowManager {
+ public:
+ ~CastWindowManagerDefault() override;
+
+ // CastWindowManager implementation:
+ void Setup() override;
+ void TearDown() override;
+ void AddWindow(gfx::NativeView window) override;
+ void AddAndShowWindow(gfx::NativeView window) override;
+
+ private:
+ friend class CastWindowManager;
+
+ // This class should only be instantiated by CastWindowManager::Create.
+ CastWindowManagerDefault();
+
+ DISALLOW_COPY_AND_ASSIGN(CastWindowManagerDefault);
+};
+
+} // namespace chromecast
+
+#endif // CHROMECAST_GRAPHICS_CAST_WINDOW_MANAGER_DEFAULT_H_

Powered by Google App Engine
This is Rietveld 408576698