Chromium Code Reviews| 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 24 matching lines...) Expand all Loading... | |
| 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/SelfKeepAlive.h" | 37 #include "platform/heap/SelfKeepAlive.h" |
| 38 #include "public/platform/WebFileSystemType.h" | 38 #include "public/platform/WebFileSystemType.h" |
| 39 #include "public/web/WebLocalFrame.h" | 39 #include "public/web/WebLocalFrame.h" |
| 40 #include "web/FrameLoaderClientImpl.h" | 40 #include "web/FrameLoaderClientImpl.h" |
| 41 #include "web/UserMediaClientImpl.h" | 41 #include "web/UserMediaClientImpl.h" |
| 42 #include "web/WebExport.h" | 42 #include "web/WebExport.h" |
| 43 #include "web/WebFrameImplBase.h" | 43 #include "web/WebFrameImplBase.h" |
| 44 #include "web/WebFrameWidgetBase.h" | 44 #include "web/WebFrameWidgetBase.h" |
| 45 #include "web/WebInputMethodControllerImpl.h" | |
| 45 #include "wtf/Compiler.h" | 46 #include "wtf/Compiler.h" |
| 46 #include "wtf/text/WTFString.h" | 47 #include "wtf/text/WTFString.h" |
| 47 #include <memory> | 48 #include <memory> |
| 48 | 49 |
| 49 namespace blink { | 50 namespace blink { |
| 50 | 51 |
| 51 class ChromePrintContext; | 52 class ChromePrintContext; |
| 52 class IntSize; | 53 class IntSize; |
| 53 class KURL; | 54 class KURL; |
| 54 class Range; | 55 class Range; |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 321 void setFrameWidget(WebFrameWidgetBase*); | 322 void setFrameWidget(WebFrameWidgetBase*); |
| 322 | 323 |
| 323 // DevTools front-end bindings. | 324 // DevTools front-end bindings. |
| 324 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { m_webDevToolsF rontend = frontend; } | 325 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { m_webDevToolsF rontend = frontend; } |
| 325 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } | 326 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } |
| 326 | 327 |
| 327 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } | 328 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } |
| 328 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } | 329 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } |
| 329 void clearContextMenuNode() { m_contextMenuNode.clear(); } | 330 void clearContextMenuNode() { m_contextMenuNode.clear(); } |
| 330 | 331 |
| 332 WebInputMethodControllerImpl* inputMethodController(); | |
|
lfg
2016/09/14 19:20:26
const
EhsanK
2016/09/16 15:06:28
Done.
| |
| 333 | |
| 331 DECLARE_TRACE(); | 334 DECLARE_TRACE(); |
| 332 | 335 |
| 333 private: | 336 private: |
| 334 friend class FrameLoaderClientImpl; | 337 friend class FrameLoaderClientImpl; |
| 335 | 338 |
| 336 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); | 339 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); |
| 337 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); | 340 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); |
| 338 | 341 |
| 339 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 342 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
| 340 // to call these on a WebLocalFrameImpl. | 343 // to call these on a WebLocalFrameImpl. |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 381 Member<ChromePrintContext> m_printContext; | 384 Member<ChromePrintContext> m_printContext; |
| 382 | 385 |
| 383 // Stores the additional input events offset and scale when device metrics e mulation is enabled. | 386 // Stores the additional input events offset and scale when device metrics e mulation is enabled. |
| 384 IntSize m_inputEventsOffsetForEmulation; | 387 IntSize m_inputEventsOffsetForEmulation; |
| 385 float m_inputEventsScaleFactorForEmulation; | 388 float m_inputEventsScaleFactorForEmulation; |
| 386 | 389 |
| 387 WebDevToolsFrontendImpl* m_webDevToolsFrontend; | 390 WebDevToolsFrontendImpl* m_webDevToolsFrontend; |
| 388 | 391 |
| 389 Member<Node> m_contextMenuNode; | 392 Member<Node> m_contextMenuNode; |
| 390 | 393 |
| 394 std::unique_ptr<WebInputMethodControllerImpl> m_inputMethodController; | |
| 395 | |
| 391 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. | 396 // Oilpan: WebLocalFrameImpl must remain alive until close() is called. |
| 392 // Accomplish that by keeping a self-referential Persistent<>. It is | 397 // Accomplish that by keeping a self-referential Persistent<>. It is |
| 393 // cleared upon close(). | 398 // cleared upon close(). |
| 394 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; | 399 SelfKeepAlive<WebLocalFrameImpl> m_selfKeepAlive; |
| 395 }; | 400 }; |
| 396 | 401 |
| 397 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); | 402 DEFINE_TYPE_CASTS(WebLocalFrameImpl, WebFrame, frame, frame->isWebLocalFrame(), frame.isWebLocalFrame()); |
| 398 | 403 |
| 399 } // namespace blink | 404 } // namespace blink |
| 400 | 405 |
| 401 #endif | 406 #endif |
| OLD | NEW |