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

Unified Diff: ui/views/test/widget_test.h

Issue 851853002: It is time. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Trying to reup because the last upload failed. Created 5 years, 11 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
« no previous file with comments | « ui/views/test/webview_test_helper.cc ('k') | ui/views/test/widget_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/widget_test.h
diff --git a/ui/views/test/widget_test.h b/ui/views/test/widget_test.h
deleted file mode 100644
index dfeca47c88c239592112b7fd47cc3c406b19ed7e..0000000000000000000000000000000000000000
--- a/ui/views/test/widget_test.h
+++ /dev/null
@@ -1,108 +0,0 @@
-// Copyright 2013 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 UI_VIEWS_TEST_WIDGET_TEST_H_
-#define UI_VIEWS_TEST_WIDGET_TEST_H_
-
-#include "ui/gfx/native_widget_types.h"
-#include "ui/views/test/views_test_base.h"
-
-#if defined(USE_AURA)
-#include "ui/views/widget/native_widget_aura.h"
-#if !defined(OS_CHROMEOS)
-#include "ui/views/widget/desktop_aura/desktop_native_widget_aura.h"
-#endif
-#elif defined(OS_MACOSX)
-#include "ui/views/widget/native_widget_mac.h"
-#endif
-
-namespace ui {
-class EventProcessor;
-}
-
-namespace views {
-
-class NativeWidget;
-class Widget;
-
-#if defined(USE_AURA)
-typedef NativeWidgetAura PlatformNativeWidget;
-#if !defined(OS_CHROMEOS)
-typedef DesktopNativeWidgetAura PlatformDesktopNativeWidget;
-#endif
-#elif defined(OS_MACOSX)
-typedef NativeWidgetMac PlatformNativeWidget;
-typedef NativeWidgetMac PlatformDesktopNativeWidget;
-#endif
-
-namespace internal {
-
-class RootView;
-
-} // namespace internal
-
-namespace test {
-
-// A widget that assumes mouse capture always works. It won't on Aura in
-// testing, so we mock it.
-class NativeWidgetCapture : public PlatformNativeWidget {
- public:
- explicit NativeWidgetCapture(internal::NativeWidgetDelegate* delegate);
- virtual ~NativeWidgetCapture();
-
- virtual void SetCapture() override;
- virtual void ReleaseCapture() override;
- virtual bool HasCapture() const override;
-
- private:
- bool mouse_capture_;
-
- DISALLOW_COPY_AND_ASSIGN(NativeWidgetCapture);
-};
-
-class WidgetTest : public ViewsTestBase {
- public:
- WidgetTest();
- virtual ~WidgetTest();
-
- NativeWidget* CreatePlatformNativeWidget(
- internal::NativeWidgetDelegate* delegate);
-
- Widget* CreateTopLevelPlatformWidget();
-
- Widget* CreateTopLevelFramelessPlatformWidget();
-
- Widget* CreateChildPlatformWidget(gfx::NativeView parent_native_view);
-
- Widget* CreateTopLevelNativeWidget();
-
- Widget* CreateChildNativeWidgetWithParent(Widget* parent);
-
- Widget* CreateChildNativeWidget();
-
- View* GetMousePressedHandler(internal::RootView* root_view);
-
- View* GetMouseMoveHandler(internal::RootView* root_view);
-
- View* GetGestureHandler(internal::RootView* root_view);
-
- // Simulate a OS-level destruction of the native widget held by |widget|.
- static void SimulateNativeDestroy(Widget* widget);
-
- // Return true if |window| is visible according to the native platform.
- static bool IsNativeWindowVisible(gfx::NativeWindow window);
-
- // Return the event processor for |widget|. On aura platforms, this is an
- // aura::WindowEventDispatcher. Otherwise, it is a bridge to the OS event
- // processor.
- static ui::EventProcessor* GetEventProcessor(Widget* widget);
-
- private:
- DISALLOW_COPY_AND_ASSIGN(WidgetTest);
-};
-
-} // namespace test
-} // namespace views
-
-#endif // UI_VIEWS_TEST_WIDGET_TEST_H_
« no previous file with comments | « ui/views/test/webview_test_helper.cc ('k') | ui/views/test/widget_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698