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

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

Issue 2098643002: Add ink drop highlight for hover and focus on location icons (e.g. star, (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: docs Created 4 years, 6 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 <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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698