| 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_ICON_LABEL_BUBBLE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 // full-width view and can be used to animate the width of the view. | 60 // full-width view and can be used to animate the width of the view. |
| 61 virtual double WidthMultiplier() const; | 61 virtual double WidthMultiplier() const; |
| 62 | 62 |
| 63 // Returns true when animation is in progress and is shrinking. | 63 // Returns true when animation is in progress and is shrinking. |
| 64 virtual bool IsShrinking() const; | 64 virtual bool IsShrinking() const; |
| 65 | 65 |
| 66 // The view has been activated by a user gesture such as spacebar. Returns | 66 // The view has been activated by a user gesture such as spacebar. Returns |
| 67 // true if some handling was performed. | 67 // true if some handling was performed. |
| 68 virtual bool OnActivate(const ui::Event& event); | 68 virtual bool OnActivate(const ui::Event& event); |
| 69 | 69 |
| 70 // views::View: | 70 // views::InkDropHostView: |
| 71 gfx::Size GetPreferredSize() const override; | 71 gfx::Size GetPreferredSize() const override; |
| 72 void Layout() override; | 72 void Layout() override; |
| 73 bool OnKeyPressed(const ui::KeyEvent& event) override; | 73 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 74 bool OnKeyReleased(const ui::KeyEvent& event) override; | 74 bool OnKeyReleased(const ui::KeyEvent& event) override; |
| 75 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 75 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override; | 76 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override; |
| 76 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; | 77 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; |
| 77 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; | 78 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; |
| 78 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() | 79 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
| 79 const override; | 80 const override; |
| 80 SkColor GetInkDropBaseColor() const override; | 81 SkColor GetInkDropBaseColor() const override; |
| 81 | 82 |
| 82 const gfx::FontList& font_list() const { return label_->font_list(); } | 83 const gfx::FontList& font_list() const { return label_->font_list(); } |
| 83 | 84 |
| 84 SkColor GetParentBackgroundColor() const; | 85 SkColor GetParentBackgroundColor() const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 104 void OnPaint(gfx::Canvas* canvas) override; | 105 void OnPaint(gfx::Canvas* canvas) override; |
| 105 | 106 |
| 106 // The contents of the bubble. | 107 // The contents of the bubble. |
| 107 views::ImageView* image_; | 108 views::ImageView* image_; |
| 108 views::Label* label_; | 109 views::Label* label_; |
| 109 | 110 |
| 110 DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView); | 111 DISALLOW_COPY_AND_ASSIGN(IconLabelBubbleView); |
| 111 }; | 112 }; |
| 112 | 113 |
| 113 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ | 114 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_ICON_LABEL_BUBBLE_VIEW_H_ |
| OLD | NEW |