| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |