| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name,
const AtomicString& uniqueName) override; | 258 void initializeCoreFrame(FrameHost*, FrameOwner*, const AtomicString& name,
const AtomicString& uniqueName) override; |
| 259 LocalFrame* frame() const override { return m_frame.get(); } | 259 LocalFrame* frame() const override { return m_frame.get(); } |
| 260 | 260 |
| 261 void willBeDetached(); | 261 void willBeDetached(); |
| 262 void willDetachParent(); | 262 void willDetachParent(); |
| 263 | 263 |
| 264 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame
* opener); | 264 static WebLocalFrameImpl* create(WebTreeScopeType, WebFrameClient*, WebFrame
* opener); |
| 265 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame*
, WebSandboxFlags, const WebFrameOwnerProperties&); | 265 static WebLocalFrameImpl* createProvisional(WebFrameClient*, WebRemoteFrame*
, WebSandboxFlags, const WebFrameOwnerProperties&); |
| 266 ~WebLocalFrameImpl() override; | 266 ~WebLocalFrameImpl() override; |
| 267 | 267 |
| 268 PassRefPtrWillBeRawPtr<LocalFrame> createChildFrame(const FrameLoadRequest&,
const AtomicString& name, HTMLFrameOwnerElement*); | 268 RawPtr<LocalFrame> createChildFrame(const FrameLoadRequest&, const AtomicStr
ing& name, HTMLFrameOwnerElement*); |
| 269 | 269 |
| 270 void didChangeContentsSize(const IntSize&); | 270 void didChangeContentsSize(const IntSize&); |
| 271 | 271 |
| 272 void createFrameView(); | 272 void createFrameView(); |
| 273 | 273 |
| 274 static WebLocalFrameImpl* fromFrame(LocalFrame*); | 274 static WebLocalFrameImpl* fromFrame(LocalFrame*); |
| 275 static WebLocalFrameImpl* fromFrame(LocalFrame&); | 275 static WebLocalFrameImpl* fromFrame(LocalFrame&); |
| 276 static WebLocalFrameImpl* fromFrameOwnerElement(Element*); | 276 static WebLocalFrameImpl* fromFrameOwnerElement(Element*); |
| 277 | 277 |
| 278 // If the frame hosts a PluginDocument, this method returns the WebPluginCon
tainerImpl | 278 // 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... |
| 355 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); | 355 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); |
| 356 | 356 |
| 357 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 357 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 358 // to call these on a WebLocalFrameImpl. | 358 // to call these on a WebLocalFrameImpl. |
| 359 bool isWebLocalFrame() const override; | 359 bool isWebLocalFrame() const override; |
| 360 WebLocalFrame* toWebLocalFrame() override; | 360 WebLocalFrame* toWebLocalFrame() override; |
| 361 bool isWebRemoteFrame() const override; | 361 bool isWebRemoteFrame() const override; |
| 362 WebRemoteFrame* toWebRemoteFrame() override; | 362 WebRemoteFrame* toWebRemoteFrame() override; |
| 363 | 363 |
| 364 // Sets the local core frame and registers destruction observers. | 364 // Sets the local core frame and registers destruction observers. |
| 365 void setCoreFrame(PassRefPtrWillBeRawPtr<LocalFrame>); | 365 void setCoreFrame(RawPtr<LocalFrame>); |
| 366 | 366 |
| 367 void loadJavaScriptURL(const KURL&); | 367 void loadJavaScriptURL(const KURL&); |
| 368 | 368 |
| 369 WebPlugin* focusedPluginIfInputMethodSupported(); | 369 WebPlugin* focusedPluginIfInputMethodSupported(); |
| 370 ScrollableArea* layoutViewportScrollableArea() const; | 370 ScrollableArea* layoutViewportScrollableArea() const; |
| 371 | 371 |
| 372 OwnPtrWillBeMember<FrameLoaderClientImpl> m_frameLoaderClientImpl; | 372 Member<FrameLoaderClientImpl> m_frameLoaderClientImpl; |
| 373 | 373 |
| 374 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This | 374 // The embedder retains a reference to the WebCore LocalFrame while it is ac
tive in the DOM. This |
| 375 // reference is released when the frame is removed from the DOM or the entir
e page is closed. | 375 // reference is released when the frame is removed from the DOM or the entir
e page is closed. |
| 376 // FIXME: These will need to change to WebFrame when we introduce WebFramePr
oxy. | 376 // FIXME: These will need to change to WebFrame when we introduce WebFramePr
oxy. |
| 377 RefPtrWillBeMember<LocalFrame> m_frame; | 377 Member<LocalFrame> m_frame; |
| 378 | 378 |
| 379 OwnPtrWillBeMember<WebDevToolsAgentImpl> m_devToolsAgent; | 379 Member<WebDevToolsAgentImpl> m_devToolsAgent; |
| 380 | 380 |
| 381 // This is set if the frame is the root of a local frame tree, and requires
a widget for layout. | 381 // This is set if the frame is the root of a local frame tree, and requires
a widget for layout. |
| 382 WebFrameWidget* m_frameWidget; | 382 WebFrameWidget* m_frameWidget; |
| 383 | 383 |
| 384 WebFrameClient* m_client; | 384 WebFrameClient* m_client; |
| 385 WebAutofillClient* m_autofillClient; | 385 WebAutofillClient* m_autofillClient; |
| 386 WebContentSettingsClient* m_contentSettingsClient; | 386 WebContentSettingsClient* m_contentSettingsClient; |
| 387 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; | 387 OwnPtr<SharedWorkerRepositoryClientImpl> m_sharedWorkerRepositoryClient; |
| 388 | 388 |
| 389 // Will be initialized after first call to find() or scopeStringMatches(). | 389 // Will be initialized after first call to find() or scopeStringMatches(). |
| 390 OwnPtrWillBeMember<TextFinder> m_textFinder; | 390 Member<TextFinder> m_textFinder; |
| 391 | 391 |
| 392 // Valid between calls to BeginPrint() and EndPrint(). Containts the print | 392 // Valid between calls to BeginPrint() and EndPrint(). Containts the print |
| 393 // information. Is used by PrintPage(). | 393 // information. Is used by PrintPage(). |
| 394 OwnPtrWillBeMember<ChromePrintContext> m_printContext; | 394 Member<ChromePrintContext> m_printContext; |
| 395 | 395 |
| 396 // Stores the additional input events offset and scale when device metrics e
mulation is enabled. | 396 // Stores the additional input events offset and scale when device metrics e
mulation is enabled. |
| 397 IntSize m_inputEventsOffsetForEmulation; | 397 IntSize m_inputEventsOffsetForEmulation; |
| 398 float m_inputEventsScaleFactorForEmulation; | 398 float m_inputEventsScaleFactorForEmulation; |
| 399 | 399 |
| 400 UserMediaClientImpl m_userMediaClientImpl; | 400 UserMediaClientImpl m_userMediaClientImpl; |
| 401 | 401 |
| 402 OwnPtrWillBeMember<GeolocationClientProxy> m_geolocationClientProxy; | 402 Member<GeolocationClientProxy> m_geolocationClientProxy; |
| 403 | 403 |
| 404 WebDevToolsFrontendImpl* m_webDevToolsFrontend; | 404 WebDevToolsFrontendImpl* m_webDevToolsFrontend; |
| 405 | 405 |
| 406 HashMap<AtomicString, OwnPtr<WebTestInterfaceFactory>> m_testInterfaces; | 406 HashMap<AtomicString, OwnPtr<WebTestInterfaceFactory>> m_testInterfaces; |
| 407 | 407 |
| 408 #if ENABLE(OILPAN) | 408 #if ENABLE(OILPAN) |
| 409 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. | 409 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. |
| 410 // Accomplish that by keeping a self-referential Persistent<>. It is | 410 // Accomplish that by keeping a self-referential Persistent<>. It is |
| 411 // cleared upon close(). | 411 // cleared upon close(). |
| 412 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 412 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
| 413 #endif | 413 #endif |
| 414 }; | 414 }; |
| 415 | 415 |
| 416 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); | 416 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(),
frame.isWebLocalFrame()); |
| 417 | 417 |
| 418 } // namespace blink | 418 } // namespace blink |
| 419 | 419 |
| 420 #endif | 420 #endif |
| OLD | NEW |