Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Side by Side Diff: chrome/browser/ui/views/location_bar/content_setting_image_view.h

Issue 1763713004: Adjusts content bubble animation with respect to icon size (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adjusts content bubble animation with respect to icon size (code comment) Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 void StopAnimation() override;
69 bool IsShrinking() const override;
68 70
69 // gfx::AnimationDelegate: 71 // gfx::AnimationDelegate:
70 void AnimationEnded(const gfx::Animation* animation) override; 72 void AnimationEnded(const gfx::Animation* animation) override;
71 void AnimationProgressed(const gfx::Animation* animation) override; 73 void AnimationProgressed(const gfx::Animation* animation) override;
72 void AnimationCanceled(const gfx::Animation* animation) override; 74 void AnimationCanceled(const gfx::Animation* animation) override;
73 75
74 // views::View: 76 // views::View:
75 const char* GetClassName() const override; 77 const char* GetClassName() const override;
76 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; 78 void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
77 bool OnMousePressed(const ui::MouseEvent& event) override; 79 bool OnMousePressed(const ui::MouseEvent& event) override;
(...skipping 25 matching lines...) Expand all
103 // the bubble from reshowing. 105 // the bubble from reshowing.
104 bool suppress_mouse_released_action_; 106 bool suppress_mouse_released_action_;
105 107
106 // Animation delegate for the ink drop ripple effect. 108 // Animation delegate for the ink drop ripple effect.
107 scoped_ptr<views::InkDropDelegate> ink_drop_delegate_; 109 scoped_ptr<views::InkDropDelegate> ink_drop_delegate_;
108 110
109 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); 111 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView);
110 }; 112 };
111 113
112 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ 114 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698