| OLD | NEW |
| 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 #import "ui/views/cocoa/bridged_native_widget.h" | 5 #import "ui/views/cocoa/bridged_native_widget.h" |
| 6 | 6 |
| 7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
| 8 | 8 |
| 9 #import "base/mac/foundation_util.h" | 9 #import "base/mac/foundation_util.h" |
| 10 #import "base/mac/mac_util.h" | 10 #import "base/mac/mac_util.h" |
| 11 #import "base/mac/sdk_forward_declarations.h" | 11 #import "base/mac/sdk_forward_declarations.h" |
| 12 #include "base/macros.h" |
| 12 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
| 13 #include "base/message_loop/message_loop.h" | 14 #include "base/message_loop/message_loop.h" |
| 14 #include "base/strings/sys_string_conversions.h" | 15 #include "base/strings/sys_string_conversions.h" |
| 15 #include "base/strings/utf_string_conversions.h" | 16 #include "base/strings/utf_string_conversions.h" |
| 16 #import "testing/gtest_mac.h" | 17 #import "testing/gtest_mac.h" |
| 17 #import "ui/base/cocoa/window_size_constants.h" | 18 #import "ui/base/cocoa/window_size_constants.h" |
| 18 #include "ui/base/ime/input_method.h" | 19 #include "ui/base/ime/input_method.h" |
| 19 #import "ui/gfx/test/ui_cocoa_test_helper.h" | 20 #import "ui/gfx/test/ui_cocoa_test_helper.h" |
| 20 #import "ui/views/cocoa/bridged_content_view.h" | 21 #import "ui/views/cocoa/bridged_content_view.h" |
| 21 #import "ui/views/cocoa/native_widget_mac_nswindow.h" | 22 #import "ui/views/cocoa/native_widget_mac_nswindow.h" |
| (...skipping 554 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 [center postNotificationName:NSWindowDidExitFullScreenNotification | 577 [center postNotificationName:NSWindowDidExitFullScreenNotification |
| 577 object:window]; | 578 object:window]; |
| 578 EXPECT_EQ(1, [window ignoredToggleFullScreenCount]); // No change. | 579 EXPECT_EQ(1, [window ignoredToggleFullScreenCount]); // No change. |
| 579 EXPECT_FALSE(bridge()->target_fullscreen_state()); | 580 EXPECT_FALSE(bridge()->target_fullscreen_state()); |
| 580 | 581 |
| 581 widget_->CloseNow(); | 582 widget_->CloseNow(); |
| 582 } | 583 } |
| 583 | 584 |
| 584 } // namespace test | 585 } // namespace test |
| 585 } // namespace views | 586 } // namespace views |
| OLD | NEW |