| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
| 10 #include "chrome/browser/ui/content_settings/content_setting_image_model.h" | 10 #include "chrome/browser/ui/content_settings/content_setting_image_model.h" |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 | 58 |
| 59 // The total animation time, including open and close as well as an | 59 // The total animation time, including open and close as well as an |
| 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 SkColor GetTextColor() const override; | 64 SkColor GetTextColor() const override; |
| 65 SkColor GetBorderColor() const override; | 65 SkColor GetBorderColor() const override; |
| 66 bool ShouldShowBackground() const override; | 66 bool ShouldShowBackground() const override; |
| 67 double WidthMultiplier() const override; | 67 double WidthMultiplier() const override; |
| 68 bool IsShrinking() const override; |
| 68 | 69 |
| 69 // gfx::AnimationDelegate: | 70 // gfx::AnimationDelegate: |
| 70 void AnimationEnded(const gfx::Animation* animation) override; | 71 void AnimationEnded(const gfx::Animation* animation) override; |
| 71 void AnimationProgressed(const gfx::Animation* animation) override; | 72 void AnimationProgressed(const gfx::Animation* animation) override; |
| 72 void AnimationCanceled(const gfx::Animation* animation) override; | 73 void AnimationCanceled(const gfx::Animation* animation) override; |
| 73 | 74 |
| 74 // views::View: | 75 // views::View: |
| 75 const char* GetClassName() const override; | 76 const char* GetClassName() const override; |
| 76 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; | 77 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; |
| 77 bool OnMousePressed(const ui::MouseEvent& event) override; | 78 bool OnMousePressed(const ui::MouseEvent& event) override; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 103 // the bubble from reshowing. | 104 // the bubble from reshowing. |
| 104 bool suppress_mouse_released_action_; | 105 bool suppress_mouse_released_action_; |
| 105 | 106 |
| 106 // Animation delegate for the ink drop ripple effect. | 107 // Animation delegate for the ink drop ripple effect. |
| 107 scoped_ptr<views::InkDropDelegate> ink_drop_delegate_; | 108 scoped_ptr<views::InkDropDelegate> ink_drop_delegate_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); | 110 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ | 113 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ |
| OLD | NEW |