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

Unified Diff: chrome/browser/autocomplete/autocomplete_popup_view_mac.h

Issue 2010002: [Mac] Fixes janky animations in the omnibox popup.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 7 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/autocomplete/autocomplete_popup_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_popup_view_mac.h
===================================================================
--- chrome/browser/autocomplete/autocomplete_popup_view_mac.h (revision 46538)
+++ chrome/browser/autocomplete/autocomplete_popup_view_mac.h (working copy)
@@ -106,12 +106,18 @@
// Create the popup_ instance if needed.
void CreatePopupIfNeeded();
+ // Sets the popup frame, animating to the new frame if the popup is shrinking,
+ // setting the frame immediately otherwise. Does nothing if the popup is
+ // already animating to the given frame.
+ void SetPopupFrame(const NSRect frame);
+
scoped_ptr<AutocompletePopupModel> model_;
AutocompleteEditViewMac* edit_view_;
NSTextField* field_; // owned by tab controller
// Child window containing a matrix which implements the popup.
scoped_nsobject<NSWindow> popup_;
+ NSRect targetPopupFrame_;
DISALLOW_COPY_AND_ASSIGN(AutocompletePopupViewMac);
};
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_popup_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698