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

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: Remove unneeded header. 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
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 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 void initializeAsMainFrame(WebCore::Page*); 236 void initializeAsMainFrame(WebCore::Page*);
242 237
243 PassRefPtr<WebCore::LocalFrame> createChildFrame( 238 PassRefPtr<WebCore::LocalFrame> createChildFrame(
244 const WebCore::FrameLoadRequest&, WebCore::HTMLFrameOwnerElement*); 239 const WebCore::FrameLoadRequest&, WebCore::HTMLFrameOwnerElement*);
245 240
246 void didChangeContentsSize(const WebCore::IntSize&); 241 void didChangeContentsSize(const WebCore::IntSize&);
247 242
248 void createFrameView(); 243 void createFrameView();
249 244
250 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame*); 245 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame*);
246 static WebLocalFrameImpl* fromFrame(WebCore::LocalFrame&);
251 static WebLocalFrameImpl* fromFrameOwnerElement(WebCore::Element*); 247 static WebLocalFrameImpl* fromFrameOwnerElement(WebCore::Element*);
252 248
253 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl 249 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl
254 // that hosts the plugin. 250 // that hosts the plugin.
255 static WebPluginContainerImpl* pluginContainerFromFrame(WebCore::LocalFrame* ); 251 static WebPluginContainerImpl* pluginContainerFromFrame(WebCore::LocalFrame* );
256 252
257 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl 253 // If the frame hosts a PluginDocument, this method returns the WebPluginCon tainerImpl
258 // that hosts the plugin. If the provided node is a plugin, then it runs its 254 // that hosts the plugin. If the provided node is a plugin, then it runs its
259 // WebPluginContainerImpl. 255 // WebPluginContainerImpl.
260 static WebPluginContainerImpl* pluginContainerFromNode(WebCore::LocalFrame*, const WebNode&); 256 static WebPluginContainerImpl* pluginContainerFromNode(WebCore::LocalFrame*, const WebNode&);
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 UserMediaClientImpl m_userMediaClientImpl; 355 UserMediaClientImpl m_userMediaClientImpl;
360 356
361 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy; 357 OwnPtr<GeolocationClientProxy> m_geolocationClientProxy;
362 }; 358 };
363 359
364 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); 360 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame());
365 361
366 } // namespace blink 362 } // namespace blink
367 363
368 #endif 364 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698