| Index: ash/surfaces/test_shell_surface_overlay_view.h
|
| diff --git a/ash/surfaces/test_shell_surface_overlay_view.h b/ash/surfaces/test_shell_surface_overlay_view.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..047ece63069de08e486a2f6cf4cbfb36bf1b3f1e
|
| --- /dev/null
|
| +++ b/ash/surfaces/test_shell_surface_overlay_view.h
|
| @@ -0,0 +1,45 @@
|
| +// Copyright 2015 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 ASH_SURFACES_TEST_SHELL_SURFACE_OVERLAY_VIEW_H_
|
| +#define ASH_SURFACES_TEST_SHELL_SURFACE_OVERLAY_VIEW_H_
|
| +
|
| +#include "ash/wm/overlay_event_filter.h"
|
| +#include "base/compiler_specific.h"
|
| +#include "ui/views/view.h"
|
| +#include "ui/views/widget/widget.h"
|
| +#include "ui/views/widget/widget_delegate.h"
|
| +
|
| +namespace ash {
|
| +
|
| +class TestShellSurfaceOverlayView : public views::WidgetDelegateView,
|
| + public OverlayEventFilter::Delegate {
|
| + public:
|
| + TestShellSurfaceOverlayView();
|
| + ~TestShellSurfaceOverlayView() override;
|
| +
|
| + // Overridden from views::View:
|
| + void OnPaint(gfx::Canvas* canvas) override;
|
| +
|
| + // Overridden from views::WidgetDelegate:
|
| + void WindowClosing() override;
|
| +
|
| + // Overridden from ash::OverlayEventFilter::Delegate:
|
| + void Cancel() override;
|
| + bool IsCancelingKeyEvent(ui::KeyEvent* event) override;
|
| + aura::Window* GetWindow() override;
|
| +
|
| + // Shows the test shell surface overlay.
|
| + static void Show();
|
| +
|
| + // Shows the test shell surface overlay in fullscreen mode.
|
| + static void ShowFullscreen();
|
| +
|
| + private:
|
| + DISALLOW_COPY_AND_ASSIGN(TestShellSurfaceOverlayView);
|
| +};
|
| +
|
| +} // namespace ash
|
| +
|
| +#endif // ASH_SURFACES_TEST_SHELL_SURFACE_OVERLAY_VIEW_H_
|
|
|