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

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

Issue 2323973002: Fix tooltip text for ContentSettingImageView. (Closed)
Patch Set: operator= Created 4 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/content_setting_image_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // The total animation time, including open and close as well as an 55 // The total animation time, including open and close as well as an
56 // intervening "stay open" period. 56 // intervening "stay open" period.
57 static const int kAnimationDurationMS; 57 static const int kAnimationDurationMS;
58 58
59 // IconLabelBubbleView: 59 // IconLabelBubbleView:
60 const char* GetClassName() const override; 60 const char* GetClassName() const override;
61 void OnBoundsChanged(const gfx::Rect& previous_bounds) override; 61 void OnBoundsChanged(const gfx::Rect& previous_bounds) override;
62 bool OnMousePressed(const ui::MouseEvent& event) override; 62 bool OnMousePressed(const ui::MouseEvent& event) override;
63 void OnMouseReleased(const ui::MouseEvent& event) override; 63 void OnMouseReleased(const ui::MouseEvent& event) override;
64 void OnGestureEvent(ui::GestureEvent* event) override; 64 void OnGestureEvent(ui::GestureEvent* event) override;
65 bool GetTooltipText(const gfx::Point& p,
66 base::string16* tooltip) const override;
65 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override; 67 void OnNativeThemeChanged(const ui::NativeTheme* native_theme) override;
66 bool ShouldShowInkDropForFocus() const override; 68 bool ShouldShowInkDropForFocus() const override;
67 SkColor GetTextColor() const override; 69 SkColor GetTextColor() const override;
68 SkColor GetBorderColor() const override; 70 SkColor GetBorderColor() const override;
69 bool ShouldShowBackground() const override; 71 bool ShouldShowBackground() const override;
70 double WidthMultiplier() const override; 72 double WidthMultiplier() const override;
71 bool IsShrinking() const override; 73 bool IsShrinking() const override;
72 bool OnActivate(const ui::Event& event) override; 74 bool OnActivate(const ui::Event& event) override;
73 75
74 // gfx::AnimationDelegate: 76 // gfx::AnimationDelegate:
(...skipping 17 matching lines...) Expand all
92 94
93 // This is used to check if the bubble was showing during the mouse pressed 95 // 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 96 // event. If this is true then the mouse released event is ignored to prevent
95 // the bubble from reshowing. 97 // the bubble from reshowing.
96 bool suppress_mouse_released_action_; 98 bool suppress_mouse_released_action_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView); 100 DISALLOW_COPY_AND_ASSIGN(ContentSettingImageView);
99 }; 101 };
100 102
101 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_ 103 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_CONTENT_SETTING_IMAGE_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/content_setting_image_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698