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

Side by Side Diff: ui/views/test/widget_test_aura.cc

Issue 322893005: MacViews: Add WidgetEventGenerator to abstract platform-specific event generation for tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cull orthogonal stuff, add WidgetTest.MouseEventTypesViaGenerator Created 6 years, 6 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "ui/views/test/widget_test.h"
6
7 #include "ui/aura/window.h"
8 #include "ui/aura/window_tree_host.h"
9 #include "ui/views/widget/widget.h"
10
11 namespace views {
12 namespace test {
13
14 // static
15 bool WidgetTest::IsNativeWindowVisible(gfx::NativeWindow window) {
16 return window->IsVisible();
17 }
18
19 // static
20 ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) {
21 return widget->GetNativeWindow()->GetHost()->event_processor();
22 }
23
24 } // namespace test
25 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698