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

Side by Side Diff: chrome/browser/cocoa/extensions/browser_actions_container_view.h

Issue 2863013: [Mac] UI changes for the Browser Actions toolbar container.... (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
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 #ifndef CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ 5 #ifndef CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_
6 #define CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ 6 #define CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 // Sent when a user-initiated drag to resize the container is initiated. 10 // Sent when a user-initiated drag to resize the container is initiated.
(...skipping 19 matching lines...) Expand all
30 // Used to cache the original position within the container that initiated the 30 // Used to cache the original position within the container that initiated the
31 // drag. 31 // drag.
32 NSPoint initialDragPoint_; 32 NSPoint initialDragPoint_;
33 33
34 // Used to cache the previous x-pos of the frame rect for resizing purposes. 34 // Used to cache the previous x-pos of the frame rect for resizing purposes.
35 CGFloat lastXPos_; 35 CGFloat lastXPos_;
36 36
37 // The maximum width of the container. 37 // The maximum width of the container.
38 CGFloat maxWidth_; 38 CGFloat maxWidth_;
39 39
40 // Whether there is a border to the right of the last Browser Action.
41 BOOL rightBorderShown_;
42
43 // Whether the container is currently being resized by the user. 40 // Whether the container is currently being resized by the user.
44 BOOL userIsResizing_; 41 BOOL userIsResizing_;
45 42
46 // Whether the user can resize this at all. Resizing is disabled in incognito 43 // Whether the user can resize this at all. Resizing is disabled in incognito
47 // mode since any changes done in incognito mode are not saved anyway, and 44 // mode since any changes done in incognito mode are not saved anyway, and
48 // also to avoid a crash. http://crbug.com/42848 45 // also to avoid a crash. http://crbug.com/42848
49 BOOL resizable_; 46 BOOL resizable_;
50 47
51 // Whether the user is allowed to drag the grippy to the left. NO if all 48 // Whether the user is allowed to drag the grippy to the left. NO if all
52 // extensions are shown or the location bar has hit its minimum width (handled 49 // extensions are shown or the location bar has hit its minimum width (handled
(...skipping 20 matching lines...) Expand all
73 // placement of surrounding elements. 70 // placement of surrounding elements.
74 - (CGFloat)resizeDeltaX; 71 - (CGFloat)resizeDeltaX;
75 72
76 @property(nonatomic, readonly) NSRect animationEndFrame; 73 @property(nonatomic, readonly) NSRect animationEndFrame;
77 @property(nonatomic) BOOL canDragLeft; 74 @property(nonatomic) BOOL canDragLeft;
78 @property(nonatomic) BOOL canDragRight; 75 @property(nonatomic) BOOL canDragRight;
79 @property(nonatomic) BOOL grippyPinned; 76 @property(nonatomic) BOOL grippyPinned;
80 @property(nonatomic,getter=isResizable) BOOL resizable; 77 @property(nonatomic,getter=isResizable) BOOL resizable;
81 @property(nonatomic) CGFloat maxWidth; 78 @property(nonatomic) CGFloat maxWidth;
82 @property(readonly, nonatomic) BOOL userIsResizing; 79 @property(readonly, nonatomic) BOOL userIsResizing;
83 @property(nonatomic) BOOL rightBorderShown;
84 80
85 @end 81 @end
86 82
87 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ 83 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_
OLDNEW
« no previous file with comments | « chrome/app/nibs/Toolbar.xib ('k') | chrome/browser/cocoa/extensions/browser_actions_container_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698