| 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" |
| 11 #include "ui/gfx/image/image_skia.h" | 11 #include "ui/gfx/image/image_skia.h" |
| 12 #include "ui/gfx/vector_icons_public.h" | 12 #include "ui/gfx/vector_icons_public.h" |
| 13 #include "ui/views/animation/ink_drop_host_view.h" | 13 #include "ui/views/animation/ink_drop_host_view.h" |
| 14 #include "ui/views/controls/image_view.h" | 14 #include "ui/views/controls/image_view.h" |
| 15 #include "ui/views/widget/widget_observer.h" | 15 #include "ui/views/widget/widget_observer.h" |
| 16 | 16 |
| 17 class CommandUpdater; | 17 class CommandUpdater; |
| 18 | 18 |
| 19 namespace gfx { | 19 namespace gfx { |
| 20 enum class VectorIconId; | 20 enum class VectorIconId; |
| 21 } | 21 } |
| 22 | 22 |
| 23 namespace views { | 23 namespace views { |
| 24 class BubbleDialogDelegateView; | 24 class BubbleDialogDelegateView; |
| 25 class InkDropDelegate; | |
| 26 } | 25 } |
| 27 | 26 |
| 28 // Represents an icon on the omnibox that shows a bubble when clicked. | 27 // Represents an icon on the omnibox that shows a bubble when clicked. |
| 29 class BubbleIconView : public views::InkDropHostView, | 28 class BubbleIconView : public views::InkDropHostView, |
| 30 public views::WidgetObserver { | 29 public views::WidgetObserver { |
| 31 protected: | 30 protected: |
| 32 enum ExecuteSource { | 31 enum ExecuteSource { |
| 33 EXECUTE_SOURCE_MOUSE, | 32 EXECUTE_SOURCE_MOUSE, |
| 34 EXECUTE_SOURCE_KEYBOARD, | 33 EXECUTE_SOURCE_KEYBOARD, |
| 35 EXECUTE_SOURCE_GESTURE, | 34 EXECUTE_SOURCE_GESTURE, |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 128 |
| 130 // This is used to check if the bookmark bubble was showing during the mouse | 129 // This is used to check if the bookmark bubble was showing during the mouse |
| 131 // pressed event. If this is true then the mouse released event is ignored to | 130 // pressed event. If this is true then the mouse released event is ignored to |
| 132 // prevent the bubble from reshowing. | 131 // prevent the bubble from reshowing. |
| 133 bool suppress_mouse_released_action_; | 132 bool suppress_mouse_released_action_; |
| 134 | 133 |
| 135 DISALLOW_COPY_AND_ASSIGN(BubbleIconView); | 134 DISALLOW_COPY_AND_ASSIGN(BubbleIconView); |
| 136 }; | 135 }; |
| 137 | 136 |
| 138 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ | 137 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_BUBBLE_ICON_VIEW_H_ |
| OLD | NEW |