Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(208)

Side by Side Diff: webkit/api/public/WebViewClient.h

Issue 287009: Move WebDevToolsAgent{Delegate} into the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/api/public/WebView.h ('k') | webkit/glue/devtools/debugger_agent_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 17 matching lines...) Expand all
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
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 "WebWidgetClient.h" 39 #include "WebWidgetClient.h"
39 40
40 class WebView; // FIXME: Move into the WebKit namespace. 41 class WebView; // FIXME: Move into the WebKit namespace.
41 42
42 namespace WebKit { 43 namespace WebKit {
43 class WebAccessibilityObject; 44 class WebAccessibilityObject;
45 class WebDevToolsAgentClient;
44 class WebDragData; 46 class WebDragData;
45 class WebFileChooserCompletion; 47 class WebFileChooserCompletion;
46 class WebFrame; 48 class WebFrame;
47 class WebNode; 49 class WebNode;
48 class WebNotificationPresenter; 50 class WebNotificationPresenter;
49 class WebRange; 51 class WebRange;
50 class WebString; 52 class WebString;
53 class WebURL;
51 class WebWidget; 54 class WebWidget;
52 struct WebConsoleMessage; 55 struct WebConsoleMessage;
53 struct WebContextMenuData; 56 struct WebContextMenuData;
54 struct WebPoint; 57 struct WebPoint;
55 struct WebPopupMenuInfo; 58 struct WebPopupMenuInfo;
56 59
57 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient. 60 // Since a WebView is a WebWidget, a WebViewClient is a WebWidgetClient.
58 // Virtual inheritance allows an implementation of WebWidgetClient to be 61 // Virtual inheritance allows an implementation of WebWidgetClient to be
59 // easily reused as part of an implementation of WebViewClient. 62 // easily reused as part of an implementation of WebViewClient.
60 class WebViewClient : virtual public WebWidgetClient { 63 class WebViewClient : virtual public WebWidgetClient {
(...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
238 // Called to notify the embedder when a new history item is added. 241 // Called to notify the embedder when a new history item is added.
239 virtual void didAddHistoryItem() = 0; 242 virtual void didAddHistoryItem() = 0;
240 243
241 244
242 // Accessibility ------------------------------------------------------- 245 // Accessibility -------------------------------------------------------
243 246
244 // Notifies embedder that the focus has changed to the given 247 // Notifies embedder that the focus has changed to the given
245 // accessibility object. 248 // accessibility object.
246 virtual void focusAccessibilityObject(const WebAccessibilityObject&) = 0; 249 virtual void focusAccessibilityObject(const WebAccessibilityObject&) = 0;
247 250
251
248 // Developer tools ----------------------------------------------------- 252 // Developer tools -----------------------------------------------------
249 253
250 // Called to notify the client that the inspector's settings were 254 // Called to notify the client that the inspector's settings were
251 // changed and should be saved. See WebView::inspectorSettings. 255 // changed and should be saved. See WebView::inspectorSettings.
252 virtual void didUpdateInspectorSettings() = 0; 256 virtual void didUpdateInspectorSettings() = 0;
253 257
258 virtual WebDevToolsAgentClient* devToolsAgentClient() = 0;
259
254 260
255 // Autofill ------------------------------------------------------------ 261 // Autofill ------------------------------------------------------------
256 262
257 // Queries the browser for suggestions to be shown for the form text 263 // Queries the browser for suggestions to be shown for the form text
258 // field named |name|. |value| is the text entered by the user so 264 // field named |name|. |value| is the text entered by the user so
259 // far and the WebNode corresponds to the input field. 265 // far and the WebNode corresponds to the input field.
260 virtual void queryAutofillSuggestions(const WebNode&, 266 virtual void queryAutofillSuggestions(const WebNode&,
261 const WebString& name, 267 const WebString& name,
262 const WebString& value) = 0; 268 const WebString& value) = 0;
263 269
264 // Instructs the browser to remove the autofill entry specified from 270 // Instructs the browser to remove the autofill entry specified from
265 // its DB. 271 // its DB.
266 virtual void removeAutofillSuggestions(const WebString& name, 272 virtual void removeAutofillSuggestions(const WebString& name,
267 const WebString& value) = 0; 273 const WebString& value) = 0;
268 274
269 275
270 // FIXME need to something for: 276 // FIXME need to something for:
271 // OnPasswordFormsSeen 277 // OnPasswordFormsSeen
272 // OnAutofillFormSubmitted 278 // OnAutofillFormSubmitted
273 // QueryFormFieldAutofill 279 // QueryFormFieldAutofill
274 // RemoveStoredAutofillEntry 280 // RemoveStoredAutofillEntry
275 // ShowModalHTMLDialog <-- we should be able to kill this 281 // ShowModalHTMLDialog <-- we should be able to kill this
276 // GetWebDevToolsAgentDelegate 282 // GetWebDevToolsAgentDelegate
277 // WasOpenedByUserGesture 283 // WasOpenedByUserGesture
278 }; 284 };
279 285
280 } // namespace WebKit 286 } // namespace WebKit
281 287
282 #endif 288 #endif
OLDNEW
« no previous file with comments | « webkit/api/public/WebView.h ('k') | webkit/glue/devtools/debugger_agent_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698