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_CONTENT_SETTING_IMAGE_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
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 // intervening "stay open" period. | 60 // intervening "stay open" period. |
61 static const int kAnimationDurationMS; | 61 static const int kAnimationDurationMS; |
62 | 62 |
63 // IconLabelBubbleView: | 63 // IconLabelBubbleView: |
64 const char* GetClassName() const override; | 64 const char* GetClassName() const override; |
65 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; | 65 void OnBoundsChanged(const gfx::Rect& previous_bounds) 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 void OnGestureEvent(ui::GestureEvent* event) override; | 68 void OnGestureEvent(ui::GestureEvent* event) override; |
69 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override; | 69 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override; |
| 70 bool ShouldShowInkDropForFocus() const override; |
70 SkColor GetTextColor() const override; | 71 SkColor GetTextColor() const override; |
71 SkColor GetBorderColor() const override; | 72 SkColor GetBorderColor() const override; |
72 bool ShouldShowBackground() const override; | 73 bool ShouldShowBackground() const override; |
73 double WidthMultiplier() const override; | 74 double WidthMultiplier() const override; |
74 bool IsShrinking() const override; | 75 bool IsShrinking() const override; |
75 bool OnActivate(const ui::Event& event) override; | 76 bool OnActivate(const ui::Event& event) override; |
76 | 77 |
77 // gfx::AnimationDelegate: | 78 // gfx::AnimationDelegate: |
78 void AnimationEnded(const gfx::Animation* animation) override; | 79 void AnimationEnded(const gfx::Animation* animation) override; |
79 void AnimationProgressed(const gfx::Animation* animation) override; | 80 void AnimationProgressed(const gfx::Animation* animation) override; |
(...skipping 15 matching lines...) Expand all Loading... |
95 | 96 |
96 // This is used to check if the bubble was showing during the mouse pressed | 97 // This is used to check if the bubble was showing during the mouse pressed |
97 // event. If this is true then the mouse released event is ignored to prevent | 98 // event. If this is true then the mouse released event is ignored to prevent |
98 // the bubble from reshowing. | 99 // the bubble from reshowing. |
99 bool suppress_mouse_released_action_; | 100 bool suppress_mouse_released_action_; |
100 | 101 |
101 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); | 102 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); |
102 }; | 103 }; |
103 | 104 |
104 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ | 105 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
OLD | NEW |