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

Side by Side Diff: chrome/browser/cocoa/tab_strip_controller_unittest.mm

Issue 1141005: Revert r42156, r42157, r42160. Allow dynamic switching in and out of sidetabs... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 <Cocoa/Cocoa.h> 5 #import <Cocoa/Cocoa.h>
6 6
7 #import "chrome/browser/browser_window.h" 7 #import "chrome/browser/browser_window.h"
8 #include "chrome/browser/cocoa/browser_test_helper.h" 8 #include "chrome/browser/cocoa/browser_test_helper.h"
9 #import "chrome/browser/cocoa/cocoa_test_helper.h" 9 #import "chrome/browser/cocoa/cocoa_test_helper.h"
10 #import "chrome/browser/cocoa/tab_strip_controller.h" 10 #import "chrome/browser/cocoa/tab_strip_controller.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual bool CanRestoreTab() { 56 virtual bool CanRestoreTab() {
57 return true; 57 return true;
58 } 58 }
59 virtual void RestoreTab() {} 59 virtual void RestoreTab() {}
60 60
61 virtual bool CanCloseContentsAt(int index) { return true; } 61 virtual bool CanCloseContentsAt(int index) { return true; }
62 62
63 virtual bool CanBookmarkAllTabs() const { return false; } 63 virtual bool CanBookmarkAllTabs() const { return false; }
64 64
65 virtual void BookmarkAllTabs() {} 65 virtual void BookmarkAllTabs() {}
66 virtual bool UseVerticalTabs() const { return false; }
67 virtual void ToggleUseVerticalTabs() {}
68 }; 66 };
69 67
70 class TabStripControllerTest : public CocoaTest { 68 class TabStripControllerTest : public CocoaTest {
71 public: 69 public:
72 TabStripControllerTest() { 70 TabStripControllerTest() {
73 Browser* browser = browser_helper_.browser(); 71 Browser* browser = browser_helper_.browser();
74 BrowserWindow* browser_window = browser_helper_.CreateBrowserWindow(); 72 BrowserWindow* browser_window = browser_helper_.CreateBrowserWindow();
75 NSWindow* window = browser_window->GetNativeHandle(); 73 NSWindow* window = browser_window->GetNativeHandle();
76 NSView* parent = [window contentView]; 74 NSView* parent = [window contentView];
77 NSRect content_frame = [parent frame]; 75 NSRect content_frame = [parent frame];
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 // TODO(pinkerton): Implement http://crbug.com/10899 138 // TODO(pinkerton): Implement http://crbug.com/10899
141 } 139 }
142 140
143 // Test that changing the number of tabs broadcasts a 141 // Test that changing the number of tabs broadcasts a
144 // kTabStripNumberOfTabsChanged notifiction. 142 // kTabStripNumberOfTabsChanged notifiction.
145 TEST_F(TabStripControllerTest, Notifications) { 143 TEST_F(TabStripControllerTest, Notifications) {
146 // TODO(pinkerton): Implement http://crbug.com/10899 144 // TODO(pinkerton): Implement http://crbug.com/10899
147 } 145 }
148 146
149 } // namespace 147 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/gtk/browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698