| 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 16 matching lines...) Expand all Loading... |
| 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
| 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 29 */ | 29 */ |
| 30 | 30 |
| 31 #ifndef WebLocalFrameImpl_h | 31 #ifndef WebLocalFrameImpl_h |
| 32 #define WebLocalFrameImpl_h | 32 #define WebLocalFrameImpl_h |
| 33 | 33 |
| 34 #include "core/editing/VisiblePosition.h" | 34 #include "core/editing/VisiblePosition.h" |
| 35 #include "core/frame/LocalFrame.h" | 35 #include "core/frame/LocalFrame.h" |
| 36 #include "platform/geometry/FloatRect.h" | 36 #include "platform/geometry/FloatRect.h" |
| 37 #include "platform/heap/HeapAllocator.h" |
| 37 #include "platform/heap/SelfKeepAlive.h" | 38 #include "platform/heap/SelfKeepAlive.h" |
| 38 #include "public/platform/WebFileSystemType.h" | 39 #include "public/platform/WebFileSystemType.h" |
| 39 #include "public/web/WebLocalFrame.h" | 40 #include "public/web/WebLocalFrame.h" |
| 40 #include "web/FrameLoaderClientImpl.h" | 41 #include "web/FrameLoaderClientImpl.h" |
| 41 #include "web/UserMediaClientImpl.h" | 42 #include "web/UserMediaClientImpl.h" |
| 42 #include "web/WebExport.h" | 43 #include "web/WebExport.h" |
| 43 #include "web/WebFrameImplBase.h" | 44 #include "web/WebFrameImplBase.h" |
| 44 #include "web/WebFrameWidgetBase.h" | 45 #include "web/WebFrameWidgetBase.h" |
| 45 #include "web/WebInputMethodControllerImpl.h" | 46 #include "web/WebInputMethodControllerImpl.h" |
| 46 #include "wtf/Compiler.h" | 47 #include "wtf/Compiler.h" |
| 47 #include "wtf/text/WTFString.h" | 48 #include "wtf/text/WTFString.h" |
| 49 |
| 48 #include <memory> | 50 #include <memory> |
| 49 | 51 |
| 50 namespace blink { | 52 namespace blink { |
| 51 | 53 |
| 52 class ChromePrintContext; | 54 class ChromePrintContext; |
| 55 class HTMLPlugInElement; |
| 53 class IntSize; | 56 class IntSize; |
| 54 class KURL; | 57 class KURL; |
| 58 class PluginClient; |
| 55 class ScrollableArea; | 59 class ScrollableArea; |
| 56 class SharedWorkerRepositoryClientImpl; | 60 class SharedWorkerRepositoryClientImpl; |
| 57 class TextFinder; | 61 class TextFinder; |
| 58 class WebAssociatedURLLoader; | 62 class WebAssociatedURLLoader; |
| 59 struct WebAssociatedURLLoaderOptions; | 63 struct WebAssociatedURLLoaderOptions; |
| 60 class WebAutofillClient; | 64 class WebAutofillClient; |
| 61 class WebDataSourceImpl; | 65 class WebDataSourceImpl; |
| 62 class WebDevToolsAgentImpl; | 66 class WebDevToolsAgentImpl; |
| 63 class WebDevToolsFrontendImpl; | 67 class WebDevToolsFrontendImpl; |
| 64 class WebFrameClient; | 68 class WebFrameClient; |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 398 TextFinder* textFinder() const; | 402 TextFinder* textFinder() const; |
| 399 // Returns the text finder object if it already exists. | 403 // Returns the text finder object if it already exists. |
| 400 // Otherwise creates it and then returns. | 404 // Otherwise creates it and then returns. |
| 401 TextFinder& ensureTextFinder(); | 405 TextFinder& ensureTextFinder(); |
| 402 | 406 |
| 403 // Returns a hit-tested VisiblePosition for the given point | 407 // Returns a hit-tested VisiblePosition for the given point |
| 404 VisiblePosition visiblePositionForViewportPoint(const WebPoint&); | 408 VisiblePosition visiblePositionForViewportPoint(const WebPoint&); |
| 405 | 409 |
| 406 void setFrameWidget(WebFrameWidgetBase*); | 410 void setFrameWidget(WebFrameWidgetBase*); |
| 407 | 411 |
| 412 PluginClient* createMimeHandlerView(HTMLPlugInElement*, |
| 413 const WebURL&, |
| 414 const WebString&); |
| 415 |
| 408 // DevTools front-end bindings. | 416 // DevTools front-end bindings. |
| 409 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { | 417 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { |
| 410 m_webDevToolsFrontend = frontend; | 418 m_webDevToolsFrontend = frontend; |
| 411 } | 419 } |
| 412 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } | 420 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } |
| 413 | 421 |
| 414 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } | 422 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } |
| 415 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } | 423 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } |
| 416 void clearContextMenuNode() { m_contextMenuNode.clear(); } | 424 void clearContextMenuNode() { m_contextMenuNode.clear(); } |
| 417 | 425 |
| 418 | |
| 419 DECLARE_TRACE(); | 426 DECLARE_TRACE(); |
| 420 | 427 |
| 421 private: | 428 private: |
| 422 friend class FrameLoaderClientImpl; | 429 friend class FrameLoaderClientImpl; |
| 423 | 430 |
| 424 WebLocalFrameImpl(WebTreeScopeType, | 431 WebLocalFrameImpl(WebTreeScopeType, |
| 425 WebFrameClient*, | 432 WebFrameClient*, |
| 426 blink::InterfaceProvider*, | 433 blink::InterfaceProvider*, |
| 427 blink::InterfaceRegistry*); | 434 blink::InterfaceRegistry*); |
| 428 WebLocalFrameImpl(WebRemoteFrame*, | 435 WebLocalFrameImpl(WebRemoteFrame*, |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 500 | 507 |
| 501 DEFINE_TYPE_CASTS(WebLocalFrameImpl, | 508 DEFINE_TYPE_CASTS(WebLocalFrameImpl, |
| 502 WebFrame, | 509 WebFrame, |
| 503 frame, | 510 frame, |
| 504 frame->isWebLocalFrame(), | 511 frame->isWebLocalFrame(), |
| 505 frame.isWebLocalFrame()); | 512 frame.isWebLocalFrame()); |
| 506 | 513 |
| 507 } // namespace blink | 514 } // namespace blink |
| 508 | 515 |
| 509 #endif | 516 #endif |
| OLD | NEW |