Chromium Code Reviews| Index: chrome/browser/ui/views/location_bar/action_box_button_view.h |
| diff --git a/chrome/browser/ui/views/location_bar/action_box_button_view.h b/chrome/browser/ui/views/location_bar/action_box_button_view.h |
| index d20b8476c03ca8fbae2417aaef4b2072c9311ddb..f2d305b723f83ed0671c5686cbaa798fb80b2745 100644 |
| --- a/chrome/browser/ui/views/location_bar/action_box_button_view.h |
| +++ b/chrome/browser/ui/views/location_bar/action_box_button_view.h |
| @@ -25,6 +25,14 @@ class ActionBoxButtonView : public views::MenuButton, |
| return &controller_; |
| } |
| + void SetClickableHeight(int clickable_height) { |
|
Peter Kasting
2012/10/12 20:57:30
This is much worse than the code before. The loca
yefimt
2012/10/12 23:27:34
Done.
|
| + clickable_height_ = clickable_height; |
| + } |
| + |
| + // Thickness of the top transparent area on a button image that overlaps |
| + // location bar border. |
| + static const int kTopBorderOverlapThickness; |
| + |
| private: |
| // Overridden from views::CustomButton: |
| virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| @@ -33,6 +41,10 @@ class ActionBoxButtonView : public views::MenuButton, |
| virtual void OnMenuButtonClicked(View* source, |
| const gfx::Point& point) OVERRIDE; |
| + // Overridden from veiws::View: |
| + virtual bool HasHitTestMask() const; |
| + virtual void GetHitTestMask(gfx::Path* mask) const; |
| + |
| // Overridden from ActionBoxButtonController::Delegate: |
| virtual void ShowMenu(scoped_ptr<ActionBoxMenuModel> menu_model) OVERRIDE; |
| @@ -44,6 +56,9 @@ class ActionBoxButtonView : public views::MenuButton, |
| scoped_ptr<ActionBoxMenu> menu_; |
| + // Height of the user clickable area of the button. |
| + int clickable_height_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonView); |
| }; |