| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/ui/cocoa/browser_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/browser_window_controller.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 #include <numeric> | 8 #include <numeric> |
| 9 | 9 |
| 10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
| (...skipping 1968 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1979 | 1979 |
| 1980 return frame; | 1980 return frame; |
| 1981 } | 1981 } |
| 1982 | 1982 |
| 1983 - (void)sheetDidEnd:(NSWindow*)sheet | 1983 - (void)sheetDidEnd:(NSWindow*)sheet |
| 1984 returnCode:(NSInteger)code | 1984 returnCode:(NSInteger)code |
| 1985 context:(void*)context { | 1985 context:(void*)context { |
| 1986 [sheet orderOut:self]; | 1986 [sheet orderOut:self]; |
| 1987 } | 1987 } |
| 1988 | 1988 |
| 1989 - (void)updateBookmarkBarStateForInstantOverlay { | |
| 1990 [toolbarController_ setDividerOpacity:[self toolbarDividerOpacity]]; | |
| 1991 [self updateContentOffsets]; | |
| 1992 [self updateSubviewZOrder:[self inPresentationMode]]; | |
| 1993 [self updateInfoBarTipVisibility]; | |
| 1994 } | |
| 1995 | |
| 1996 - (void)onFindBarVisibilityChanged { | 1989 - (void)onFindBarVisibilityChanged { |
| 1997 [self updateAllowOverlappingViews:[self inPresentationMode]]; | 1990 [self updateAllowOverlappingViews:[self inPresentationMode]]; |
| 1998 } | 1991 } |
| 1999 | 1992 |
| 2000 - (void)onHistoryOverlayShown { | 1993 - (void)onHistoryOverlayShown { |
| 2001 ++historyOverlayCount_; | 1994 ++historyOverlayCount_; |
| 2002 [self updateAllowOverlappingViews:[self inPresentationMode]]; | 1995 [self updateAllowOverlappingViews:[self inPresentationMode]]; |
| 2003 } | 1996 } |
| 2004 | 1997 |
| 2005 - (void)onHistoryOverlayHidden { | 1998 - (void)onHistoryOverlayHidden { |
| (...skipping 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2261 | 2254 |
| 2262 - (BOOL)supportsBookmarkBar { | 2255 - (BOOL)supportsBookmarkBar { |
| 2263 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; | 2256 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; |
| 2264 } | 2257 } |
| 2265 | 2258 |
| 2266 - (BOOL)isTabbedWindow { | 2259 - (BOOL)isTabbedWindow { |
| 2267 return browser_->is_type_tabbed(); | 2260 return browser_->is_type_tabbed(); |
| 2268 } | 2261 } |
| 2269 | 2262 |
| 2270 @end // @implementation BrowserWindowController(WindowType) | 2263 @end // @implementation BrowserWindowController(WindowType) |
| OLD | NEW |