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

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

Issue 2905833004: [OverlayWindow] Add platform-independent window and views implementation. (Closed)
Patch Set: Changes per sky@'s comments. 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 // This window will always float above other windows. The intention is to show
12 // content perpetually while the user is still interacting with the other
13 // browser windows.
14 class OverlayWindow : public ui::BaseWindow {
15 public:
16 OverlayWindow() {}
17 virtual ~OverlayWindow() {}
18
19 // Returns a created OverlayWindow. This is defined in the platform-specific
20 // implementation for the class.
21 static std::unique_ptr<OverlayWindow> Create();
22
23 virtual void Init() = 0;
24 virtual ui::Layer* GetLayer() = 0;
25
26 // ui::BaseWindow:
27 bool IsActive() const override;
28 bool IsMaximized() const override;
29 bool IsMinimized() const override;
30 bool IsFullscreen() const override;
31 gfx::NativeWindow GetNativeWindow() const override;
32 gfx::Rect GetRestoredBounds() const override;
33 ui::WindowShowState GetRestoredState() const override;
34 gfx::Rect GetBounds() const override;
35 void Show() override;
36 void Hide() override;
37 void ShowInactive() override;
38 void Close() override;
39 void Activate() override;
40 void Deactivate() override;
41 void Maximize() override;
42 void Minimize() override;
43 void Restore() override;
44 void SetBounds(const gfx::Rect& bounds) override;
45 void FlashFrame(bool flash) override;
46 bool IsAlwaysOnTop() const override;
47 void SetAlwaysOnTop(bool always_on_top) override;
48
49 private:
50 DISALLOW_COPY_AND_ASSIGN(OverlayWindow);
51 };
52
53 #endif // CHROME_BROWSER_UI_OVERLAY_OVERLAY_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698