| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 6 #define CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 virtual void AutofillFormSubmitted( | 346 virtual void AutofillFormSubmitted( |
| 347 const webkit_glue::AutofillForm& form) = 0; | 347 const webkit_glue::AutofillForm& form) = 0; |
| 348 | 348 |
| 349 // Called to retrieve a list of suggestions from the web database given | 349 // Called to retrieve a list of suggestions from the web database given |
| 350 // the name of the field |field_name| and what the user has already typed | 350 // the name of the field |field_name| and what the user has already typed |
| 351 // in the field |user_text|. Appeals to the database thead to perform the | 351 // in the field |user_text|. Appeals to the database thead to perform the |
| 352 // query. When the database thread is finished, the autofill manager | 352 // query. When the database thread is finished, the autofill manager |
| 353 // retrieves the calling RenderViewHost and then passes the vector of | 353 // retrieves the calling RenderViewHost and then passes the vector of |
| 354 // suggestions to RenderViewHost::AutofillSuggestionsReturned. | 354 // suggestions to RenderViewHost::AutofillSuggestionsReturned. |
| 355 // Return true to indicate that AutofillSuggestionsReturned will be called. | 355 // Return true to indicate that AutofillSuggestionsReturned will be called. |
| 356 virtual bool GetAutofillSuggestions(int request_id, | 356 virtual bool GetAutofillSuggestions(int query_id, |
| 357 const std::wstring& field_name, | 357 const string16& field_name, |
| 358 const std::wstring& user_text) = 0; | 358 const string16& user_text) = 0; |
| 359 | 359 |
| 360 // Called when the user has indicated that she wants to remove the specified | 360 // Called when the user has indicated that she wants to remove the specified |
| 361 // autofill suggestion from the database. | 361 // autofill suggestion from the database. |
| 362 virtual void RemoveAutofillEntry(const std::wstring& field_name, | 362 virtual void RemoveAutofillEntry(const string16& field_name, |
| 363 const std::wstring& value) = 0; | 363 const string16& value) = 0; |
| 364 }; | 364 }; |
| 365 | 365 |
| 366 // --------------------------------------------------------------------------- | 366 // --------------------------------------------------------------------------- |
| 367 | 367 |
| 368 // Returns the current delegate associated with a feature. May return NULL if | 368 // Returns the current delegate associated with a feature. May return NULL if |
| 369 // there is no corresponding delegate. | 369 // there is no corresponding delegate. |
| 370 virtual View* GetViewDelegate(); | 370 virtual View* GetViewDelegate(); |
| 371 virtual RendererManagement* GetRendererManagementDelegate(); | 371 virtual RendererManagement* GetRendererManagementDelegate(); |
| 372 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); | 372 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); |
| 373 virtual Resource* GetResourceDelegate(); | 373 virtual Resource* GetResourceDelegate(); |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 virtual bool IsExternalTabContainer() const; | 551 virtual bool IsExternalTabContainer() const; |
| 552 | 552 |
| 553 // The RenderView has inserted one css file into page. | 553 // The RenderView has inserted one css file into page. |
| 554 virtual void DidInsertCSS() {} | 554 virtual void DidInsertCSS() {} |
| 555 | 555 |
| 556 // A different node in the page got focused. | 556 // A different node in the page got focused. |
| 557 virtual void FocusedNodeChanged() {} | 557 virtual void FocusedNodeChanged() {} |
| 558 }; | 558 }; |
| 559 | 559 |
| 560 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 560 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |