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

Side by Side Diff: ash/surfaces/test_shell_surface_overlay_view.h

Issue 1394573003: chromeos: Add SurfaceServiceProvider. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 2015 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 ASH_SURFACES_TEST_SHELL_SURFACE_OVERLAY_VIEW_H_
6 #define ASH_SURFACES_TEST_SHELL_SURFACE_OVERLAY_VIEW_H_
7
8 #include "ash/wm/overlay_event_filter.h"
9 #include "base/compiler_specific.h"
10 #include "ui/views/view.h"
11 #include "ui/views/widget/widget.h"
12 #include "ui/views/widget/widget_delegate.h"
13
14 namespace ash {
15
16 class TestShellSurfaceOverlayView : public views::WidgetDelegateView,
17 public OverlayEventFilter::Delegate {
18 public:
19 TestShellSurfaceOverlayView();
20 ~TestShellSurfaceOverlayView() override;
21
22 // Overridden from views::View:
23 void OnPaint(gfx::Canvas* canvas) override;
24
25 // Overridden from views::WidgetDelegate:
26 void WindowClosing() override;
27
28 // Overridden from ash::OverlayEventFilter::Delegate:
29 void Cancel() override;
30 bool IsCancelingKeyEvent(ui::KeyEvent* event) override;
31 aura::Window* GetWindow() override;
32
33 // Shows the test shell surface overlay.
34 static void Show();
35
36 // Shows the test shell surface overlay in fullscreen mode.
37 static void ShowFullscreen();
38
39 private:
40 DISALLOW_COPY_AND_ASSIGN(TestShellSurfaceOverlayView);
41 };
42
43 } // namespace ash
44
45 #endif // ASH_SURFACES_TEST_SHELL_SURFACE_OVERLAY_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698