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

Side by Side Diff: Source/web/WebLocalFrameImpl.h

Issue 338993003: Cleanup various WebView/WebFrame APIs to properly handle remote frames. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Refine comment Created 6 years, 6 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 | « Source/web/WebFrame.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('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 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 virtual void setScrollOffset(const WebSize&) OVERRIDE; 96 virtual void setScrollOffset(const WebSize&) OVERRIDE;
97 virtual WebSize minimumScrollOffset() const OVERRIDE; 97 virtual WebSize minimumScrollOffset() const OVERRIDE;
98 virtual WebSize maximumScrollOffset() const OVERRIDE; 98 virtual WebSize maximumScrollOffset() const OVERRIDE;
99 virtual WebSize contentsSize() const OVERRIDE; 99 virtual WebSize contentsSize() const OVERRIDE;
100 virtual bool hasVisibleContent() const OVERRIDE; 100 virtual bool hasVisibleContent() const OVERRIDE;
101 virtual WebRect visibleContentRect() const OVERRIDE; 101 virtual WebRect visibleContentRect() const OVERRIDE;
102 virtual bool hasHorizontalScrollbar() const OVERRIDE; 102 virtual bool hasHorizontalScrollbar() const OVERRIDE;
103 virtual bool hasVerticalScrollbar() const OVERRIDE; 103 virtual bool hasVerticalScrollbar() const OVERRIDE;
104 virtual WebView* view() const OVERRIDE; 104 virtual WebView* view() const OVERRIDE;
105 virtual void setOpener(WebFrame*) OVERRIDE; 105 virtual void setOpener(WebFrame*) OVERRIDE;
106 virtual void appendChild(WebFrame*) OVERRIDE;
107 virtual void removeChild(WebFrame*) OVERRIDE;
108 virtual WebFrame* traversePrevious(bool wrap) const OVERRIDE;
109 virtual WebFrame* traverseNext(bool wrap) const OVERRIDE;
110 virtual WebFrame* findChildByName(const WebString&) const OVERRIDE;
111 virtual WebDocument document() const OVERRIDE; 106 virtual WebDocument document() const OVERRIDE;
112 virtual WebPerformance performance() const OVERRIDE; 107 virtual WebPerformance performance() const OVERRIDE;
113 virtual bool dispatchBeforeUnloadEvent() OVERRIDE; 108 virtual bool dispatchBeforeUnloadEvent() OVERRIDE;
114 virtual void dispatchUnloadEvent() OVERRIDE; 109 virtual void dispatchUnloadEvent() OVERRIDE;
115 virtual NPObject* windowObject() const OVERRIDE; 110 virtual NPObject* windowObject() const OVERRIDE;
116 virtual void bindToWindowObject(const WebString& name, NPObject*) OVERRIDE; 111 virtual void bindToWindowObject(const WebString& name, NPObject*) OVERRIDE;
117 virtual void bindToWindowObject(const WebString& name, NPObject*, void*) OVE RRIDE; 112 virtual void bindToWindowObject(const WebString& name, NPObject*, void*) OVE RRIDE;
118 virtual void executeScript(const WebScriptSource&) OVERRIDE; 113 virtual void executeScript(const WebScriptSource&) OVERRIDE;
119 virtual void executeScriptInIsolatedWorld( 114 virtual void executeScriptInIsolatedWorld(
120 int worldID, const WebScriptSource* sources, unsigned numSources, 115 int worldID, const WebScriptSource* sources, unsigned numSources,
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
243 void initializeAsMainFrame(WebCore::Page*); 238 void initializeAsMainFrame(WebCore::Page*);
244 239
245 PassRefPtr<WebCore::LocalFrame> createChildFrame( 240 PassRefPtr<WebCore::LocalFrame> createChildFrame(
246 const WebCore::FrameLoadRequest&, WebCore::HTMLFrameOwnerElement*); 241 const WebCore::FrameLoadRequest&, WebCore::HTMLFrameOwnerElement*);
247 242
248 void didChangeContentsSize(const WebCore::IntSize&); 243 void didChangeContentsSize(const WebCore::IntSize&);
249 244
250 void createFrameView(); 245 void createFrameView();
251 246
252 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame*); 247 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame*);
248 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame&);
253 static WebLocalFrameImpl* fromFrameOwnerElement(WebCore::Element*); 249 static WebLocalFrameImpl* fromFrameOwnerElement(WebCore::Element*);
254 250
255 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl 251 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl
256 // that hosts the plugin. 252 // that hosts the plugin.
257 static WebPluginContainerImpl* pluginContainerFromFrame(WebCore::LocalFrame* ); 253 static WebPluginContainerImpl* pluginContainerFromFrame(WebCore::LocalFrame* );
258 254
259 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl 255 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl
260 // that hosts the plugin. If the provided node is a plugin, then it runs its 256 // that hosts the plugin. If the provided node is a plugin, then it runs its
261 // WebPluginContainerImpl. 257 // WebPluginContainerImpl.
262 static WebPluginContainerImpl* pluginContainerFromNode(WebCore::LocalFrame*, const WebNode&); 258 static WebPluginContainerImpl* pluginContainerFromNode(WebCore::LocalFrame*, const WebNode&);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
361 UserMediaClientImpl m_userMediaClientImpl; 357 UserMediaClientImpl m_userMediaClientImpl;
362 358
363 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; 359 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy;
364 }; 360 };
365 361
366 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 362 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
367 363
368 } // namespace blink 364 } // namespace blink
369 365
370 #endif 366 #endif
OLDNEW
« no previous file with comments | « Source/web/WebFrame.cpp ('k') | Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698