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

Unified Diff: chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h

Issue 1061623002: [Toolbar Mac UI] Simplify and correct omnibox pinning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h
diff --git a/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h b/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h
index d75d2f6e3e19b042a77a0cb6bdec2b2d9c0430c2..09ef7eef5d6ed2ff64c6dd4a6790a5d72be72d4e 100644
--- a/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h
+++ b/chrome/browser/ui/cocoa/extensions/browser_actions_container_view.h
@@ -46,9 +46,6 @@ class BrowserActionsContainerViewSizeDelegate {
// drag.
NSPoint initialDragPoint_;
- // Used to cache the previous x-pos of the frame rect for resizing purposes.
- CGFloat lastXPos_;
-
// The maximum width the container could want; i.e., the width required to
// display all the icons.
CGFloat maxDesiredWidth_;
@@ -89,15 +86,9 @@ class BrowserActionsContainerViewSizeDelegate {
// Sets whether or not tracking (for mouseEntered events) is enabled.
- (void)setTrackingEnabled:(BOOL)enabled;
-// Resizes the container to the given ideal width, adjusting the |lastXPos_| so
-// that |resizeDeltaX| is accurate.
+// Resizes the container to the given ideal width, optionally animating.
- (void)resizeToWidth:(CGFloat)width animate:(BOOL)animate;
-// Returns the change in the x-pos of the frame rect during resizing. Meant to
-// be queried when a NSViewFrameDidChangeNotification is fired to determine
-// placement of surrounding elements.
-- (CGFloat)resizeDeltaX;
-
// Returns the frame of the container after the running animation has finished.
// If no animation is running, returns the container's current frame.
- (NSRect)animationEndFrame;
« 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