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