| Index: chrome/browser/ui/views/overlay/overlay_window_views.h
|
| diff --git a/chrome/browser/ui/views/overlay/overlay_window_views.h b/chrome/browser/ui/views/overlay/overlay_window_views.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..939e433c9377ef68619c56d56c85acda3c6a7abc
|
| --- /dev/null
|
| +++ b/chrome/browser/ui/views/overlay/overlay_window_views.h
|
| @@ -0,0 +1,49 @@
|
| +// Copyright 2017 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef CHROME_BROWSER_UI_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_
|
| +#define CHROME_BROWSER_UI_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_
|
| +
|
| +#include "chrome/browser/ui/overlay/overlay_window.h"
|
| +#include "ui/views/widget/widget.h"
|
| +
|
| +// The Views implementation of OverlayWindow.
|
| +class OverlayWindowViews : public OverlayWindow {
|
| + public:
|
| + OverlayWindowViews();
|
| + ~OverlayWindowViews() override;
|
| +
|
| + void Init() override;
|
| + ui::Layer* GetLayer() override;
|
| +
|
| + // ui::BaseWindow:
|
| + bool IsActive() const override;
|
| + bool IsMaximized() const override;
|
| + bool IsMinimized() const override;
|
| + bool IsFullscreen() const override;
|
| + gfx::NativeWindow GetNativeWindow() const override;
|
| + gfx::Rect GetRestoredBounds() const override;
|
| + ui::WindowShowState GetRestoredState() const override;
|
| + gfx::Rect GetBounds() const override;
|
| + void Show() override;
|
| + void Hide() override;
|
| + void ShowInactive() override;
|
| + void Close() override;
|
| + void Activate() override;
|
| + void Deactivate() override;
|
| + void Maximize() override;
|
| + void Minimize() override;
|
| + void Restore() override;
|
| + void SetBounds(const gfx::Rect& bounds) override;
|
| + void FlashFrame(bool flash) override;
|
| + bool IsAlwaysOnTop() const override;
|
| + void SetAlwaysOnTop(bool always_on_top) override;
|
| +
|
| + private:
|
| + std::unique_ptr<views::Widget> widget_;
|
| +
|
| + DISALLOW_COPY_AND_ASSIGN(OverlayWindowViews);
|
| +};
|
| +
|
| +#endif // CHROME_BROWSER_UI_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_
|
|
|