| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // IconLabelBubbleView: | 58 // IconLabelBubbleView: |
| 59 const char* GetClassName() const override; | 59 const char* GetClassName() const override; |
| 60 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; | 60 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; |
| 61 bool OnMousePressed(const ui::MouseEvent& event) override; | 61 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 62 void OnMouseReleased(const ui::MouseEvent& event) override; | 62 void OnMouseReleased(const ui::MouseEvent& event) override; |
| 63 void OnGestureEvent(ui::GestureEvent* event) override; | 63 void OnGestureEvent(ui::GestureEvent* event) override; |
| 64 bool GetTooltipText(const gfx::Point& p, | 64 bool GetTooltipText(const gfx::Point& p, |
| 65 base::string16* tooltip) const override; | 65 base::string16* tooltip) const override; |
| 66 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override; | 66 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override; |
| 67 bool ShouldShowInkDropForFocus() const override; | 67 std::unique_ptr<views::InkDrop> CreateInkDrop() override; |
| 68 SkColor GetTextColor() const override; | 68 SkColor GetTextColor() const override; |
| 69 bool ShouldShowLabel() const override; | 69 bool ShouldShowLabel() const override; |
| 70 double WidthMultiplier() const override; | 70 double WidthMultiplier() const override; |
| 71 bool IsShrinking() const override; | 71 bool IsShrinking() const override; |
| 72 bool OnActivate(const ui::Event& event) override; | 72 bool OnActivate(const ui::Event& event) override; |
| 73 | 73 |
| 74 // gfx::AnimationDelegate: | 74 // gfx::AnimationDelegate: |
| 75 void AnimationEnded(const gfx::Animation* animation) override; | 75 void AnimationEnded(const gfx::Animation* animation) override; |
| 76 void AnimationProgressed(const gfx::Animation* animation) override; | 76 void AnimationProgressed(const gfx::Animation* animation) override; |
| 77 void AnimationCanceled(const gfx::Animation* animation) override; | 77 void AnimationCanceled(const gfx::Animation* animation) override; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 92 | 92 |
| 93 // This is used to check if the bubble was showing during the mouse pressed | 93 // This is used to check if the bubble was showing during the mouse pressed |
| 94 // event. If this is true then the mouse released event is ignored to prevent | 94 // event. If this is true then the mouse released event is ignored to prevent |
| 95 // the bubble from reshowing. | 95 // the bubble from reshowing. |
| 96 bool suppress_mouse_released_action_; | 96 bool suppress_mouse_released_action_; |
| 97 | 97 |
| 98 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); | 98 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); |
| 99 }; | 99 }; |
| 100 | 100 |
| 101 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ | 101 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
| OLD | NEW |