Chromium Code Reviews| 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_PIP_PIP_WINDOW_H_ | |
| 6 #define CHROME_BROWSER_UI_PIP_PIP_WINDOW_H_ | |
| 7 | |
| 8 #include "ui/base/base_window.h" | |
| 9 #include "ui/compositor/layer.h" | |
| 10 | |
| 11 class PipWindow : public ui::BaseWindow { | |
|
mlamouri (slow - plz ping)
2017/06/05 13:09:33
Name: what about PictureInPictureWindow? It's a mo
apacible
2017/06/13 07:58:08
See other comment on naming.
| |
| 12 public: | |
| 13 PipWindow() {} | |
| 14 virtual ~PipWindow() {} | |
|
mlamouri (slow - plz ping)
2017/06/05 13:09:33
Aren't you missing the implementation file?
Also,
apacible
2017/06/13 07:58:08
It's implemented in pip_window_views.cc/h. The Mac
| |
| 15 | |
| 16 // Returns a created PipWindow. This is defined in the platform-specific | |
| 17 // implementation for the class. | |
| 18 static std::unique_ptr<PipWindow> Create(); | |
|
mlamouri (slow - plz ping)
2017/06/05 13:09:33
What's the difference between ::Create() and the c
apacible
2017/06/13 07:58:08
This is implemented on the platform-class level, w
| |
| 19 | |
| 20 virtual void Init() = 0; | |
| 21 virtual ui::Layer* GetLayer() = 0; | |
| 22 | |
| 23 // ui::BaseWindow: | |
| 24 bool IsActive() const override; | |
| 25 bool IsMaximized() const override; | |
| 26 bool IsMinimized() const override; | |
| 27 bool IsFullscreen() const override; | |
| 28 gfx::NativeWindow GetNativeWindow() const override; | |
| 29 gfx::Rect GetRestoredBounds() const override; | |
| 30 ui::WindowShowState GetRestoredState() const override; | |
| 31 gfx::Rect GetBounds() const override; | |
| 32 void Show() override; | |
| 33 void Hide() override; | |
| 34 void ShowInactive() override; | |
| 35 void Close() override; | |
| 36 void Activate() override; | |
| 37 void Deactivate() override; | |
| 38 void Maximize() override; | |
| 39 void Minimize() override; | |
| 40 void Restore() override; | |
| 41 void SetBounds(const gfx::Rect& bounds) override; | |
| 42 void FlashFrame(bool flash) override; | |
| 43 bool IsAlwaysOnTop() const override; | |
| 44 void SetAlwaysOnTop(bool always_on_top) override; | |
| 45 | |
| 46 private: | |
| 47 DISALLOW_COPY_AND_ASSIGN(PipWindow); | |
| 48 }; | |
| 49 | |
| 50 #endif // CHROME_BROWSER_UI_PIP_PIP_WINDOW_H_ | |
| OLD | NEW |