| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" | 9 #include "chrome/browser/ui/views/location_bar/icon_label_bubble_view.h" |
| 10 #include "ui/gfx/animation/animation_delegate.h" | 10 #include "ui/gfx/animation/animation_delegate.h" |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 // IconLabelBubbleView: | 29 // IconLabelBubbleView: |
| 30 gfx::Size GetMinimumSize() const override; | 30 gfx::Size GetMinimumSize() const override; |
| 31 bool OnMousePressed(const ui::MouseEvent& event) override; | 31 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 32 bool OnMouseDragged(const ui::MouseEvent& event) override; | 32 bool OnMouseDragged(const ui::MouseEvent& event) override; |
| 33 void OnMouseReleased(const ui::MouseEvent& event) override; | 33 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 34 void OnGestureEvent(ui::GestureEvent* event) override; | 34 void OnGestureEvent(ui::GestureEvent* event) override; |
| 35 bool GetTooltipText(const gfx::Point& p, | 35 bool GetTooltipText(const gfx::Point& p, |
| 36 base::string16* tooltip) const override; | 36 base::string16* tooltip) const override; |
| 37 SkColor GetTextColor() const override; | 37 SkColor GetTextColor() const override; |
| 38 bool OnActivate(const ui::Event& event) override; | 38 bool OnActivate(const ui::Event& event) override; |
| 39 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 39 | 40 |
| 40 // Whether we should show the tooltip for this icon or not. | 41 // Whether we should show the tooltip for this icon or not. |
| 41 void set_show_tooltip(bool show_tooltip) { show_tooltip_ = show_tooltip; } | 42 void set_show_tooltip(bool show_tooltip) { show_tooltip_ = show_tooltip; } |
| 42 | 43 |
| 43 // Returns what the minimum size would be if the label text were |text|. | 44 // Returns what the minimum size would be if the label text were |text|. |
| 44 gfx::Size GetMinimumSizeForLabelText(const base::string16& text) const; | 45 gfx::Size GetMinimumSizeForLabelText(const base::string16& text) const; |
| 45 | 46 |
| 46 const gfx::FontList& GetFontList() const { return font_list(); } | 47 const gfx::FontList& GetFontList() const { return font_list(); } |
| 47 | 48 |
| 48 // Sets whether the verbose security state text should be visible. | 49 // Sets whether the verbose security state text should be visible. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 74 // True if hovering this view should display a tooltip. | 75 // True if hovering this view should display a tooltip. |
| 75 bool show_tooltip_; | 76 bool show_tooltip_; |
| 76 | 77 |
| 77 LocationBarView* location_bar_; | 78 LocationBarView* location_bar_; |
| 78 gfx::SlideAnimation animation_; | 79 gfx::SlideAnimation animation_; |
| 79 | 80 |
| 80 DISALLOW_COPY_AND_ASSIGN(LocationIconView); | 81 DISALLOW_COPY_AND_ASSIGN(LocationIconView); |
| 81 }; | 82 }; |
| 82 | 83 |
| 83 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ | 84 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_ICON_VIEW_H_ |
| OLD | NEW |