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

Side by Side Diff: chrome/browser/ui/overlay/overlay_window.h

Issue 2905833004: [OverlayWindow] Add platform-independent window and views implementation. (Closed)
Patch Set: Rename PIP to Overlay. 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_OVERLAY_OVERLAY_WINDOW_H_
6 #define CHROME_BROWSER_UI_OVERLAY_OVERLAY_WINDOW_H_
7
8 #include "ui/base/base_window.h"
9 #include "ui/compositor/layer.h"
10
11 class OverlayWindow : public ui::BaseWindow {
sky 2017/06/20 16:51:39 Please add a description.
apacible 2017/06/24 00:42:03 Done.
12 public:
13 OverlayWindow() {}
14 virtual ~OverlayWindow() {}
15
16 // Returns a created OverlayWindow. This is defined in the platform-specific
17 // implementation for the class.
18 static std::unique_ptr<OverlayWindow> Create();
19
20 virtual void Init() = 0;
21 virtual ui::Layer* GetLayer() = 0;
22
23 // ui::BaseWindow:
24 bool IsActive() const override;
sky 2017/06/20 16:51:39 Why do you have these declarations with no definit
apacible 2017/06/24 00:42:02 These are defined in the platform-specific classes
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(OverlayWindow);
48 };
49
50 #endif // CHROME_BROWSER_UI_OVERLAY_OVERLAY_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698