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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller_unittest.mm

Issue 1152613003: Implement sidebar support for extension action popups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move SidebarManager to ExtensionSystem and remove notifications Created 5 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
OLDNEW
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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 51
52 - (NSView*)bookmarkView { 52 - (NSView*)bookmarkView {
53 return [bookmarkBarController_ view]; 53 return [bookmarkBarController_ view];
54 } 54 }
55 55
56 - (NSView*)findBarView { 56 - (NSView*)findBarView {
57 return [findBarCocoaController_ view]; 57 return [findBarCocoaController_ view];
58 } 58 }
59 59
60 - (NSView*)sidebarView {
61 return [sidebarController_ view];
62 }
63
60 - (BOOL)bookmarkBarVisible { 64 - (BOOL)bookmarkBarVisible {
61 return [bookmarkBarController_ isVisible]; 65 return [bookmarkBarController_ isVisible];
62 } 66 }
63 @end 67 @end
64 68
65 class BrowserWindowControllerTest : public CocoaProfileTest { 69 class BrowserWindowControllerTest : public CocoaProfileTest {
66 public: 70 public:
67 void SetUp() override { 71 void SetUp() override {
68 CocoaProfileTest::SetUp(); 72 CocoaProfileTest::SetUp();
69 ASSERT_TRUE(browser()); 73 ASSERT_TRUE(browser());
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
797 [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,400,400) 801 [[NSWindow alloc] initWithContentRect:NSMakeRect(0,0,400,400)
798 styleMask:NSBorderlessWindowMask 802 styleMask:NSBorderlessWindowMask
799 backing:NSBackingStoreBuffered 803 backing:NSBackingStoreBuffered
800 defer:NO]); 804 defer:NO]);
801 [[testFullscreenWindow_ contentView] setWantsLayer:YES]; 805 [[testFullscreenWindow_ contentView] setWantsLayer:YES];
802 return testFullscreenWindow_.get(); 806 return testFullscreenWindow_.get();
803 } 807 }
804 @end 808 @end
805 809
806 /* TODO(???): test other methods of BrowserWindowController */ 810 /* TODO(???): test other methods of BrowserWindowController */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698