| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 "chrome/browser/ui/cocoa/browser_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 | 8 |
| 9 #include "base/mac/mac_util.h" | 9 #include "base/mac/mac_util.h" |
| 10 #import "base/mac/scoped_nsobject.h" | 10 #import "base/mac/scoped_nsobject.h" |
| 11 #include "chrome/app/chrome_command_ids.h" | 11 #include "chrome/app/chrome_command_ids.h" |
| 12 #include "chrome/browser/chrome_notification_types.h" | 12 #include "chrome/browser/chrome_notification_types.h" |
| 13 #include "chrome/browser/ui/browser_list.h" | 13 #include "chrome/browser/ui/browser_list.h" |
| 14 #include "chrome/browser/ui/browser_window.h" | 14 #include "chrome/browser/ui/browser_window.h" |
| 15 #include "chrome/browser/ui/cocoa/cocoa_profile_test.h" | 15 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" |
| 16 #import "chrome/browser/ui/cocoa/fast_resize_view.h" | 16 #import "chrome/browser/ui/cocoa/fast_resize_view.h" |
| 17 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" | |
| 18 #include "chrome/browser/ui/cocoa/run_loop_testing.h" | |
| 19 #include "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" | 17 #include "chrome/browser/ui/cocoa/tabs/tab_strip_view.h" |
| 18 #include "chrome/browser/ui/cocoa/test/cocoa_profile_test.h" |
| 19 #include "chrome/browser/ui/cocoa/test/run_loop_testing.h" |
| 20 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" | 20 #import "chrome/browser/ui/cocoa/toolbar/toolbar_controller.h" |
| 21 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
| 22 #include "chrome/test/base/testing_profile.h" | 22 #include "chrome/test/base/testing_profile.h" |
| 23 #include "components/bookmarks/common/bookmark_pref_names.h" | 23 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 24 #include "components/prefs/pref_service.h" | 24 #include "components/prefs/pref_service.h" |
| 25 #include "content/public/browser/notification_service.h" | 25 #include "content/public/browser/notification_service.h" |
| 26 #include "content/public/test/test_utils.h" | 26 #include "content/public/test/test_utils.h" |
| 27 #include "testing/gmock/include/gmock/gmock.h" | 27 #include "testing/gmock/include/gmock/gmock.h" |
| 28 #import "testing/gtest_mac.h" | 28 #import "testing/gtest_mac.h" |
| 29 #import "third_party/ocmock/OCMock/OCMock.h" | 29 #import "third_party/ocmock/OCMock/OCMock.h" |
| (...skipping 786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 816 [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,400,400) | 816 [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,400,400) |
| 817 styleMask:NSBorderlessWindowMask | 817 styleMask:NSBorderlessWindowMask |
| 818 backing:NSBackingStoreBuffered | 818 backing:NSBackingStoreBuffered |
| 819 defer:NO]); | 819 defer:NO]); |
| 820 [[testFullscreenWindow_ contentView] setWantsLayer:YES]; | 820 [[testFullscreenWindow_ contentView] setWantsLayer:YES]; |
| 821 return testFullscreenWindow_.get(); | 821 return testFullscreenWindow_.get(); |
| 822 } | 822 } |
| 823 @end | 823 @end |
| 824 | 824 |
| 825 /* TODO(???): test other methods of BrowserWindowController */ | 825 /* TODO(???): test other methods of BrowserWindowController */ |
| OLD | NEW |