OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_BUBBLE_ICON_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 void Layout() override; | 65 void Layout() override; |
66 bool OnMousePressed(const ui::MouseEvent& event) override; | 66 bool OnMousePressed(const ui::MouseEvent& event) override; |
67 void OnMouseReleased(const ui::MouseEvent& event) override; | 67 void OnMouseReleased(const ui::MouseEvent& event) override; |
68 bool OnKeyPressed(const ui::KeyEvent& event) override; | 68 bool OnKeyPressed(const ui::KeyEvent& event) override; |
69 bool OnKeyReleased(const ui::KeyEvent& event) override; | 69 bool OnKeyReleased(const ui::KeyEvent& event) override; |
70 void ViewHierarchyChanged( | 70 void ViewHierarchyChanged( |
71 const ViewHierarchyChangedDetails& details) override; | 71 const ViewHierarchyChangedDetails& details) override; |
72 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; | 72 void OnNativeThemeChanged(const ui::NativeTheme* theme) override; |
73 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; | 73 void AddInkDropLayer(ui::Layer* ink_drop_layer) override; |
74 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; | 74 void RemoveInkDropLayer(ui::Layer* ink_drop_layer) override; |
75 std::unique_ptr<views::InkDropHover> CreateInkDropHover() const override; | 75 std::unique_ptr<views::InkDropHighlight> CreateInkDropHighlight() |
| 76 const override; |
76 SkColor GetInkDropBaseColor() const override; | 77 SkColor GetInkDropBaseColor() const override; |
77 bool ShouldShowInkDropForFocus() const override; | 78 bool ShouldShowInkDropForFocus() const override; |
78 | 79 |
79 // ui::EventHandler: | 80 // ui::EventHandler: |
80 void OnGestureEvent(ui::GestureEvent* event) override; | 81 void OnGestureEvent(ui::GestureEvent* event) override; |
81 | 82 |
82 // views::WidgetObserver: | 83 // views::WidgetObserver: |
83 void OnWidgetDestroying(views::Widget* widget) override; | 84 void OnWidgetDestroying(views::Widget* widget) override; |
84 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override; | 85 void OnWidgetVisibilityChanged(views::Widget* widget, bool visible) override; |
85 | 86 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // prevent the bubble from reshowing. | 132 // prevent the bubble from reshowing. |
132 bool suppress_mouse_released_action_; | 133 bool suppress_mouse_released_action_; |
133 | 134 |
134 // Animation delegate for the ink drop ripple effect. | 135 // Animation delegate for the ink drop ripple effect. |
135 std::unique_ptr<views::InkDropDelegate> ink_drop_delegate_; | 136 std::unique_ptr<views::InkDropDelegate> ink_drop_delegate_; |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(BubbleIconView); | 138 DISALLOW_COPY_AND_ASSIGN(BubbleIconView); |
138 }; | 139 }; |
139 | 140 |
140 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ | 141 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ |
OLD | NEW |