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

Unified 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 side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698