Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef UI_VIEWS_TEST_WIDGET_TEST_H_ | 5 #ifndef UI_VIEWS_TEST_WIDGET_TEST_H_ |
| 6 #define UI_VIEWS_TEST_WIDGET_TEST_H_ | 6 #define UI_VIEWS_TEST_WIDGET_TEST_H_ |
| 7 | 7 |
| 8 #include "ui/gfx/native_widget_types.h" | 8 #include "ui/gfx/native_widget_types.h" |
| 9 #include "ui/views/test/views_test_base.h" | 9 #include "ui/views/test/views_test_base.h" |
| 10 | 10 |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 static void SimulateNativeDestroy(Widget* widget); | 91 static void SimulateNativeDestroy(Widget* widget); |
| 92 | 92 |
| 93 // Return true if |window| is visible according to the native platform. | 93 // Return true if |window| is visible according to the native platform. |
| 94 static bool IsNativeWindowVisible(gfx::NativeWindow window); | 94 static bool IsNativeWindowVisible(gfx::NativeWindow window); |
| 95 | 95 |
| 96 // Return the event processor for |widget|. On aura platforms, this is an | 96 // Return the event processor for |widget|. On aura platforms, this is an |
| 97 // aura::WindowEventDispatcher. Otherwise, it is a bridge to the OS event | 97 // aura::WindowEventDispatcher. Otherwise, it is a bridge to the OS event |
| 98 // processor. | 98 // processor. |
| 99 static ui::EventProcessor* GetEventProcessor(Widget* widget); | 99 static ui::EventProcessor* GetEventProcessor(Widget* widget); |
| 100 | 100 |
| 101 // For interactive tests, the window currently with focus on the desktop. | |
| 102 // |widget_context| is used to determine the root window. | |
| 103 static gfx::NativeWindow CurrentlyFocussedWindow(Widget* widget_context); | |
|
sky
2014/08/05 17:15:52
This is confusing that it takes a widget_context,
sky
2014/08/05 17:15:52
focused
| |
| 104 | |
| 101 private: | 105 private: |
| 102 DISALLOW_COPY_AND_ASSIGN(WidgetTest); | 106 DISALLOW_COPY_AND_ASSIGN(WidgetTest); |
| 103 }; | 107 }; |
| 104 | 108 |
| 105 } // namespace test | 109 } // namespace test |
| 106 } // namespace views | 110 } // namespace views |
| 107 | 111 |
| 108 #endif // UI_VIEWS_TEST_WIDGET_TEST_H_ | 112 #endif // UI_VIEWS_TEST_WIDGET_TEST_H_ |
| OLD | NEW |