| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/tabs/tab_window_controller.h" | 5 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #import "base/mac/sdk_forward_declarations.h" | 8 #import "base/mac/sdk_forward_declarations.h" |
| 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" | 9 #import "chrome/browser/ui/cocoa/browser_window_layout.h" |
| 10 #import "chrome/browser/ui/cocoa/fast_resize_view.h" | 10 #import "chrome/browser/ui/cocoa/fast_resize_view.h" |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 NOTIMPLEMENTED(); | 346 NOTIMPLEMENTED(); |
| 347 return NO; | 347 return NO; |
| 348 } | 348 } |
| 349 | 349 |
| 350 - (CGFloat)menubarOffset { | 350 - (CGFloat)menubarOffset { |
| 351 // Subclasses should implement this. | 351 // Subclasses should implement this. |
| 352 NOTIMPLEMENTED(); | 352 NOTIMPLEMENTED(); |
| 353 return 0; | 353 return 0; |
| 354 } | 354 } |
| 355 | 355 |
| 356 - (CGFloat)menubarHeight { |
| 357 // The height of the menubar. We can't use |-[NSMenu menuBarHeight]| since it |
| 358 // returns 0 when the menu bar is hidden. |
| 359 const CGFloat kMenubarHeight = 22; |
| 360 return kMenubarHeight; |
| 361 } |
| 362 |
| 356 - (NSView*)avatarView { | 363 - (NSView*)avatarView { |
| 357 return nil; | 364 return nil; |
| 358 } | 365 } |
| 359 | 366 |
| 360 - (NSString*)activeTabTitle { | 367 - (NSString*)activeTabTitle { |
| 361 // subclass must implement | 368 // subclass must implement |
| 362 NOTIMPLEMENTED(); | 369 NOTIMPLEMENTED(); |
| 363 return @""; | 370 return @""; |
| 364 } | 371 } |
| 365 | 372 |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 447 | 454 |
| 448 - (void)windowWillEnterFullScreenNotification:(NSNotification*)notification { | 455 - (void)windowWillEnterFullScreenNotification:(NSNotification*)notification { |
| 449 [[visualEffectView_ animator] setAlphaValue:0.0]; | 456 [[visualEffectView_ animator] setAlphaValue:0.0]; |
| 450 } | 457 } |
| 451 | 458 |
| 452 - (void)windowWillExitFullScreenNotification:(NSNotification*)notification { | 459 - (void)windowWillExitFullScreenNotification:(NSNotification*)notification { |
| 453 [[visualEffectView_ animator] setAlphaValue:1.0]; | 460 [[visualEffectView_ animator] setAlphaValue:1.0]; |
| 454 } | 461 } |
| 455 | 462 |
| 456 @end | 463 @end |
| OLD | NEW |