OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef WebLocalFrame_h | 5 #ifndef WebLocalFrame_h |
6 #define WebLocalFrame_h | 6 #define WebLocalFrame_h |
7 | 7 |
8 #include "WebCompositionUnderline.h" | 8 #include "WebCompositionUnderline.h" |
9 #include "WebFrame.h" | 9 #include "WebFrame.h" |
10 #include "WebFrameLoadType.h" | 10 #include "WebFrameLoadType.h" |
11 #include "WebHistoryItem.h" | 11 #include "WebHistoryItem.h" |
12 #include "public/platform/WebCachePolicy.h" | 12 #include "public/platform/WebCachePolicy.h" |
13 #include "public/platform/WebURLError.h" | 13 #include "public/platform/WebURLError.h" |
14 #include "public/platform/site_engagement.mojom-shared.h" | 14 #include "public/platform/site_engagement.mojom-shared.h" |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class SingleThreadTaskRunner; | 17 class SingleThreadTaskRunner; |
18 } | 18 } |
19 | 19 |
20 namespace blink { | 20 namespace blink { |
21 | 21 |
22 class WebAutofillClient; | 22 class WebAutofillClient; |
23 class WebContentSettingsClient; | 23 class WebContentSettingsClient; |
24 class WebDevToolsAgent; | 24 class WebDevToolsAgent; |
25 class WebDevToolsAgentClient; | 25 class WebDevToolsAgentClient; |
26 class WebDoubleSize; | 26 class WebDoubleSize; |
27 class WebFrameClient; | 27 class WebFrameClient; |
28 class WebFrameWidget; | 28 class WebFrameWidget; |
| 29 class WebInputMethodController; |
29 class WebRange; | 30 class WebRange; |
30 class WebScriptExecutionCallback; | 31 class WebScriptExecutionCallback; |
31 enum class WebCachePolicy; | 32 enum class WebCachePolicy; |
32 enum class WebSandboxFlags; | 33 enum class WebSandboxFlags; |
33 enum class WebTreeScopeType; | 34 enum class WebTreeScopeType; |
34 struct WebFindOptions; | 35 struct WebFindOptions; |
35 struct WebFloatRect; | 36 struct WebFloatRect; |
36 struct WebPrintPresetOptions; | 37 struct WebPrintPresetOptions; |
37 | 38 |
38 // Interface for interacting with in process frames. This contains methods that | 39 // Interface for interacting with in process frames. This contains methods that |
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
448 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; | 449 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; |
449 | 450 |
450 // Task queues -------------------------------------------------------------- | 451 // Task queues -------------------------------------------------------------- |
451 | 452 |
452 // Returns frame-specific task runner to run tasks of this type on. | 453 // Returns frame-specific task runner to run tasks of this type on. |
453 // They have the same lifetime as the frame. | 454 // They have the same lifetime as the frame. |
454 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0; | 455 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0; |
455 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0; | 456 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0; |
456 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0; | 457 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0; |
457 | 458 |
| 459 // Returns the WebInputMethodController associated with this local frame. |
| 460 virtual WebInputMethodController* inputMethodController() const = 0; |
| 461 |
458 protected: | 462 protected: |
459 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} | 463 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} |
460 | 464 |
461 // Inherited from WebFrame, but intentionally hidden: it never makes sense | 465 // Inherited from WebFrame, but intentionally hidden: it never makes sense |
462 // to call these on a WebLocalFrame. | 466 // to call these on a WebLocalFrame. |
463 bool isWebLocalFrame() const override = 0; | 467 bool isWebLocalFrame() const override = 0; |
464 WebLocalFrame* toWebLocalFrame() override = 0; | 468 WebLocalFrame* toWebLocalFrame() override = 0; |
465 bool isWebRemoteFrame() const override = 0; | 469 bool isWebRemoteFrame() const override = 0; |
466 WebRemoteFrame* toWebRemoteFrame() override = 0; | 470 WebRemoteFrame* toWebRemoteFrame() override = 0; |
467 }; | 471 }; |
468 | 472 |
469 } // namespace blink | 473 } // namespace blink |
470 | 474 |
471 #endif // WebLocalFrame_h | 475 #endif // WebLocalFrame_h |
OLD | NEW |