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

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

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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
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_strip_controller.h" 5 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
6 6
7 #import <QuartzCore/QuartzCore.h> 7 #import <QuartzCore/QuartzCore.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 #include <limits> 10 #include <limits>
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 96
97 // The width and height for a tab's icon. 97 // The width and height for a tab's icon.
98 const CGFloat kIconWidthAndHeight = 16.0; 98 const CGFloat kIconWidthAndHeight = 16.0;
99 99
100 // The amount by which the new tab button is offset (from the tabs). 100 // The amount by which the new tab button is offset (from the tabs).
101 const CGFloat kNewTabButtonOffset = 8.0; 101 const CGFloat kNewTabButtonOffset = 8.0;
102 102
103 // Time (in seconds) in which tabs animate to their final position. 103 // Time (in seconds) in which tabs animate to their final position.
104 const NSTimeInterval kAnimationDuration = 0.125; 104 const NSTimeInterval kAnimationDuration = 0.125;
105 105
106 // The amount by which the profile menu button is offset (from tab tabs or new
107 // tab button).
108 const CGFloat kProfileMenuButtonOffset = 6.0;
109
110 // The width and height of the icon + glow for projecting mode. 106 // The width and height of the icon + glow for projecting mode.
111 const CGFloat kProjectingIconWidthAndHeight = 32.0; 107 const CGFloat kProjectingIconWidthAndHeight = 32.0;
112 108
113 // Helper class for doing NSAnimationContext calls that takes a bool to disable 109 // Helper class for doing NSAnimationContext calls that takes a bool to disable
114 // all the work. Useful for code that wants to conditionally animate. 110 // all the work. Useful for code that wants to conditionally animate.
115 class ScopedNSAnimationContextGroup { 111 class ScopedNSAnimationContextGroup {
116 public: 112 public:
117 explicit ScopedNSAnimationContextGroup(bool animate) 113 explicit ScopedNSAnimationContextGroup(bool animate)
118 : animate_(animate) { 114 : animate_(animate) {
119 if (animate_) { 115 if (animate_) {
(...skipping 2180 matching lines...) Expand 10 before | Expand all | Expand 10 after
2300 NSView* GetSheetParentViewForWebContents(WebContents* web_contents) { 2296 NSView* GetSheetParentViewForWebContents(WebContents* web_contents) {
2301 // View hierarchy of the contents view: 2297 // View hierarchy of the contents view:
2302 // NSView -- switchView, same for all tabs 2298 // NSView -- switchView, same for all tabs
2303 // +- NSView -- TabContentsController's view 2299 // +- NSView -- TabContentsController's view
2304 // +- TabContentsViewCocoa 2300 // +- TabContentsViewCocoa
2305 // 2301 //
2306 // Changing it? Do not forget to modify 2302 // Changing it? Do not forget to modify
2307 // -[TabStripController swapInTabAtIndex:] too. 2303 // -[TabStripController swapInTabAtIndex:] too.
2308 return [web_contents->GetView()->GetNativeView() superview]; 2304 return [web_contents->GetView()->GetNativeView() superview];
2309 } 2305 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698