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

Side by Side Diff: ui/views/test/widget_test.h

Issue 444583002: MacViews: Get widget_interactive_uitest compiling on Mac (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix TouchSelectionQuickMenuIsNotActivated Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | ui/views/test/widget_test_aura.cc » ('j') | ui/views/widget/widget_interactive_uitest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698