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

Unified Diff: chrome/browser/ui/views/pip/pip_window_views.h

Issue 2905833004: [OverlayWindow] Add platform-independent window and views implementation. (Closed)
Patch Set: 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
Index: chrome/browser/ui/views/pip/pip_window_views.h
diff --git a/chrome/browser/ui/views/pip/pip_window_views.h b/chrome/browser/ui/views/pip/pip_window_views.h
new file mode 100644
index 0000000000000000000000000000000000000000..fbc36d549a4573098c22f3eeeee087a72a7d39b3
--- /dev/null
+++ b/chrome/browser/ui/views/pip/pip_window_views.h
@@ -0,0 +1,49 @@
+// 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 CHROME_BROWSER_UI_VIEWS_PIP_PIP_WINDOW_VIEWS_H_
+#define CHROME_BROWSER_UI_VIEWS_PIP_PIP_WINDOW_VIEWS_H_
+
+#include "chrome/browser/ui/pip/pip_window.h"
+#include "ui/views/widget/widget.h"
+
+// The Views window for Picture in Picture.
+class PipWindowViews : public PipWindow {
+ public:
+ PipWindowViews();
+ ~PipWindowViews() override;
+
+ void Init() override;
+ ui::Layer* GetLayer() override;
+
+ // ui::BaseWindow:
+ bool IsActive() const override;
+ bool IsMaximized() const override;
+ bool IsMinimized() const override;
+ bool IsFullscreen() const override;
+ gfx::NativeWindow GetNativeWindow() const override;
+ gfx::Rect GetRestoredBounds() const override;
+ ui::WindowShowState GetRestoredState() const override;
+ gfx::Rect GetBounds() const override;
+ void Show() override;
+ void Hide() override;
+ void ShowInactive() override;
+ void Close() override;
+ void Activate() override;
+ void Deactivate() override;
+ void Maximize() override;
+ void Minimize() override;
+ void Restore() override;
+ void SetBounds(const gfx::Rect& bounds) override;
+ void FlashFrame(bool flash) override;
+ bool IsAlwaysOnTop() const override;
+ void SetAlwaysOnTop(bool always_on_top) override;
+
+ private:
+ views::Widget* widget_;
+
+ DISALLOW_COPY_AND_ASSIGN(PipWindowViews);
+};
+
+#endif // CHROME_BROWSER_UI_VIEWS_PIP_PIP_WINDOW_VIEWS_H_

Powered by Google App Engine
This is Rietveld 408576698