OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 6 #define CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
7 | 7 |
8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" | 8 #include "chrome/browser/ui/autofill/autofill_dialog_view_delegate.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 // Called when the contents of a section have changed. | 65 // Called when the contents of a section have changed. |
66 virtual void UpdateSection(DialogSection section) = 0; | 66 virtual void UpdateSection(DialogSection section) = 0; |
67 | 67 |
68 // Updates the error bubble for this view. | 68 // Updates the error bubble for this view. |
69 virtual void UpdateErrorBubble() = 0; | 69 virtual void UpdateErrorBubble() = 0; |
70 | 70 |
71 // Fills the given section with Autofill data that was triggered by a user | 71 // Fills the given section with Autofill data that was triggered by a user |
72 // interaction with |originating_input|. | 72 // interaction with |originating_input|. |
73 virtual void FillSection(DialogSection section, | 73 virtual void FillSection(DialogSection section, |
74 const DetailInput& originating_input) = 0; | 74 ServerFieldType originating_type) = 0; |
75 | 75 |
76 // Fills |output| with data the user manually input. | 76 // Fills |output| with data the user manually input. |
77 virtual void GetUserInput(DialogSection section, FieldValueMap* output) = 0; | 77 virtual void GetUserInput(DialogSection section, FieldValueMap* output) = 0; |
78 | 78 |
79 // Gets the CVC value the user typed to go along with the stored credit card | 79 // Gets the CVC value the user typed to go along with the stored credit card |
80 // data. If the user is inputing credit card data from scratch, this is not | 80 // data. If the user is inputing credit card data from scratch, this is not |
81 // relevant. | 81 // relevant. |
82 virtual base::string16 GetCvc() = 0; | 82 virtual base::string16 GetCvc() = 0; |
83 | 83 |
84 // Whether or not |point| is within |input|'s bounds. | 84 // Whether or not |point| is within the bounds of an input of |type|. |
85 virtual bool HitTestInput(const DetailInput& input, | 85 virtual bool HitTestInput(ServerFieldType type, |
86 const gfx::Point& screen_point) = 0; | 86 const gfx::Point& screen_point) = 0; |
87 | 87 |
88 // Returns true if new or edited autofill details should be saved. | 88 // Returns true if new or edited autofill details should be saved. |
89 virtual bool SaveDetailsLocally() = 0; | 89 virtual bool SaveDetailsLocally() = 0; |
90 | 90 |
91 // Triggers dialog to sign in to Google. | 91 // Triggers dialog to sign in to Google. |
92 // Returns a NotificationSource to be used to monitor for sign-in completion. | 92 // Returns a NotificationSource to be used to monitor for sign-in completion. |
93 virtual const content::NavigationController* ShowSignIn() = 0; | 93 virtual const content::NavigationController* ShowSignIn() = 0; |
94 | 94 |
95 // Closes out any sign-in UI and returns to normal operation. | 95 // Closes out any sign-in UI and returns to normal operation. |
(...skipping 11 matching lines...) Expand all Loading... |
107 virtual void OnSignInResize(const gfx::Size& pref_size) = 0; | 107 virtual void OnSignInResize(const gfx::Size& pref_size) = 0; |
108 | 108 |
109 // Factory function to create the dialog (implemented once per view | 109 // Factory function to create the dialog (implemented once per view |
110 // implementation). |controller| will own the created dialog. | 110 // implementation). |controller| will own the created dialog. |
111 static AutofillDialogView* Create(AutofillDialogViewDelegate* delegate); | 111 static AutofillDialogView* Create(AutofillDialogViewDelegate* delegate); |
112 }; | 112 }; |
113 | 113 |
114 } // namespace autofill | 114 } // namespace autofill |
115 | 115 |
116 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ | 116 #endif // CHROME_BROWSER_UI_AUTOFILL_AUTOFILL_DIALOG_VIEW_H_ |
OLD | NEW |