| OLD | NEW |
| (Empty) | |
| 1 // Copyright 2017 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 CHROME_BROWSER_UI_VIEWS_PIP_PIP_WINDOW_VIEWS_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_PIP_PIP_WINDOW_VIEWS_H_ |
| 7 |
| 8 #include "chrome/browser/ui/pip/pip_window.h" |
| 9 #include "ui/views/widget/widget.h" |
| 10 |
| 11 // The Views window for Picture in Picture. |
| 12 class PipWindowViews : public PipWindow { |
| 13 public: |
| 14 PipWindowViews(); |
| 15 ~PipWindowViews() override; |
| 16 |
| 17 void Init() override; |
| 18 ui::Layer* GetLayer() override; |
| 19 |
| 20 // ui::BaseWindow: |
| 21 bool IsActive() const override; |
| 22 bool IsMaximized() const override; |
| 23 bool IsMinimized() const override; |
| 24 bool IsFullscreen() const override; |
| 25 gfx::NativeWindow GetNativeWindow() const override; |
| 26 gfx::Rect GetRestoredBounds() const override; |
| 27 ui::WindowShowState GetRestoredState() const override; |
| 28 gfx::Rect GetBounds() const override; |
| 29 void Show() override; |
| 30 void Hide() override; |
| 31 void ShowInactive() override; |
| 32 void Close() override; |
| 33 void Activate() override; |
| 34 void Deactivate() override; |
| 35 void Maximize() override; |
| 36 void Minimize() override; |
| 37 void Restore() override; |
| 38 void SetBounds(const gfx::Rect& bounds) override; |
| 39 void FlashFrame(bool flash) override; |
| 40 bool IsAlwaysOnTop() const override; |
| 41 void SetAlwaysOnTop(bool always_on_top) override; |
| 42 |
| 43 private: |
| 44 views::Widget* widget_; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(PipWindowViews); |
| 47 }; |
| 48 |
| 49 #endif // CHROME_BROWSER_UI_VIEWS_PIP_PIP_WINDOW_VIEWS_H_ |
| OLD | NEW |