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

Unified Diff: ui/views/test/widget_test_mac.mm

Issue 2488393003: Changes views_aura_mus_unittests to create DesktopNativeWidgetAura (Closed)
Patch Set: remove this and fix mac Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/test/widget_test_aura.cc ('k') | ui/views/touchui/touch_selection_controller_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/test/widget_test_mac.mm
diff --git a/ui/views/test/widget_test_mac.mm b/ui/views/test/widget_test_mac.mm
index 91f824c2337534181cd218cd87c4abc36158cba2..5b3f9e5bb3b849a8569ca8e2abac946dc9345312 100644
--- a/ui/views/test/widget_test_mac.mm
+++ b/ui/views/test/widget_test_mac.mm
@@ -25,15 +25,6 @@ NSWindow* g_simulated_active_window_ = nil;
} // namespace
// static
-void WidgetTest::SimulateNativeDestroy(Widget* widget) {
- // Retain the window while closing it, otherwise the window may lose its last
- // owner before -[NSWindow close] completes (this offends AppKit). Usually
- // this reference will exist on an event delivered to the runloop.
- base::scoped_nsobject<NSWindow> window([widget->GetNativeWindow() retain]);
- [window close];
-}
-
-// static
void WidgetTest::SimulateNativeActivate(Widget* widget) {
NSNotificationCenter* center = [NSNotificationCenter defaultCenter];
if (g_simulated_active_window_) {
« no previous file with comments | « ui/views/test/widget_test_aura.cc ('k') | ui/views/touchui/touch_selection_controller_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698