Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(358)

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_window_controller.mm

Issue 2802143002: [Mac] Fix for the tab detach position (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_window_controller.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/tabs/tab_window_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698