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

Unified Diff: content/public/renderer/render_view_observer.h

Issue 222973003: Conversion of content_shell target to use WebLocalFrame. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove some TODOs Created 6 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: content/public/renderer/render_view_observer.h
diff --git a/content/public/renderer/render_view_observer.h b/content/public/renderer/render_view_observer.h
index aed5a2f59d89384569a4e886871a112a8187366a..e0a4ee21bd05925a17ec37dcd461fcd28ba8c340 100644
--- a/content/public/renderer/render_view_observer.h
+++ b/content/public/renderer/render_view_observer.h
@@ -12,6 +12,8 @@
#include "ipc/ipc_sender.h"
#include "third_party/WebKit/public/platform/WebVector.h"
#include "third_party/WebKit/public/web/WebIconURL.h"
+// TODO(dcheng): Temporary. Convert back to a forward declare.
+#include "third_party/WebKit/public/web/WebLocalFrame.h"
class GURL;
@@ -52,37 +54,38 @@ class CONTENT_EXPORT RenderViewObserver : public IPC::Listener,
// These match the WebKit API notifications
virtual void DidStartLoading() {}
virtual void DidStopLoading() {}
- virtual void DidFinishDocumentLoad(blink::WebFrame* frame) {}
- virtual void DidFailLoad(blink::WebFrame* frame,
+ virtual void DidFinishDocumentLoad(blink::WebLocalFrame* frame) {}
+ virtual void DidFailLoad(blink::WebLocalFrame* frame,
const blink::WebURLError& error) {}
- virtual void DidFinishLoad(blink::WebFrame* frame) {}
- virtual void DidStartProvisionalLoad(blink::WebFrame* frame) {}
- virtual void DidFailProvisionalLoad(blink::WebFrame* frame,
+ virtual void DidFinishLoad(blink::WebLocalFrame* frame) {}
+ virtual void DidStartProvisionalLoad(blink::WebLocalFrame* frame) {}
+ virtual void DidFailProvisionalLoad(blink::WebLocalFrame* frame,
const blink::WebURLError& error) {}
- virtual void DidCommitProvisionalLoad(blink::WebFrame* frame,
+ virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame,
bool is_new_navigation) {}
- virtual void DidClearWindowObject(blink::WebFrame* frame, int world_id) {}
- virtual void DidCreateDocumentElement(blink::WebFrame* frame) {}
- virtual void FrameCreated(blink::WebFrame* parent,
+ virtual void DidClearWindowObject(blink::WebLocalFrame* frame, int world_id) {
+ }
+ virtual void DidCreateDocumentElement(blink::WebLocalFrame* frame) {}
+ virtual void FrameCreated(blink::WebLocalFrame* parent,
blink::WebFrame* frame) {}
virtual void FrameDetached(blink::WebFrame* frame) {}
Charlie Reis 2014/04/02 23:34:15 Again, why FrameCreated but not FrameDetached, etc
dcheng 2014/04/02 23:47:08 This is somewhat subtle and just a starting point.
Charlie Reis 2014/04/03 00:37:11 Yeah, guess I stumbled onto a pretty subtle one.
dcheng 2014/04/03 20:39:57 Once we figure it out, we'll document the differen
Charlie Reis 2014/04/03 20:56:31 Ok in this case, but I disagree about skipping com
dcheng 2014/04/03 21:03:25 Right, but currently it's completely unknown. Any
virtual void FrameWillClose(blink::WebFrame* frame) {}
virtual void DidMatchCSS(
- blink::WebFrame* frame,
+ blink::WebLocalFrame* frame,
const blink::WebVector<blink::WebString>& newly_matching_selectors,
const blink::WebVector<blink::WebString>& stopped_matching_selectors) {}
- virtual void WillSendSubmitEvent(blink::WebFrame* frame,
+ virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame,
const blink::WebFormElement& form) {}
- virtual void WillSubmitForm(blink::WebFrame* frame,
+ virtual void WillSubmitForm(blink::WebLocalFrame* frame,
const blink::WebFormElement& form) {}
- virtual void DidCreateDataSource(blink::WebFrame* frame,
+ virtual void DidCreateDataSource(blink::WebLocalFrame* frame,
blink::WebDataSource* ds) {}
- virtual void PrintPage(blink::WebFrame* frame, bool user_initiated) {}
+ virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {}
virtual void FocusedNodeChanged(const blink::WebNode& node) {}
- virtual void WillCreateMediaPlayer(blink::WebFrame* frame,
+ virtual void WillCreateMediaPlayer(blink::WebLocalFrame* frame,
blink::WebMediaPlayerClient* client) {}
virtual void ZoomLevelChanged() {};
- virtual void DidChangeScrollOffset(blink::WebFrame* frame) {}
+ virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {}
virtual void DraggableRegionsChanged(blink::WebFrame* frame) {}
virtual void DidCommitCompositorFrame() {}
virtual void DidUpdateLayout() {}

Powered by Google App Engine
This is Rietveld 408576698