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

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

Issue 831643004: MacViews: Fix child window z-order and SetBounds (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix typo: than->that 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 unified diff | Download patch
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 View* GetMouseMoveHandler(internal::RootView* root_view); 86 View* GetMouseMoveHandler(internal::RootView* root_view);
87 87
88 View* GetGestureHandler(internal::RootView* root_view); 88 View* GetGestureHandler(internal::RootView* root_view);
89 89
90 // Simulate a OS-level destruction of the native widget held by |widget|. 90 // Simulate a OS-level destruction of the native widget held by |widget|.
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 true if |above| is higher than |below| in the native window Z-order.
97 // Both windows must be visible.
98 static bool IsWindowStackedAbove(Widget* above, Widget* below);
99
96 // Return the event processor for |widget|. On aura platforms, this is an 100 // Return the event processor for |widget|. On aura platforms, this is an
97 // aura::WindowEventDispatcher. Otherwise, it is a bridge to the OS event 101 // aura::WindowEventDispatcher. Otherwise, it is a bridge to the OS event
98 // processor. 102 // processor.
99 static ui::EventProcessor* GetEventProcessor(Widget* widget); 103 static ui::EventProcessor* GetEventProcessor(Widget* widget);
100 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

Powered by Google App Engine
This is Rietveld 408576698