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 347 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
358 virtual bool GetFormFieldHistorySuggestions(int query_id, | 358 virtual bool GetFormFieldHistorySuggestions(int query_id, |
359 const string16& field_name, | 359 const string16& field_name, |
360 const string16& user_text) = 0; | 360 const string16& user_text) = 0; |
361 | 361 |
362 // Called when the user has indicated that she wants to remove the specified | 362 // Called when the user has indicated that she wants to remove the specified |
363 // FormFieldHistory suggestion from the database. | 363 // FormFieldHistory suggestion from the database. |
364 virtual void RemoveFormFieldHistoryEntry(const string16& field_name, | 364 virtual void RemoveFormFieldHistoryEntry(const string16& field_name, |
365 const string16& value) = 0; | 365 const string16& value) = 0; |
366 }; | 366 }; |
367 | 367 |
| 368 // AutoFill ------------------------------------------------------------------ |
| 369 // Interface for AutoFill-related functions. |
| 370 |
| 371 class AutoFill { |
| 372 public: |
| 373 // Called when the user submits a form. |
| 374 virtual void FormFieldValuesSubmitted( |
| 375 const webkit_glue::FormFieldValues& form) = 0; |
| 376 }; |
| 377 |
368 // --------------------------------------------------------------------------- | 378 // --------------------------------------------------------------------------- |
369 | 379 |
370 // Returns the current delegate associated with a feature. May return NULL if | 380 // Returns the current delegate associated with a feature. May return NULL if |
371 // there is no corresponding delegate. | 381 // there is no corresponding delegate. |
372 virtual View* GetViewDelegate(); | 382 virtual View* GetViewDelegate(); |
373 virtual RendererManagement* GetRendererManagementDelegate(); | 383 virtual RendererManagement* GetRendererManagementDelegate(); |
374 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); | 384 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); |
375 virtual Resource* GetResourceDelegate(); | 385 virtual Resource* GetResourceDelegate(); |
376 virtual Save* GetSaveDelegate(); | 386 virtual Save* GetSaveDelegate(); |
377 virtual Printing* GetPrintingDelegate(); | 387 virtual Printing* GetPrintingDelegate(); |
378 virtual FavIcon* GetFavIconDelegate(); | 388 virtual FavIcon* GetFavIconDelegate(); |
379 virtual FormFieldHistory* GetFormFieldHistoryDelegate(); | 389 virtual FormFieldHistory* GetFormFieldHistoryDelegate(); |
| 390 virtual AutoFill* GetAutoFillDelegate(); |
380 | 391 |
381 // Gets the URL that is currently being displayed, if there is one. | 392 // Gets the URL that is currently being displayed, if there is one. |
382 virtual const GURL& GetURL() const; | 393 virtual const GURL& GetURL() const; |
383 | 394 |
384 // Return this object cast to a TabContents, if it is one. If the object is | 395 // Return this object cast to a TabContents, if it is one. If the object is |
385 // not a TabContents, returns NULL. | 396 // not a TabContents, returns NULL. |
386 virtual TabContents* GetAsTabContents(); | 397 virtual TabContents* GetAsTabContents(); |
387 | 398 |
388 // Adds a notice that something was blocked. | 399 // Adds a notice that something was blocked. |
389 virtual void AddBlockedNotice(const GURL& url, const string16& reason); | 400 virtual void AddBlockedNotice(const GURL& url, const string16& reason); |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
553 virtual bool IsExternalTabContainer() const; | 564 virtual bool IsExternalTabContainer() const; |
554 | 565 |
555 // The RenderView has inserted one css file into page. | 566 // The RenderView has inserted one css file into page. |
556 virtual void DidInsertCSS() {} | 567 virtual void DidInsertCSS() {} |
557 | 568 |
558 // A different node in the page got focused. | 569 // A different node in the page got focused. |
559 virtual void FocusedNodeChanged() {} | 570 virtual void FocusedNodeChanged() {} |
560 }; | 571 }; |
561 | 572 |
562 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 573 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
OLD | NEW |