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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 class ScrollableArea; | 55 class ScrollableArea; |
56 class SharedWorkerRepositoryClientImpl; | 56 class SharedWorkerRepositoryClientImpl; |
57 class TextFinder; | 57 class TextFinder; |
58 class WebAssociatedURLLoader; | 58 class WebAssociatedURLLoader; |
59 struct WebAssociatedURLLoaderOptions; | 59 struct WebAssociatedURLLoaderOptions; |
60 class WebAutofillClient; | 60 class WebAutofillClient; |
61 class WebDataSourceImpl; | 61 class WebDataSourceImpl; |
62 class WebDevToolsAgentImpl; | 62 class WebDevToolsAgentImpl; |
63 class WebDevToolsFrontendImpl; | 63 class WebDevToolsFrontendImpl; |
64 class WebFrameClient; | 64 class WebFrameClient; |
| 65 class WebInputMethodControllerImpl; |
65 class WebNode; | 66 class WebNode; |
66 class WebPerformance; | 67 class WebPerformance; |
67 class WebPlugin; | 68 class WebPlugin; |
68 class WebPluginContainerImpl; | 69 class WebPluginContainerImpl; |
69 class WebScriptExecutionCallback; | 70 class WebScriptExecutionCallback; |
70 class WebSuspendableTask; | 71 class WebSuspendableTask; |
71 class WebView; | 72 class WebView; |
72 class WebViewImpl; | 73 class WebViewImpl; |
73 enum class WebFrameLoadType; | 74 enum class WebFrameLoadType; |
74 struct FrameLoadRequest; | 75 struct FrameLoadRequest; |
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 // DevTools front-end bindings. | 398 // DevTools front-end bindings. |
398 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { | 399 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { |
399 m_webDevToolsFrontend = frontend; | 400 m_webDevToolsFrontend = frontend; |
400 } | 401 } |
401 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } | 402 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } |
402 | 403 |
403 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } | 404 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } |
404 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } | 405 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } |
405 void clearContextMenuNode() { m_contextMenuNode.clear(); } | 406 void clearContextMenuNode() { m_contextMenuNode.clear(); } |
406 | 407 |
| 408 WebInputMethodControllerImpl* inputMethodController() const; |
| 409 |
407 DECLARE_TRACE(); | 410 DECLARE_TRACE(); |
408 | 411 |
409 private: | 412 private: |
410 friend class FrameLoaderClientImpl; | 413 friend class FrameLoaderClientImpl; |
411 | 414 |
412 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); | 415 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); |
413 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); | 416 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); |
414 | 417 |
415 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 418 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
416 // to call these on a WebLocalFrameImpl. | 419 // to call these on a WebLocalFrameImpl. |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
461 | 464 |
462 // Stores the additional input events offset and scale when device metrics | 465 // Stores the additional input events offset and scale when device metrics |
463 // emulation is enabled. | 466 // emulation is enabled. |
464 IntSize m_inputEventsOffsetForEmulation; | 467 IntSize m_inputEventsOffsetForEmulation; |
465 float m_inputEventsScaleFactorForEmulation; | 468 float m_inputEventsScaleFactorForEmulation; |
466 | 469 |
467 WebDevToolsFrontendImpl* m_webDevToolsFrontend; | 470 WebDevToolsFrontendImpl* m_webDevToolsFrontend; |
468 | 471 |
469 Member<Node> m_contextMenuNode; | 472 Member<Node> m_contextMenuNode; |
470 | 473 |
| 474 std::unique_ptr<WebInputMethodControllerImpl> m_inputMethodController; |
| 475 |
471 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. | 476 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. |
472 // Accomplish that by keeping a self-referential Persistent<>. It is | 477 // Accomplish that by keeping a self-referential Persistent<>. It is |
473 // cleared upon close(). | 478 // cleared upon close(). |
474 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 479 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
475 }; | 480 }; |
476 | 481 |
477 DEFINE_TYPE_CASTS(WebLocalFrameImpl, | 482 DEFINE_TYPE_CASTS(WebLocalFrameImpl, |
478 WebFrame, | 483 WebFrame, |
479 frame, | 484 frame, |
480 frame->isWebLocalFrame(), | 485 frame->isWebLocalFrame(), |
481 frame.isWebLocalFrame()); | 486 frame.isWebLocalFrame()); |
482 | 487 |
483 } // namespace blink | 488 } // namespace blink |
484 | 489 |
485 #endif | 490 #endif |
OLD | NEW |