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

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

Issue 200054: Hook up WebFrameClient, replacing many WebViewDelegate methods.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « chrome/renderer/render_view_unittest.cc ('k') | webkit/api/public/WebFrameClient.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 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 virtual void dispatchWillSendRequest(WebURLRequest&) = 0; 289 virtual void dispatchWillSendRequest(WebURLRequest&) = 0;
290 290
291 // Called from within WebFrameClient::didReceiveDocumentData to commit 291 // Called from within WebFrameClient::didReceiveDocumentData to commit
292 // data for the frame that will be used to construct the frame's 292 // data for the frame that will be used to construct the frame's
293 // document. 293 // document.
294 virtual void commitDocumentData(const char* data, size_t length) = 0; 294 virtual void commitDocumentData(const char* data, size_t length) = 0;
295 295
296 // Returns the number of registered unload listeners. 296 // Returns the number of registered unload listeners.
297 virtual unsigned unloadListenerCount() const = 0; 297 virtual unsigned unloadListenerCount() const = 0;
298 298
299 // Returns true if a user gesture is currently being processed.
300 virtual bool isProcessingUserGesture() const = 0;
301
299 302
300 // Editing ------------------------------------------------------------- 303 // Editing -------------------------------------------------------------
301 304
302 // Replaces the selection with the given text. 305 // Replaces the selection with the given text.
303 virtual void replaceSelection(const WebString& text) = 0; 306 virtual void replaceSelection(const WebString& text) = 0;
304 307
305 virtual void insertText(const WebString& text) = 0; 308 virtual void insertText(const WebString& text) = 0;
306 309
307 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0; 310 virtual void setMarkedText(const WebString& text, unsigned location, unsigned length) = 0;
308 virtual void unmarkText() = 0; 311 virtual void unmarkText() = 0;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
439 // from the DOM. 442 // from the DOM.
440 virtual WebString contentAsMarkup() const = 0; 443 virtual WebString contentAsMarkup() const = 0;
441 444
442 protected: 445 protected:
443 ~WebFrame() { } 446 ~WebFrame() { }
444 }; 447 };
445 448
446 } // namespace WebKit 449 } // namespace WebKit
447 450
448 #endif 451 #endif
OLDNEW
« no previous file with comments | « chrome/renderer/render_view_unittest.cc ('k') | webkit/api/public/WebFrameClient.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698