| 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 FrameOwner*, | 303 FrameOwner*, |
| 304 const AtomicString& name, | 304 const AtomicString& name, |
| 305 const AtomicString& uniqueName) override; | 305 const AtomicString& uniqueName) override; |
| 306 LocalFrame* frame() const override { return m_frame.get(); } | 306 LocalFrame* frame() const override { return m_frame.get(); } |
| 307 | 307 |
| 308 void willBeDetached(); | 308 void willBeDetached(); |
| 309 void willDetachParent(); | 309 void willDetachParent(); |
| 310 | 310 |
| 311 static WebLocalFrameImpl* create(WebTreeScopeType, | 311 static WebLocalFrameImpl* create(WebTreeScopeType, |
| 312 WebFrameClient*, | 312 WebFrameClient*, |
| 313 blink::InterfaceProvider*, |
| 314 blink::InterfaceRegistry*, |
| 313 WebFrame* opener); | 315 WebFrame* opener); |
| 314 static WebLocalFrameImpl* createProvisional(WebFrameClient*, | 316 static WebLocalFrameImpl* createProvisional(WebFrameClient*, |
| 317 blink::InterfaceProvider*, |
| 318 blink::InterfaceRegistry*, |
| 315 WebRemoteFrame*, | 319 WebRemoteFrame*, |
| 316 WebSandboxFlags); | 320 WebSandboxFlags); |
| 317 ~WebLocalFrameImpl() override; | 321 ~WebLocalFrameImpl() override; |
| 318 | 322 |
| 319 LocalFrame* createChildFrame(const FrameLoadRequest&, | 323 LocalFrame* createChildFrame(const FrameLoadRequest&, |
| 320 const AtomicString& name, | 324 const AtomicString& name, |
| 321 HTMLFrameOwnerElement*); | 325 HTMLFrameOwnerElement*); |
| 322 | 326 |
| 323 void didChangeContentsSize(const IntSize&); | 327 void didChangeContentsSize(const IntSize&); |
| 324 | 328 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } | 405 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } |
| 402 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } | 406 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } |
| 403 void clearContextMenuNode() { m_contextMenuNode.clear(); } | 407 void clearContextMenuNode() { m_contextMenuNode.clear(); } |
| 404 | 408 |
| 405 | 409 |
| 406 DECLARE_TRACE(); | 410 DECLARE_TRACE(); |
| 407 | 411 |
| 408 private: | 412 private: |
| 409 friend class FrameLoaderClientImpl; | 413 friend class FrameLoaderClientImpl; |
| 410 | 414 |
| 411 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); | 415 WebLocalFrameImpl(WebTreeScopeType, |
| 412 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); | 416 WebFrameClient*, |
| 417 blink::InterfaceProvider*, |
| 418 blink::InterfaceRegistry*); |
| 419 WebLocalFrameImpl(WebRemoteFrame*, |
| 420 WebFrameClient*, |
| 421 blink::InterfaceProvider*, |
| 422 blink::InterfaceRegistry*); |
| 413 | 423 |
| 414 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 424 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 415 // to call these on a WebLocalFrameImpl. | 425 // to call these on a WebLocalFrameImpl. |
| 416 bool isWebLocalFrame() const override; | 426 bool isWebLocalFrame() const override; |
| 417 WebLocalFrame* toWebLocalFrame() override; | 427 WebLocalFrame* toWebLocalFrame() override; |
| 418 bool isWebRemoteFrame() const override; | 428 bool isWebRemoteFrame() const override; |
| 419 WebRemoteFrame* toWebRemoteFrame() override; | 429 WebRemoteFrame* toWebRemoteFrame() override; |
| 420 | 430 |
| 421 // Sets the local core frame and registers destruction observers. | 431 // Sets the local core frame and registers destruction observers. |
| 422 void setCoreFrame(LocalFrame*); | 432 void setCoreFrame(LocalFrame*); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 456 | 466 |
| 457 // Valid between calls to BeginPrint() and EndPrint(). Containts the print | 467 // Valid between calls to BeginPrint() and EndPrint(). Containts the print |
| 458 // information. Is used by PrintPage(). | 468 // information. Is used by PrintPage(). |
| 459 Member<ChromePrintContext> m_printContext; | 469 Member<ChromePrintContext> m_printContext; |
| 460 | 470 |
| 461 // Stores the additional input events offset and scale when device metrics | 471 // Stores the additional input events offset and scale when device metrics |
| 462 // emulation is enabled. | 472 // emulation is enabled. |
| 463 IntSize m_inputEventsOffsetForEmulation; | 473 IntSize m_inputEventsOffsetForEmulation; |
| 464 float m_inputEventsScaleFactorForEmulation; | 474 float m_inputEventsScaleFactorForEmulation; |
| 465 | 475 |
| 476 // Borrowed pointers to Mojo objects. |
| 477 blink::InterfaceProvider* m_interfaceProvider; |
| 478 blink::InterfaceRegistry* m_interfaceRegistry; |
| 479 |
| 466 WebDevToolsFrontendImpl* m_webDevToolsFrontend; | 480 WebDevToolsFrontendImpl* m_webDevToolsFrontend; |
| 467 | 481 |
| 468 Member<Node> m_contextMenuNode; | 482 Member<Node> m_contextMenuNode; |
| 469 | 483 |
| 470 std::unique_ptr<WebInputMethodControllerImpl> m_inputMethodController; | 484 std::unique_ptr<WebInputMethodControllerImpl> m_inputMethodController; |
| 471 | 485 |
| 472 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. | 486 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. |
| 473 // Accomplish that by keeping a self-referential Persistent<>. It is | 487 // Accomplish that by keeping a self-referential Persistent<>. It is |
| 474 // cleared upon close(). | 488 // cleared upon close(). |
| 475 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 489 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
| 476 }; | 490 }; |
| 477 | 491 |
| 478 DEFINE_TYPE_CASTS(WebLocalFrameImpl, | 492 DEFINE_TYPE_CASTS(WebLocalFrameImpl, |
| 479 WebFrame, | 493 WebFrame, |
| 480 frame, | 494 frame, |
| 481 frame->isWebLocalFrame(), | 495 frame->isWebLocalFrame(), |
| 482 frame.isWebLocalFrame()); | 496 frame.isWebLocalFrame()); |
| 483 | 497 |
| 484 } // namespace blink | 498 } // namespace blink |
| 485 | 499 |
| 486 #endif | 500 #endif |
| OLD | NEW |