| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 5 #ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 6 #define COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| 7 | 7 |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| 11 #include "base/i18n/rtl.h" | 11 #include "base/i18n/rtl.h" |
| 12 #include "base/memory/weak_ptr.h" | 12 #include "base/memory/weak_ptr.h" |
| 13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
| 14 #include "ui/base/window_open_disposition.h" |
| 14 | 15 |
| 15 namespace content { | 16 namespace content { |
| 16 class RenderFrameHost; | 17 class RenderFrameHost; |
| 17 } | 18 } |
| 18 | 19 |
| 19 namespace gfx { | 20 namespace gfx { |
| 20 class Rect; | 21 class Rect; |
| 21 class RectF; | 22 class RectF; |
| 22 } | 23 } |
| 23 | 24 |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 content::RenderFrameHost* rfh, | 130 content::RenderFrameHost* rfh, |
| 130 const std::vector<autofill::FormStructure*>& forms) = 0; | 131 const std::vector<autofill::FormStructure*>& forms) = 0; |
| 131 | 132 |
| 132 // Inform the client that the field has been filled. | 133 // Inform the client that the field has been filled. |
| 133 virtual void DidFillOrPreviewField( | 134 virtual void DidFillOrPreviewField( |
| 134 const base::string16& autofilled_value, | 135 const base::string16& autofilled_value, |
| 135 const base::string16& profile_full_name) = 0; | 136 const base::string16& profile_full_name) = 0; |
| 136 | 137 |
| 137 // Informs the client that a user gesture has been observed. | 138 // Informs the client that a user gesture has been observed. |
| 138 virtual void OnFirstUserGestureObserved() = 0; | 139 virtual void OnFirstUserGestureObserved() = 0; |
| 140 |
| 141 // Opens |url| with the supplied |disposition|. |
| 142 virtual void LinkClicked(const GURL& url, |
| 143 WindowOpenDisposition disposition) = 0; |
| 139 }; | 144 }; |
| 140 | 145 |
| 141 } // namespace autofill | 146 } // namespace autofill |
| 142 | 147 |
| 143 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ | 148 #endif // COMPONENTS_AUTOFILL_CORE_BROWSER_AUTOFILL_CLIENT_H_ |
| OLD | NEW |