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 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 return 0; | 371 return 0; |
372 } | 372 } |
373 | 373 |
374 - (CGFloat)menubarHeight { | 374 - (CGFloat)menubarHeight { |
375 // The height of the menubar. We can't use |-[NSMenu menuBarHeight]| since it | 375 // The height of the menubar. We can't use |-[NSMenu menuBarHeight]| since it |
376 // returns 0 when the menu bar is hidden. | 376 // returns 0 when the menu bar is hidden. |
377 const CGFloat kMenubarHeight = 22; | 377 const CGFloat kMenubarHeight = 22; |
378 return kMenubarHeight; | 378 return kMenubarHeight; |
379 } | 379 } |
380 | 380 |
| 381 - (BOOL)isInAnyFullscreenMode { |
| 382 // Subclass must implement. |
| 383 NOTIMPLEMENTED(); |
| 384 return NO; |
| 385 } |
| 386 |
381 - (NSView*)avatarView { | 387 - (NSView*)avatarView { |
382 return nil; | 388 return nil; |
383 } | 389 } |
384 | 390 |
385 - (NSString*)activeTabTitle { | 391 - (NSString*)activeTabTitle { |
386 // subclass must implement | 392 // subclass must implement |
387 NOTIMPLEMENTED(); | 393 NOTIMPLEMENTED(); |
388 return @""; | 394 return @""; |
389 } | 395 } |
390 | 396 |
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
472 | 478 |
473 - (void)windowWillEnterFullScreenNotification:(NSNotification*)notification { | 479 - (void)windowWillEnterFullScreenNotification:(NSNotification*)notification { |
474 [[visualEffectView_ animator] setAlphaValue:0.0]; | 480 [[visualEffectView_ animator] setAlphaValue:0.0]; |
475 } | 481 } |
476 | 482 |
477 - (void)windowWillExitFullScreenNotification:(NSNotification*)notification { | 483 - (void)windowWillExitFullScreenNotification:(NSNotification*)notification { |
478 [[visualEffectView_ animator] setAlphaValue:1.0]; | 484 [[visualEffectView_ animator] setAlphaValue:1.0]; |
479 } | 485 } |
480 | 486 |
481 @end | 487 @end |
OLD | NEW |