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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 void findMatchRects(WebVector<WebFloatRect>&) override; | 292 void findMatchRects(WebVector<WebFloatRect>&) override; |
292 int selectNearestFindMatch(const WebFloatPoint&, | 293 int selectNearestFindMatch(const WebFloatPoint&, |
293 WebRect* selectionRect) override; | 294 WebRect* selectionRect) override; |
294 float distanceToNearestFindMatch(const WebFloatPoint&) override; | 295 float distanceToNearestFindMatch(const WebFloatPoint&) override; |
295 void setTickmarks(const WebVector<WebRect>&) override; | 296 void setTickmarks(const WebVector<WebRect>&) override; |
296 WebFrameWidgetBase* frameWidget() const override; | 297 WebFrameWidgetBase* frameWidget() const override; |
297 void copyImageAt(const WebPoint&) override; | 298 void copyImageAt(const WebPoint&) override; |
298 void saveImageAt(const WebPoint&) override; | 299 void saveImageAt(const WebPoint&) override; |
299 void clearActiveFindMatch() override; | 300 void clearActiveFindMatch() override; |
300 void usageCountChromeLoadTimes(const WebString& metric) override; | 301 void usageCountChromeLoadTimes(const WebString& metric) override; |
| 302 WebInputMethodControllerImpl* inputMethodController() const override; |
301 | 303 |
302 // WebFrameImplBase methods: | 304 // WebFrameImplBase methods: |
303 void initializeCoreFrame(FrameHost*, | 305 void initializeCoreFrame(FrameHost*, |
304 FrameOwner*, | 306 FrameOwner*, |
305 const AtomicString& name, | 307 const AtomicString& name, |
306 const AtomicString& uniqueName) override; | 308 const AtomicString& uniqueName) override; |
307 LocalFrame* frame() const override { return m_frame.get(); } | 309 LocalFrame* frame() const override { return m_frame.get(); } |
308 | 310 |
309 void willBeDetached(); | 311 void willBeDetached(); |
310 void willDetachParent(); | 312 void willDetachParent(); |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 // DevTools front-end bindings. | 398 // DevTools front-end bindings. |
397 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { | 399 void setDevToolsFrontend(WebDevToolsFrontendImpl* frontend) { |
398 m_webDevToolsFrontend = frontend; | 400 m_webDevToolsFrontend = frontend; |
399 } | 401 } |
400 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } | 402 WebDevToolsFrontendImpl* devToolsFrontend() { return m_webDevToolsFrontend; } |
401 | 403 |
402 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } | 404 WebNode contextMenuNode() const { return m_contextMenuNode.get(); } |
403 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } | 405 void setContextMenuNode(Node* node) { m_contextMenuNode = node; } |
404 void clearContextMenuNode() { m_contextMenuNode.clear(); } | 406 void clearContextMenuNode() { m_contextMenuNode.clear(); } |
405 | 407 |
406 WebInputMethodControllerImpl* inputMethodController() const; | |
407 | 408 |
408 DECLARE_TRACE(); | 409 DECLARE_TRACE(); |
409 | 410 |
410 private: | 411 private: |
411 friend class FrameLoaderClientImpl; | 412 friend class FrameLoaderClientImpl; |
412 | 413 |
413 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); | 414 WebLocalFrameImpl(WebTreeScopeType, WebFrameClient*); |
414 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); | 415 WebLocalFrameImpl(WebRemoteFrame*, WebFrameClient*); |
415 | 416 |
416 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 417 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
479 | 480 |
480 DEFINE_TYPE_CASTS(WebLocalFrameImpl, | 481 DEFINE_TYPE_CASTS(WebLocalFrameImpl, |
481 WebFrame, | 482 WebFrame, |
482 frame, | 483 frame, |
483 frame->isWebLocalFrame(), | 484 frame->isWebLocalFrame(), |
484 frame.isWebLocalFrame()); | 485 frame.isWebLocalFrame()); |
485 | 486 |
486 } // namespace blink | 487 } // namespace blink |
487 | 488 |
488 #endif | 489 #endif |
OLD | NEW |