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

Unified Diff: chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h

Issue 1783833002: Add explanation text and legal message footer to upload bubble. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2661
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h
diff --git a/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h b/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h
index f2ea62dc3495a9b465d8d41a364cde5be33716d4..68e3622a7e4d2debad5687a7b6f48d94c400652e 100644
--- a/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h
+++ b/chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.h
@@ -12,6 +12,7 @@
#include "chrome/browser/ui/autofill/save_card_bubble_view.h"
#include "chrome/browser/ui/cocoa/base_bubble_controller.h"
#include "components/autofill/core/browser/credit_card.h"
+#include "components/autofill/core/browser/legal_message_line.h"
@class BrowserWindowController;
@class SaveCardBubbleViewCocoa;
@@ -28,13 +29,22 @@ class SaveCardBubbleViewBridge : public SaveCardBubbleView {
// Returns the title that should be displayed in the bubble.
base::string16 GetWindowTitle() const;
+ // Returns the explanatory text that should be displayed in the bubble.
+ // Returns an empty string if no message should be displayed.
+ base::string16 GetExplanatoryMessage() const;
+
// Returns the card that will be uploaded if the user accepts.
CreditCard GetCard() const;
+ // Returns the legal messages that should be displayed in the footer. Result
+ // will be empty if no legal message should be shown.
+ const LegalMessageLines GetLegalMessageLines() const;
+
// Interaction.
void OnSaveButton();
void OnCancelButton();
void OnLearnMoreClicked();
+ void OnLegalMessageLinkClicked(const GURL& url);
void OnBubbleClosed();
// SaveCardBubbleView implementation:
@@ -44,6 +54,7 @@ class SaveCardBubbleViewBridge : public SaveCardBubbleView {
FRIEND_TEST_ALL_PREFIXES(SaveCardBubbleViewTest, SaveShouldClose);
FRIEND_TEST_ALL_PREFIXES(SaveCardBubbleViewTest, CancelShouldClose);
FRIEND_TEST_ALL_PREFIXES(SaveCardBubbleViewTest, LearnMoreShouldNotClose);
+ FRIEND_TEST_ALL_PREFIXES(SaveCardBubbleViewTest, LegalMessageShouldNotClose);
FRIEND_TEST_ALL_PREFIXES(SaveCardBubbleViewTest, ReturnInvokesDefaultAction);
FRIEND_TEST_ALL_PREFIXES(SaveCardBubbleViewTest, EscapeCloses);
« no previous file with comments | « no previous file | chrome/browser/ui/cocoa/autofill/save_card_bubble_view_bridge.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698