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

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

Issue 334573008: MacViews: Encapsulate some Aura specifics in widget_unittest.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: respond to comments 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
« no previous file with comments | « ui/views/test/widget_test_aura.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <Cocoa/Cocoa.h>
8
9 #include "ui/views/widget/root_view.h"
10
11 namespace views {
12 namespace test {
13
14 // static
15 void WidgetTest::SimulateNativeDestroy(Widget* widget) {
16 DCHECK([widget->GetNativeWindow() isReleasedWhenClosed]);
17 [widget->GetNativeWindow() close];
18 }
19
20 // static
21 bool WidgetTest::IsNativeWindowVisible(gfx::NativeWindow window) {
22 return [window isVisible];
23 }
24
25 // static
26 ui::EventProcessor* WidgetTest::GetEventProcessor(Widget* widget) {
27 return static_cast<internal::RootView*>(widget->GetRootView());
28 }
29
30 } // namespace test
31 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/test/widget_test_aura.cc ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698