| 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 "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
| 8 #import "base/mac/scoped_nsobject.h" | 8 #import "base/mac/scoped_nsobject.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 53 } | 53 } |
| 54 | 54 |
| 55 - (NSView*)bookmarkView { | 55 - (NSView*)bookmarkView { |
| 56 return [bookmarkBarController_ view]; | 56 return [bookmarkBarController_ view]; |
| 57 } | 57 } |
| 58 | 58 |
| 59 - (NSView*)findBarView { | 59 - (NSView*)findBarView { |
| 60 return [findBarCocoaController_ view]; | 60 return [findBarCocoaController_ view]; |
| 61 } | 61 } |
| 62 | 62 |
| 63 - (NSView*)sidebarView { |
| 64 return [sidebarController_ view]; |
| 65 } |
| 66 |
| 63 - (BOOL)bookmarkBarVisible { | 67 - (BOOL)bookmarkBarVisible { |
| 64 return [bookmarkBarController_ isVisible]; | 68 return [bookmarkBarController_ isVisible]; |
| 65 } | 69 } |
| 66 @end | 70 @end |
| 67 | 71 |
| 68 class BrowserWindowControllerTest : public CocoaProfileTest { | 72 class BrowserWindowControllerTest : public CocoaProfileTest { |
| 69 public: | 73 public: |
| 70 void SetUp() override { | 74 void SetUp() override { |
| 71 CocoaProfileTest::SetUp(); | 75 CocoaProfileTest::SetUp(); |
| 72 ASSERT_TRUE(browser()); | 76 ASSERT_TRUE(browser()); |
| (...skipping 748 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 821 [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,400,400) | 825 [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,400,400) |
| 822 styleMask:NSBorderlessWindowMask | 826 styleMask:NSBorderlessWindowMask |
| 823 backing:NSBackingStoreBuffered | 827 backing:NSBackingStoreBuffered |
| 824 defer:NO]); | 828 defer:NO]); |
| 825 [[testFullscreenWindow_ contentView] setWantsLayer:YES]; | 829 [[testFullscreenWindow_ contentView] setWantsLayer:YES]; |
| 826 return testFullscreenWindow_.get(); | 830 return testFullscreenWindow_.get(); |
| 827 } | 831 } |
| 828 @end | 832 @end |
| 829 | 833 |
| 830 /* TODO(???): test other methods of BrowserWindowController */ | 834 /* TODO(???): test other methods of BrowserWindowController */ |
| OLD | NEW |