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

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: Fix missing override declaration 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 d7f6af7dd2d0696544b9f545df2b6d988a464763..4cc27d03d45b399e2ec9a19d25ce8c55cfd7e353 100644
--- a/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
+++ b/chrome/browser/ui/views/autofill/card_unmask_prompt_views.h
@@ -6,7 +6,7 @@
#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"
@@ -14,6 +14,10 @@
#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;
@@ -33,13 +37,12 @@ class CardUnmaskPromptViews : public CardUnmaskPromptView,
views::LinkListener,
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,
@@ -117,6 +120,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