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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h

Issue 40483003: [rAC, OSX] Add "generated CC" info bubble. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove bad DCHECK Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
diff --git a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
index 6c641e3de6b81c8f94e7d8aca92f6005f4106f76..d7104e1478bee69de925acdb75c71bb8f6993dca 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
+++ b/chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h
@@ -24,6 +24,7 @@
class CommandUpdater;
class ContentSettingDecoration;
class EVBubbleDecoration;
+class GeneratedCreditCardDecoration;
class KeywordHintDecoration;
class LocationBarDecoration;
class LocationIconDecoration;
@@ -104,6 +105,10 @@ class LocationBarViewMac : public LocationBar,
// info bubble aims.
NSPoint GetPageInfoBubblePoint() const;
+ // Get the point in window coordinates in the "generated cc" icon at which the
+ // corresponding info bubble aims.
+ NSPoint GetGeneratedCreditCardBubblePoint() const;
+
// When any image decorations change, call this to ensure everything is
// redrawn and laid out if necessary.
void OnDecorationsChanged();
@@ -229,6 +234,9 @@ class LocationBarViewMac : public LocationBar,
// The voice search icon.
scoped_ptr<MicSearchDecoration> mic_search_decoration_;
+ // Generated CC hint decoration.
+ scoped_ptr<GeneratedCreditCardDecoration> generated_credit_card_decoration_;
+
Profile* profile_;
Browser* browser_;

Powered by Google App Engine
This is Rietveld 408576698