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

Unified Diff: chrome/browser/ui/views/autofill/card_unmask_prompt_views.h

Issue 1138653003: Move card unmask interfaces and controller into the autofill component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Edit factory function comment Created 5 years, 7 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
Index: chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
diff --git a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
index ebf8226a802eaa85efcde8be94ea7ad39c3503e8..327e6cdb51a43e17fca5c9bdfdf7d4b27fbbd11b 100644
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
@@ -6,13 +6,17 @@
#define CHROME_BROWSER_UI_VIEWS_AUTOFILL_CARD_UNMASK_PROMPT_VIEWS_H_
#include "chrome/browser/ui/autofill/autofill_dialog_models.h"
-#include "chrome/browser/ui/autofill/card_unmask_prompt_view.h"
+#include "components/autofill/core/browser/ui/card_unmask_prompt_view.h"
#include "ui/gfx/animation/animation_delegate.h"
#include "ui/gfx/animation/slide_animation.h"
#include "ui/views/controls/combobox/combobox_listener.h"
#include "ui/views/controls/textfield/textfield_controller.h"
#include "ui/views/window/dialog_delegate.h"
+namespace content {
+class WebContents;
+}
+
namespace views {
class Checkbox;
class ImageView;
@@ -30,13 +34,12 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView,
views::TextfieldController,
gfx::AnimationDelegate {
public:
- explicit CardUnmaskPromptViews(CardUnmaskPromptController* controller);
-
+ CardUnmaskPromptViews(CardUnmaskPromptController* controller,
+ content::WebContents* web_contents);
~CardUnmaskPromptViews() override;
- void Show();
-
// CardUnmaskPromptView
+ void Show() override;
void ControllerGone() override;
void DisableAndWaitForVerification() override;
void GotVerificationResult(const base::string16& error_message,
@@ -109,6 +112,7 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView,
void ClosePrompt();
CardUnmaskPromptController* controller_;
+ content::WebContents* web_contents_;
views::View* main_contents_;

Powered by Google App Engine
This is Rietveld 408576698