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

Side by Side Diff: chrome/browser/cocoa/tab_strip_controller.mm

Issue 2833014: Add a 1px white bezel under the dark line separating the tab strip and the to... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_strip_view.mm » ('j') | chrome/browser/cocoa/tab_view.mm » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/cocoa/tab_strip_controller.h" 5 #import "chrome/browser/cocoa/tab_strip_controller.h"
6 6
7 #import <QuartzCore/QuartzCore.h> 7 #import <QuartzCore/QuartzCore.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <string> 10 #include <string>
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // we're gone. 373 // we're gone.
374 for (TabController* controller in closingControllers_.get()) { 374 for (TabController* controller in closingControllers_.get()) {
375 NSView* view = [controller view]; 375 NSView* view = [controller view];
376 [[[view animationForKey:@"frameOrigin"] delegate] invalidate]; 376 [[[view animationForKey:@"frameOrigin"] delegate] invalidate];
377 } 377 }
378 [[NSNotificationCenter defaultCenter] removeObserver:self]; 378 [[NSNotificationCenter defaultCenter] removeObserver:self];
379 [super dealloc]; 379 [super dealloc];
380 } 380 }
381 381
382 + (CGFloat)defaultTabHeight { 382 + (CGFloat)defaultTabHeight {
383 return 24.0; 383 return 25.0;
384 } 384 }
385 385
386 + (CGFloat)defaultIndentForControls { 386 + (CGFloat)defaultIndentForControls {
387 // Default indentation leaves enough room so tabs don't overlap with the 387 // Default indentation leaves enough room so tabs don't overlap with the
388 // window controls. 388 // window controls.
389 return 64.0; 389 return 64.0;
390 } 390 }
391 391
392 // Finds the TabContentsController associated with the given index into the tab 392 // Finds the TabContentsController associated with the given index into the tab
393 // model and swaps out the sole child of the contentArea to display its 393 // model and swaps out the sole child of the contentArea to display its
(...skipping 1346 matching lines...) Expand 10 before | Expand all | Expand 10 after
1740 return; 1740 return;
1741 1741
1742 TabContentsController* tabController = 1742 TabContentsController* tabController =
1743 [tabContentsArray_ objectAtIndex:index]; 1743 [tabContentsArray_ objectAtIndex:index];
1744 TabContents* devtoolsContents = contents ? 1744 TabContents* devtoolsContents = contents ?
1745 DevToolsWindow::GetDevToolsContents(contents) : NULL; 1745 DevToolsWindow::GetDevToolsContents(contents) : NULL;
1746 [tabController showDevToolsContents:devtoolsContents]; 1746 [tabController showDevToolsContents:devtoolsContents];
1747 } 1747 }
1748 1748
1749 @end 1749 @end
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/cocoa/tab_strip_view.mm » ('j') | chrome/browser/cocoa/tab_view.mm » ('J')

Powered by Google App Engine
This is Rietveld 408576698