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

Side by Side Diff: chrome/browser/ui/views/overlay/overlay_window_views.h

Issue 2905833004: [OverlayWindow] Add platform-independent window and views implementation. (Closed)
Patch Set: Rebase. Created 3 years, 5 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_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_
7
8 #include "chrome/browser/ui/overlay/overlay_window.h"
9
10 namespace views {
11 class Widget;
12 }
13
14 // The Views implementation of OverlayWindow.
15 class OverlayWindowViews : public OverlayWindow {
16 public:
17 OverlayWindowViews();
18 ~OverlayWindowViews() override;
19
20 // OverlayWindow:
21 void Init() override;
22 bool IsActive() const override;
23 void Show() override;
24 void Hide() override;
25 void Close() override;
26 void Activate() override;
27 bool IsAlwaysOnTop() const override;
28 ui::Layer* GetLayer() override;
29 gfx::NativeWindow GetNativeWindow() const override;
30 gfx::Rect GetBounds() const override;
31
32 private:
33 std::unique_ptr<views::Widget> widget_;
34
35 DISALLOW_COPY_AND_ASSIGN(OverlayWindowViews);
36 };
37
38 #endif // CHROME_BROWSER_UI_VIEWS_OVERLAY_OVERLAY_WINDOW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/overlay/overlay_window.h ('k') | chrome/browser/ui/views/overlay/overlay_window_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698