| Index: chrome/browser/ui/views/location_bar/location_bar_view.h
|
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.h b/chrome/browser/ui/views/location_bar/location_bar_view.h
|
| index 68cf65b658092ab6f8003274a12d6bb5ffff8948..636818b619dd1ecf7fcdc2fc98d813b038b1b4e7 100644
|
| --- a/chrome/browser/ui/views/location_bar/location_bar_view.h
|
| +++ b/chrome/browser/ui/views/location_bar/location_bar_view.h
|
| @@ -78,6 +78,9 @@ class LocationBarView : public LocationBar,
|
| // The location bar view's class name.
|
| static const char kViewClassName[];
|
|
|
| + // Returns the offset used during dropdown animation.
|
| + int dropdown_animation_offset() const { return dropdown_animation_offset_; }
|
| +
|
| class Delegate {
|
| public:
|
| // Should return the current web contents.
|
| @@ -385,6 +388,7 @@ class LocationBarView : public LocationBar,
|
|
|
| // DropdownBarHostDelegate:
|
| void SetFocusAndSelection(bool select_all) override;
|
| + void SetAnimationOffset(int offset) override;
|
|
|
| // TemplateURLServiceObserver:
|
| void OnTemplateURLServiceChanged() override;
|
| @@ -470,6 +474,12 @@ class LocationBarView : public LocationBar,
|
| // Tracks this preference to determine whether bookmark editing is allowed.
|
| BooleanPrefMember edit_bookmarks_enabled_;
|
|
|
| + // During dropdown animation, the host clips the widget and draws only the
|
| + // bottom part of it. The view needs to know the pixel offset at which we are
|
| + // drawing the widget so that we can draw the curved edges that attach to the
|
| + // toolbar in the right location.
|
| + int dropdown_animation_offset_;
|
| +
|
| // This is a debug state variable that stores if the WebContents was null
|
| // during the last RefreshPageAction.
|
| bool web_contents_null_at_last_refresh_;
|
|
|