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

Side by Side Diff: ui/views/test/widget_test_mac.mm

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 2014 The Chromium Authors. All rights reserved. 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 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 #include "ui/views/test/widget_test.h" 5 #include "ui/views/test/widget_test.h"
6 6
7 #include <Cocoa/Cocoa.h> 7 #include <Cocoa/Cocoa.h>
8 8
9 #import "base/mac/scoped_nsobject.h" 9 #import "base/mac/scoped_nsobject.h"
10 #include "ui/views/widget/root_view.h" 10 #include "ui/views/widget/root_view.h"
(...skipping 13 matching lines...) Expand all
24 // static 24 // static
25 bool WidgetTest::IsNativeWindowVisible(gfx::NativeWindow window) { 25 bool WidgetTest::IsNativeWindowVisible(gfx::NativeWindow window) {
26 return [window isVisible]; 26 return [window isVisible];
27 } 27 }
28 28
29 // static 29 // static
30 ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) { 30 ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) {
31 return static_cast<internal::RootView*>(widget->GetRootView()); 31 return static_cast<internal::RootView*>(widget->GetRootView());
32 } 32 }
33 33
34 // static
35 gfx::NativeWindow WidgetTest::CurrentlyFocussedWindow(Widget* widget_context) {
36 return [[NSApplication sharedApplication] keyWindow];
37 }
38
34 } // namespace test 39 } // namespace test
35 } // namespace views 40 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698