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

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

Issue 3129003: remove toolstrips (Closed)
Patch Set: merge Created 10 years, 4 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #include "chrome/browser/cocoa/browser_window_cocoa.h" 5 #include "chrome/browser/cocoa/browser_window_cocoa.h"
6 6
7 #include "app/l10n_util_mac.h" 7 #include "app/l10n_util_mac.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 } 134 }
135 135
136 void BrowserWindowCocoa::SelectedTabToolbarSizeChanged(bool is_animating) { 136 void BrowserWindowCocoa::SelectedTabToolbarSizeChanged(bool is_animating) {
137 // According to beng, this is an ugly method that comes from the days when the 137 // According to beng, this is an ugly method that comes from the days when the
138 // download shelf was a ChromeView attached to the TabContents, and as its 138 // download shelf was a ChromeView attached to the TabContents, and as its
139 // size changed via animation it notified through TCD/etc to the browser view 139 // size changed via animation it notified through TCD/etc to the browser view
140 // to relayout for each tick of the animation. We don't need anything of the 140 // to relayout for each tick of the animation. We don't need anything of the
141 // sort on Mac. 141 // sort on Mac.
142 } 142 }
143 143
144 void BrowserWindowCocoa::SelectedTabExtensionShelfSizeChanged() {
145 NOTIMPLEMENTED();
146 }
147
148 void BrowserWindowCocoa::UpdateTitleBar() { 144 void BrowserWindowCocoa::UpdateTitleBar() {
149 NSString* newTitle = 145 NSString* newTitle =
150 base::SysUTF16ToNSString(browser_->GetWindowTitleForCurrentTab()); 146 base::SysUTF16ToNSString(browser_->GetWindowTitleForCurrentTab());
151 147
152 [window() setTitle:newTitle]; 148 [window() setTitle:newTitle];
153 } 149 }
154 150
155 void BrowserWindowCocoa::ShelfVisibilityChanged() { 151 void BrowserWindowCocoa::ShelfVisibilityChanged() {
156 // Mac doesn't yet support showing the bookmark bar at a different size on 152 // Mac doesn't yet support showing the bookmark bar at a different size on
157 // the new tab page. When it does, this method should attempt to relayout the 153 // the new tab page. When it does, this method should attempt to relayout the
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 } 265 }
270 266
271 // This is called from Browser, which in turn is called directly from 267 // This is called from Browser, which in turn is called directly from
272 // a menu option. All we do here is set a preference. The act of 268 // a menu option. All we do here is set a preference. The act of
273 // setting the preference sends notifications to all windows who then 269 // setting the preference sends notifications to all windows who then
274 // know what to do. 270 // know what to do.
275 void BrowserWindowCocoa::ToggleBookmarkBar() { 271 void BrowserWindowCocoa::ToggleBookmarkBar() {
276 bookmark_utils::ToggleWhenVisible(browser_->profile()); 272 bookmark_utils::ToggleWhenVisible(browser_->profile());
277 } 273 }
278 274
279 void BrowserWindowCocoa::ToggleExtensionShelf() {
280 NOTIMPLEMENTED();
281 }
282
283 void BrowserWindowCocoa::AddFindBar( 275 void BrowserWindowCocoa::AddFindBar(
284 FindBarCocoaController* find_bar_cocoa_controller) { 276 FindBarCocoaController* find_bar_cocoa_controller) {
285 return [controller_ addFindBar:find_bar_cocoa_controller]; 277 return [controller_ addFindBar:find_bar_cocoa_controller];
286 } 278 }
287 279
288 views::Window* BrowserWindowCocoa::ShowAboutChromeDialog() { 280 views::Window* BrowserWindowCocoa::ShowAboutChromeDialog() {
289 NOTIMPLEMENTED(); 281 NOTIMPLEMENTED();
290 return NULL; 282 return NULL;
291 } 283 }
292 284
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 void BrowserWindowCocoa::DestroyBrowser() { 572 void BrowserWindowCocoa::DestroyBrowser() {
581 [controller_ destroyBrowser]; 573 [controller_ destroyBrowser];
582 574
583 // at this point the controller is dead (autoreleased), so 575 // at this point the controller is dead (autoreleased), so
584 // make sure we don't try to reference it any more. 576 // make sure we don't try to reference it any more.
585 } 577 }
586 578
587 NSWindow* BrowserWindowCocoa::window() const { 579 NSWindow* BrowserWindowCocoa::window() const {
588 return [controller_ window]; 580 return [controller_ window];
589 } 581 }
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_cocoa.h ('k') | chrome/browser/cocoa/view_id_util_browsertest.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698