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

Unified Diff: components/autofill/core/browser/ui/save_card_bubble_controller.h

Issue 1396923003: Autofill: Replace "save credit card" infobar with a bubble (Views only). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Replace browser tests with unit tests. Address reviewer comments. Created 5 years, 2 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: components/autofill/core/browser/ui/save_card_bubble_controller.h
diff --git a/components/autofill/core/browser/ui/save_card_bubble_controller.h b/components/autofill/core/browser/ui/save_card_bubble_controller.h
new file mode 100644
index 0000000000000000000000000000000000000000..d54b031c07a4df7b2d4799d5e347110f90aa37c9
--- /dev/null
+++ b/components/autofill/core/browser/ui/save_card_bubble_controller.h
@@ -0,0 +1,32 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_UI_SAVE_CARD_BUBBLE_CONTROLLER_H_
+#define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_SAVE_CARD_BUBBLE_CONTROLLER_H_
Evan Stade 2015/10/22 23:02:43 why is this in this directory?
bondd 2015/10/23 03:32:35 Done. Moved to chrome/browser/ui/autofill/
+
+#include "base/macros.h"
+
+namespace autofill {
+
+class SaveCardBubbleView;
+
+// Interface for per-tab class to control the save credit card bubble and
+// Omnibox icon.
Evan Stade 2015/10/22 23:02:43 this comment should be something like "Interface
bondd 2015/10/23 03:32:35 Done.
+class SaveCardBubbleController {
+ public:
+ // Functions called by SaveCardBubbleView.
+ virtual void OnSaveButton() = 0;
+ virtual void OnCancelButton() = 0;
+ virtual void OnBubbleClosed() = 0;
+
+ protected:
+ SaveCardBubbleController() {}
+ virtual ~SaveCardBubbleController() {}
+
+ DISALLOW_COPY_AND_ASSIGN(SaveCardBubbleController);
+};
+
+} // namespace autofill
+
+#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_UI_SAVE_CARD_BUBBLE_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698