| 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 #import "chrome/browser/browser.h" | 5 #import "chrome/browser/browser.h" |
| 6 #import "chrome/browser/browser_window_cocoa.h" | 6 #import "chrome/browser/browser_window_cocoa.h" |
| 7 #import "chrome/browser/browser_window_controller.h" | 7 #import "chrome/browser/browser_window_controller.h" |
| 8 #import "chrome/browser/cocoa/tab_strip_view.h" | 8 #import "chrome/browser/cocoa/tab_strip_view.h" |
| 9 #import "chrome/browser/cocoa/tab_strip_controller.h" | 9 #import "chrome/browser/cocoa/tab_strip_controller.h" |
| 10 | 10 |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 - (void)updateToolbarWithContents:(TabContents*)tab | 138 - (void)updateToolbarWithContents:(TabContents*)tab |
| 139 shouldRestoreState:(BOOL)shouldRestore { | 139 shouldRestoreState:(BOOL)shouldRestore { |
| 140 [tabStripController_ updateToolbarWithContents:tab | 140 [tabStripController_ updateToolbarWithContents:tab |
| 141 shouldRestoreState:shouldRestore]; | 141 shouldRestoreState:shouldRestore]; |
| 142 } | 142 } |
| 143 | 143 |
| 144 - (void)setStarredState:(BOOL)isStarred { | 144 - (void)setStarredState:(BOOL)isStarred { |
| 145 [tabStripController_ setStarredState:isStarred]; | 145 [tabStripController_ setStarredState:isStarred]; |
| 146 } | 146 } |
| 147 | 147 |
| 148 // Return the rect, in WebKit coordinates (flipped), of the window's grow box |
| 149 // in the coordinate system of the content area of the currently selected tab. |
| 150 // |windowGrowBox| needs to be in the window's coordinate system. |
| 151 - (NSRect)selectedTabGrowBoxFromWindowGrowBox:(NSRect)windowGrowBox { |
| 152 return [tabStripController_ |
| 153 selectedTabGrowBoxFromWindowGrowBox:windowGrowBox]; |
| 154 } |
| 155 |
| 148 @end | 156 @end |
| OLD | NEW |