Chromium Code Reviews| 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..c41a0747c37f9052541319bd4cb2c695c6e2bc1b |
| --- /dev/null |
| +++ b/chrome/browser/ui/views/overlay/overlay_window_views.h |
| @@ -0,0 +1,34 @@ |
| +// 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" |
|
sky
2017/07/18 16:48:07
Forward declare Widget.
apacible
2017/07/19 00:44:12
Done.
|
| + |
| +// The Views implementation of OverlayWindow. |
| +class OverlayWindowViews : public OverlayWindow { |
| + public: |
| + OverlayWindowViews(); |
| + ~OverlayWindowViews() override; |
| + |
| + void Init() override; |
|
sky
2017/07/18 16:48:07
Generally we prefix overrides with a comment as to
apacible
2017/07/19 00:44:12
Done.
|
| + bool IsActive() const override; |
| + void Show() override; |
| + void Hide() override; |
| + void Close() override; |
| + void Activate() override; |
| + bool IsAlwaysOnTop() const override; |
| + ui::Layer* GetLayer() override; |
| + gfx::NativeWindow GetNativeWindow() const override; |
| + gfx::Rect GetBounds() const override; |
| + |
| + private: |
| + std::unique_ptr<views::Widget> widget_; |
|
sky
2017/07/18 16:48:07
If you're going to own the widget then you should
apacible
2017/07/19 00:44:12
Done.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(OverlayWindowViews); |
| +}; |
| + |
| +#endif // CHROME_BROWSER_UI_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_ |