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

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

Issue 636283004: To ensure that the location bar will not reach the minimum width. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Make naming consistent. Created 6 years, 1 month 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 | « no previous file | chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm » ('j') | 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) 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_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ 6 #define CHROME_BROWSER_UI_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.
11 extern NSString* const kBrowserActionGrippyDragStartedNotification; 11 extern NSString* const kBrowserActionGrippyDragStartedNotification;
12 12
13 // Sent when a user-initiated drag is resizing the container. 13 // Sent when a user-initiated drag is resizing the container.
14 extern NSString* const kBrowserActionGrippyDraggingNotification; 14 extern NSString* const kBrowserActionGrippyDraggingNotification;
15 15
16 // Sent when a user-initiated drag to resize the container has finished. 16 // Sent when a user-initiated drag to resize the container has finished.
17 extern NSString* const kBrowserActionGrippyDragFinishedNotification; 17 extern NSString* const kBrowserActionGrippyDragFinishedNotification;
18 18
19 // Sent before the dragging will resize the container.
20 extern NSString* const kBrowserActionGrippyWillDragNotification;
21
22 // Key which is used to notify the translation with delta.
23 extern NSString* const kTranslationWithDelta;
24
19 // The view that encompasses the Browser Action buttons in the toolbar and 25 // The view that encompasses the Browser Action buttons in the toolbar and
20 // provides mechanisms for resizing. 26 // provides mechanisms for resizing.
21 @interface BrowserActionsContainerView : NSView { 27 @interface BrowserActionsContainerView : NSView {
22 @private 28 @private
23 // The frame encompasing the grippy used for resizing the container. 29 // The frame encompasing the grippy used for resizing the container.
24 NSRect grippyRect_; 30 NSRect grippyRect_;
25 31
26 // The end frame of the animation currently running for this container or 32 // The end frame of the animation currently running for this container or
27 // NSZeroRect if none is in progress. 33 // NSZeroRect if none is in progress.
28 NSRect animationEndFrame_; 34 NSRect animationEndFrame_;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 @property(nonatomic) BOOL canDragLeft; 80 @property(nonatomic) BOOL canDragLeft;
75 @property(nonatomic) BOOL canDragRight; 81 @property(nonatomic) BOOL canDragRight;
76 @property(nonatomic) BOOL grippyPinned; 82 @property(nonatomic) BOOL grippyPinned;
77 @property(nonatomic,getter=isResizable) BOOL resizable; 83 @property(nonatomic,getter=isResizable) BOOL resizable;
78 @property(nonatomic) CGFloat maxWidth; 84 @property(nonatomic) CGFloat maxWidth;
79 @property(readonly, nonatomic) BOOL userIsResizing; 85 @property(readonly, nonatomic) BOOL userIsResizing;
80 86
81 @end 87 @end
82 88
83 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_ 89 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTAINER_VIEW_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/extensions/browser_actions_container_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698