| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 #ifndef WebViewClient_h | 31 #ifndef WebViewClient_h |
| 32 #define WebViewClient_h | 32 #define WebViewClient_h |
| 33 | 33 |
| 34 #include "WebDragOperation.h" | 34 #include "WebDragOperation.h" |
| 35 #include "WebEditingAction.h" | 35 #include "WebEditingAction.h" |
| 36 #include "WebFileChooserCompletion.h" | 36 #include "WebFileChooserCompletion.h" |
| 37 #include "WebTextAffinity.h" | 37 #include "WebTextAffinity.h" |
| 38 #include "WebTextDirection.h" | 38 #include "WebTextDirection.h" |
| 39 #include "WebWidgetClient.h" | 39 #include "WebWidgetClient.h" |
| 40 | 40 |
| 41 class WebView; // FIXME: Move into the WebKit namespace. | |
| 42 | |
| 43 namespace WebKit { | 41 namespace WebKit { |
| 44 class WebAccessibilityObject; | 42 class WebAccessibilityObject; |
| 45 class WebDevToolsAgentClient; | 43 class WebDevToolsAgentClient; |
| 46 class WebDragData; | 44 class WebDragData; |
| 47 class WebFileChooserCompletion; | 45 class WebFileChooserCompletion; |
| 48 class WebFrame; | 46 class WebFrame; |
| 49 class WebNode; | 47 class WebNode; |
| 50 class WebNotificationPresenter; | 48 class WebNotificationPresenter; |
| 51 class WebRange; | 49 class WebRange; |
| 52 class WebString; | 50 class WebString; |
| 53 class WebURL; | 51 class WebURL; |
| 52 class WebView; |
| 54 class WebWidget; | 53 class WebWidget; |
| 55 struct WebConsoleMessage; | 54 struct WebConsoleMessage; |
| 56 struct WebContextMenuData; | 55 struct WebContextMenuData; |
| 57 struct WebPoint; | 56 struct WebPoint; |
| 58 struct WebPopupMenuInfo; | 57 struct WebPopupMenuInfo; |
| 59 | 58 |
| 60 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. | 59 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. |
| 61 // Virtual inheritance allows an implementation of WebWidgetClient to be | 60 // Virtual inheritance allows an implementation of WebWidgetClient to be |
| 62 // easily reused as part of an implementation of WebViewClient. | 61 // easily reused as part of an implementation of WebViewClient. |
| 63 class WebViewClient : virtual public WebWidgetClient { | 62 class WebViewClient : virtual public WebWidgetClient { |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 // far and the WebNode corresponds to the input field. | 264 // far and the WebNode corresponds to the input field. |
| 266 virtual void queryAutofillSuggestions(const WebNode&, | 265 virtual void queryAutofillSuggestions(const WebNode&, |
| 267 const WebString& name, | 266 const WebString& name, |
| 268 const WebString& value) = 0; | 267 const WebString& value) = 0; |
| 269 | 268 |
| 270 // Instructs the browser to remove the autofill entry specified from | 269 // Instructs the browser to remove the autofill entry specified from |
| 271 // its DB. | 270 // its DB. |
| 272 virtual void removeAutofillSuggestions(const WebString& name, | 271 virtual void removeAutofillSuggestions(const WebString& name, |
| 273 const WebString& value) = 0; | 272 const WebString& value) = 0; |
| 274 | 273 |
| 275 | 274 protected: |
| 276 // FIXME need to something for: | 275 ~WebViewClient() { } |
| 277 // OnPasswordFormsSeen | |
| 278 // OnAutofillFormSubmitted | |
| 279 // QueryFormFieldAutofill | |
| 280 // RemoveStoredAutofillEntry | |
| 281 // ShowModalHTMLDialog <-- we should be able to kill this | |
| 282 // GetWebDevToolsAgentDelegate | |
| 283 // WasOpenedByUserGesture | |
| 284 }; | 276 }; |
| 285 | 277 |
| 286 } // namespace WebKit | 278 } // namespace WebKit |
| 287 | 279 |
| 288 #endif | 280 #endif |
| OLD | NEW |