| 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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name,
const AtomicString& uniqueName) override; | 255 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name,
const AtomicString& uniqueName) override; |
| 256 LocalFrame* frame() const override { return m_frame.get(); } | 256 LocalFrame* frame() const override { return m_frame.get(); } |
| 257 | 257 |
| 258 void willBeDetached(); | 258 void willBeDetached(); |
| 259 void willDetachParent(); | 259 void willDetachParent(); |
| 260 | 260 |
| 261 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame
* opener); | 261 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame
* opener); |
| 262 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame*
, WebSandboxFlags, const WebFrameOwnerProperties&); | 262 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame*
, WebSandboxFlags, const WebFrameOwnerProperties&); |
| 263 ~WebLocalFrameImpl() override; | 263 ~WebLocalFrameImpl() override; |
| 264 | 264 |
| 265 RawPtr<LocalFrame> createChildFrame(const FrameLoadRequest&, const AtomicStr
ing& name, HTMLFrameOwnerElement*); | 265 LocalFrame* createChildFrame(const FrameLoadRequest&, const AtomicString& na
me, HTMLFrameOwnerElement*); |
| 266 | 266 |
| 267 void didChangeContentsSize(const IntSize&); | 267 void didChangeContentsSize(const IntSize&); |
| 268 | 268 |
| 269 void createFrameView(); | 269 void createFrameView(); |
| 270 | 270 |
| 271 static WebLocalFrameImpl* fromFrame(LocalFrame*); | 271 static WebLocalFrameImpl* fromFrame(LocalFrame*); |
| 272 static WebLocalFrameImpl* fromFrame(LocalFrame&); | 272 static WebLocalFrameImpl* fromFrame(LocalFrame&); |
| 273 static WebLocalFrameImpl* fromFrameOwnerElement(Element*); | 273 static WebLocalFrameImpl* fromFrameOwnerElement(Element*); |
| 274 | 274 |
| 275 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl | 275 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 352 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); | 352 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); |
| 353 | 353 |
| 354 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 354 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 355 // to call these on a WebLocalFrameImpl. | 355 // to call these on a WebLocalFrameImpl. |
| 356 bool isWebLocalFrame() const override; | 356 bool isWebLocalFrame() const override; |
| 357 WebLocalFrame* toWebLocalFrame() override; | 357 WebLocalFrame* toWebLocalFrame() override; |
| 358 bool isWebRemoteFrame() const override; | 358 bool isWebRemoteFrame() const override; |
| 359 WebRemoteFrame* toWebRemoteFrame() override; | 359 WebRemoteFrame* toWebRemoteFrame() override; |
| 360 | 360 |
| 361 // Sets the local core frame and registers destruction observers. | 361 // Sets the local core frame and registers destruction observers. |
| 362 void setCoreFrame(RawPtr<LocalFrame>); | 362 void setCoreFrame(LocalFrame*); |
| 363 | 363 |
| 364 void loadJavaScriptURL(const KURL&); | 364 void loadJavaScriptURL(const KURL&); |
| 365 | 365 |
| 366 WebPlugin* focusedPluginIfInputMethodSupported(); | 366 WebPlugin* focusedPluginIfInputMethodSupported(); |
| 367 ScrollableArea* layoutViewportScrollableArea() const; | 367 ScrollableArea* layoutViewportScrollableArea() const; |
| 368 | 368 |
| 369 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl; | 369 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl; |
| 370 | 370 |
| 371 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This | 371 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This |
| 372 // reference is released when the frame is removed from the DOM or the entir
e page is closed. | 372 // reference is released when the frame is removed from the DOM or the entir
e page is closed. |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 408 // cleared upon close(). | 408 // cleared upon close(). |
| 409 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 409 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
| 410 #endif | 410 #endif |
| 411 }; | 411 }; |
| 412 | 412 |
| 413 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 413 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 414 | 414 |
| 415 } // namespace blink | 415 } // namespace blink |
| 416 | 416 |
| 417 #endif | 417 #endif |
| OLD | NEW |