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

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

Issue 3228003: Sidebar view, implementation for Mac. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 10 years, 3 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) 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 #import "chrome/browser/cocoa/browser_window_controller.h" 5 #import "chrome/browser/cocoa/browser_window_controller.h"
6 6
7 #include <Carbon/Carbon.h> 7 #include <Carbon/Carbon.h>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/l10n_util_mac.h" 10 #include "app/l10n_util_mac.h"
(...skipping 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 } 392 }
393 393
394 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window { 394 - (void)removeConstrainedWindow:(ConstrainedWindowMac*)window {
395 [tabStripController_ removeConstrainedWindow:window]; 395 [tabStripController_ removeConstrainedWindow:window];
396 } 396 }
397 397
398 - (void)updateDevToolsForContents:(TabContents*)contents { 398 - (void)updateDevToolsForContents:(TabContents*)contents {
399 [tabStripController_ updateDevToolsForContents:contents]; 399 [tabStripController_ updateDevToolsForContents:contents];
400 } 400 }
401 401
402 - (void)updateSidebarForContents:(TabContents*)contents {
403 [tabStripController_ updateSidebarForContents:contents];
404 }
405
402 // Called when the user wants to close a window or from the shutdown process. 406 // Called when the user wants to close a window or from the shutdown process.
403 // The Browser object is in control of whether or not we're allowed to close. It 407 // The Browser object is in control of whether or not we're allowed to close. It
404 // may defer closing due to several states, such as onUnload handlers needing to 408 // may defer closing due to several states, such as onUnload handlers needing to
405 // be fired. If closing is deferred, the Browser will handle the processing 409 // be fired. If closing is deferred, the Browser will handle the processing
406 // required to get us to the closing state and (by watching for all the tabs 410 // required to get us to the closing state and (by watching for all the tabs
407 // going away) will again call to close the window when it's finally ready. 411 // going away) will again call to close the window when it's finally ready.
408 - (BOOL)windowShouldClose:(id)sender { 412 - (BOOL)windowShouldClose:(id)sender {
409 // Disable updates while closing all tabs to avoid flickering. 413 // Disable updates while closing all tabs to avoid flickering.
410 base::ScopedNSDisableScreenUpdates disabler; 414 base::ScopedNSDisableScreenUpdates disabler;
411 // Give beforeunload handlers the chance to cancel the close before we hide 415 // Give beforeunload handlers the chance to cancel the close before we hide
(...skipping 1474 matching lines...) Expand 10 before | Expand all | Expand 10 after
1886 1890
1887 - (BOOL)supportsBookmarkBar { 1891 - (BOOL)supportsBookmarkBar {
1888 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; 1892 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR];
1889 } 1893 }
1890 1894
1891 - (BOOL)isNormalWindow { 1895 - (BOOL)isNormalWindow {
1892 return browser_->type() == Browser::TYPE_NORMAL; 1896 return browser_->type() == Browser::TYPE_NORMAL;
1893 } 1897 }
1894 1898
1895 @end // @implementation BrowserWindowController(WindowType) 1899 @end // @implementation BrowserWindowController(WindowType)
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/browser_window_controller.h ('k') | chrome/browser/cocoa/tab_contents_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698