| 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_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_ |
| OLD | NEW |