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

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

Issue 6913026: Compact Navigation prototype (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Clang build fix. After commit/revert. Created 9 years, 7 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include <vector> 7 #include <vector>
8 8
9 #import "chrome/browser/ui/browser_window.h" 9 #import "chrome/browser/ui/browser_window.h"
10 #include "chrome/browser/ui/cocoa/browser_test_helper.h" 10 #include "chrome/browser/ui/cocoa/browser_test_helper.h"
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 virtual bool CanBookmarkAllTabs() const { return false; } 85 virtual bool CanBookmarkAllTabs() const { return false; }
86 86
87 virtual bool CanCloseTab() const { return true; } 87 virtual bool CanCloseTab() const { return true; }
88 88
89 virtual void BookmarkAllTabs() {} 89 virtual void BookmarkAllTabs() {}
90 90
91 virtual bool UseVerticalTabs() const { return false; } 91 virtual bool UseVerticalTabs() const { return false; }
92 92
93 virtual void ToggleUseVerticalTabs() {} 93 virtual void ToggleUseVerticalTabs() {}
94 94
95 virtual bool UseCompactNavigationBar() const { return false; }
96
97 virtual void ToggleUseCompactNavigationBar() {}
98
95 virtual bool LargeIconsPermitted() const { return true; } 99 virtual bool LargeIconsPermitted() const { return true; }
96 }; 100 };
97 101
98 class TabStripControllerTest : public CocoaTest { 102 class TabStripControllerTest : public CocoaTest {
99 public: 103 public:
100 TabStripControllerTest() { 104 TabStripControllerTest() {
101 Browser* browser = browser_helper_.browser(); 105 Browser* browser = browser_helper_.browser();
102 BrowserWindow* browser_window = browser_helper_.CreateBrowserWindow(); 106 BrowserWindow* browser_window = browser_helper_.CreateBrowserWindow();
103 NSWindow* window = browser_window->GetNativeHandle(); 107 NSWindow* window = browser_window->GetNativeHandle();
104 NSView* parent = [window contentView]; 108 NSView* parent = [window contentView];
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 // TODO(pinkerton): Implement http://crbug.com/10899 175 // TODO(pinkerton): Implement http://crbug.com/10899
172 } 176 }
173 177
174 // Test that changing the number of tabs broadcasts a 178 // Test that changing the number of tabs broadcasts a
175 // kTabStripNumberOfTabsChanged notifiction. 179 // kTabStripNumberOfTabsChanged notifiction.
176 TEST_F(TabStripControllerTest, Notifications) { 180 TEST_F(TabStripControllerTest, Notifications) {
177 // TODO(pinkerton): Implement http://crbug.com/10899 181 // TODO(pinkerton): Implement http://crbug.com/10899
178 } 182 }
179 183
180 } // namespace 184 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.h ('k') | chrome/browser/ui/cocoa/view_id_util_browsertest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698