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

Side by Side Diff: chrome/browser/ui/pip/pip_window.h

Issue 2905833004: [OverlayWindow] Add platform-independent window and views implementation. (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698