OLD | NEW |
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 #include "base/mac_util.h" | 5 #include "base/mac_util.h" |
6 #include "base/sys_string_conversions.h" | 6 #include "base/sys_string_conversions.h" |
7 #include "chrome/app/chrome_dll_resource.h" // IDC_* | 7 #include "chrome/app/chrome_dll_resource.h" // IDC_* |
8 #include "chrome/browser/browser.h" | 8 #include "chrome/browser/browser.h" |
9 #include "chrome/browser/browser_list.h" | 9 #include "chrome/browser/browser_list.h" |
10 #include "chrome/browser/tab_contents/tab_contents.h" | 10 #include "chrome/browser/tab_contents/tab_contents.h" |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 - (LocationBar*)locationBar { | 283 - (LocationBar*)locationBar { |
284 return [toolbarController_ locationBar]; | 284 return [toolbarController_ locationBar]; |
285 } | 285 } |
286 | 286 |
287 - (StatusBubble*)statusBubble { | 287 - (StatusBubble*)statusBubble { |
288 return statusBubble_.get(); | 288 return statusBubble_.get(); |
289 } | 289 } |
290 | 290 |
291 - (void)updateToolbarWithContents:(TabContents*)tab | 291 - (void)updateToolbarWithContents:(TabContents*)tab |
292 shouldRestoreState:(BOOL)shouldRestore { | 292 shouldRestoreState:(BOOL)shouldRestore { |
293 [toolbarController_ updateToolbarWithContents:shouldRestore ? tab : NULL]; | 293 [toolbarController_ updateToolbarWithContents:tab |
| 294 shouldRestoreState:shouldRestore]; |
294 } | 295 } |
295 | 296 |
296 - (void)setStarredState:(BOOL)isStarred { | 297 - (void)setStarredState:(BOOL)isStarred { |
297 [toolbarController_ setStarredState:isStarred]; | 298 [toolbarController_ setStarredState:isStarred]; |
298 } | 299 } |
299 | 300 |
300 // Return the rect, in WebKit coordinates (flipped), of the window's grow box | 301 // Return the rect, in WebKit coordinates (flipped), of the window's grow box |
301 // in the coordinate system of the content area of the currently selected tab. | 302 // in the coordinate system of the content area of the currently selected tab. |
302 // |windowGrowBox| needs to be in the window's coordinate system. | 303 // |windowGrowBox| needs to be in the window's coordinate system. |
303 - (NSRect)selectedTabGrowBoxRect { | 304 - (NSRect)selectedTabGrowBoxRect { |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 - (NSArray*)viewsToMoveToOverlay { | 593 - (NSArray*)viewsToMoveToOverlay { |
593 NSArray* views = [super viewsToMoveToOverlay]; | 594 NSArray* views = [super viewsToMoveToOverlay]; |
594 NSArray* browserViews = | 595 NSArray* browserViews = |
595 [NSArray arrayWithObjects:[toolbarController_ view], | 596 [NSArray arrayWithObjects:[toolbarController_ view], |
596 [bookmarkController_ view], | 597 [bookmarkController_ view], |
597 nil]; | 598 nil]; |
598 return [views arrayByAddingObjectsFromArray:browserViews]; | 599 return [views arrayByAddingObjectsFromArray:browserViews]; |
599 } | 600 } |
600 | 601 |
601 @end | 602 @end |
OLD | NEW |