| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 const DetailInput& originating_input) = 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, DetailOutputMap* 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 string16 GetCvc() = 0; | 82 virtual string16 GetCvc() = 0; |
| 83 | 83 |
| 84 // Whether or not |point| is within |input|'s bounds. | 84 // Whether or not |point| is within |input|'s bounds. |
| 85 virtual bool HitTestInput(const DetailInput& input, | 85 virtual bool HitTestInput(const DetailInput& input, |
| 86 const gfx::Point& screen_point) = 0; | 86 const gfx::Point& screen_point) = 0; |
| 87 | 87 |
| (...skipping 19 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 |