| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
| 11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
| 12 #include "base/string16.h" | 12 #include "base/string16.h" |
| 13 #include "chrome/common/content_settings_types.h" | 13 #include "chrome/common/content_settings_types.h" |
| 14 #include "chrome/common/view_types.h" | 14 #include "chrome/common/view_types.h" |
| 15 #include "net/base/load_states.h" | 15 #include "net/base/load_states.h" |
| 16 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" | 16 #include "third_party/WebKit/WebKit/chromium/public/WebDragOperation.h" |
| 17 #include "webkit/glue/window_open_disposition.h" | 17 #include "webkit/glue/window_open_disposition.h" |
| 18 | 18 |
| 19 struct ContextMenuParams; | 19 struct ContextMenuParams; |
| 20 class FilePath; | 20 class FilePath; |
| 21 struct FormData; |
| 21 class GURL; | 22 class GURL; |
| 22 class Value; | |
| 23 struct NativeWebKeyboardEvent; | 23 struct NativeWebKeyboardEvent; |
| 24 class NavigationEntry; | 24 class NavigationEntry; |
| 25 class Profile; | 25 class Profile; |
| 26 struct RendererPreferences; | 26 struct RendererPreferences; |
| 27 class RenderProcessHost; | 27 class RenderProcessHost; |
| 28 class RenderViewHost; | 28 class RenderViewHost; |
| 29 class ResourceRedirectDetails; | 29 class ResourceRedirectDetails; |
| 30 class ResourceRequestDetails; | 30 class ResourceRequestDetails; |
| 31 class SkBitmap; | 31 class SkBitmap; |
| 32 class TabContents; | 32 class TabContents; |
| 33 struct ThumbnailScore; | 33 struct ThumbnailScore; |
| 34 class Value; |
| 34 struct ViewHostMsg_DidPrintPage_Params; | 35 struct ViewHostMsg_DidPrintPage_Params; |
| 35 struct ViewHostMsg_FrameNavigate_Params; | 36 struct ViewHostMsg_FrameNavigate_Params; |
| 36 struct WebDropData; | 37 struct WebDropData; |
| 37 class WebKeyboardEvent; | 38 class WebKeyboardEvent; |
| 38 struct WebPreferences; | 39 struct WebPreferences; |
| 39 | 40 |
| 40 namespace base { | 41 namespace base { |
| 41 class WaitableEvent; | 42 class WaitableEvent; |
| 42 } | 43 } |
| 43 | 44 |
| (...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 396 // frame. | 397 // frame. |
| 397 virtual void FormsSeen( | 398 virtual void FormsSeen( |
| 398 const std::vector<webkit_glue::FormFieldValues>& forms) = 0; | 399 const std::vector<webkit_glue::FormFieldValues>& forms) = 0; |
| 399 | 400 |
| 400 // Called to retrieve a list of AutoFill suggestions from the web database | 401 // Called to retrieve a list of AutoFill suggestions from the web database |
| 401 // given the name of the field and what the user has already typed in the | 402 // given the name of the field and what the user has already typed in the |
| 402 // field. Returns true to indicate that | 403 // field. Returns true to indicate that |
| 403 // RenderViewHost::AutoFillSuggestionsReturned has been called. | 404 // RenderViewHost::AutoFillSuggestionsReturned has been called. |
| 404 virtual bool GetAutoFillSuggestions( | 405 virtual bool GetAutoFillSuggestions( |
| 405 int query_id, const webkit_glue::FormField& field) = 0; | 406 int query_id, const webkit_glue::FormField& field) = 0; |
| 407 |
| 408 // Called to fill the FormData object with AutoFill profile information that |
| 409 // matches the |name|, |label| key. Returns true to indicate that |
| 410 // RenderViewHost::AutoFillFormDataFilled has been called. |
| 411 virtual bool FillAutoFillFormData(int query_id, |
| 412 const FormData& form, |
| 413 const string16& name, |
| 414 const string16& label) = 0; |
| 406 }; | 415 }; |
| 407 | 416 |
| 408 // --------------------------------------------------------------------------- | 417 // --------------------------------------------------------------------------- |
| 409 | 418 |
| 410 // Returns the current delegate associated with a feature. May return NULL if | 419 // Returns the current delegate associated with a feature. May return NULL if |
| 411 // there is no corresponding delegate. | 420 // there is no corresponding delegate. |
| 412 virtual View* GetViewDelegate(); | 421 virtual View* GetViewDelegate(); |
| 413 virtual RendererManagement* GetRendererManagementDelegate(); | 422 virtual RendererManagement* GetRendererManagementDelegate(); |
| 414 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); | 423 virtual BrowserIntegration* GetBrowserIntegrationDelegate(); |
| 415 virtual Resource* GetResourceDelegate(); | 424 virtual Resource* GetResourceDelegate(); |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 597 virtual bool IsExternalTabContainer() const; | 606 virtual bool IsExternalTabContainer() const; |
| 598 | 607 |
| 599 // The RenderView has inserted one css file into page. | 608 // The RenderView has inserted one css file into page. |
| 600 virtual void DidInsertCSS() {} | 609 virtual void DidInsertCSS() {} |
| 601 | 610 |
| 602 // A different node in the page got focused. | 611 // A different node in the page got focused. |
| 603 virtual void FocusedNodeChanged() {} | 612 virtual void FocusedNodeChanged() {} |
| 604 }; | 613 }; |
| 605 | 614 |
| 606 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ | 615 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_VIEW_HOST_DELEGATE_H_ |
| OLD | NEW |