Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(21)

Side by Side Diff: third_party/WebKit/public/web/WebLocalFrame.h

Issue 2592953003: Revert of [refactor] - Move textInputInfo() and textInputType() from WebWidget to WebInputMethodController (Closed)
Patch Set: Created 3 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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;
30 class WebRange; 29 class WebRange;
31 class WebScriptExecutionCallback; 30 class WebScriptExecutionCallback;
32 enum class WebCachePolicy; 31 enum class WebCachePolicy;
33 enum class WebSandboxFlags; 32 enum class WebSandboxFlags;
34 enum class WebTreeScopeType; 33 enum class WebTreeScopeType;
35 struct WebFindOptions; 34 struct WebFindOptions;
36 struct WebFloatRect; 35 struct WebFloatRect;
37 struct WebPrintPresetOptions; 36 struct WebPrintPresetOptions;
38 37
39 // Interface for interacting with in process frames. This contains methods that 38 // Interface for interacting with in process frames. This contains methods that
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; 448 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0;
450 449
451 // Task queues -------------------------------------------------------------- 450 // Task queues --------------------------------------------------------------
452 451
453 // Returns frame-specific task runner to run tasks of this type on. 452 // Returns frame-specific task runner to run tasks of this type on.
454 // They have the same lifetime as the frame. 453 // They have the same lifetime as the frame.
455 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0; 454 virtual base::SingleThreadTaskRunner* timerTaskRunner() = 0;
456 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0; 455 virtual base::SingleThreadTaskRunner* loadingTaskRunner() = 0;
457 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0; 456 virtual base::SingleThreadTaskRunner* unthrottledTaskRunner() = 0;
458 457
459 // Returns the WebInputMethodController associated with this local frame.
460 virtual WebInputMethodController* inputMethodController() const = 0;
461
462 protected: 458 protected:
463 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} 459 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {}
464 460
465 // Inherited from WebFrame, but intentionally hidden: it never makes sense 461 // Inherited from WebFrame, but intentionally hidden: it never makes sense
466 // to call these on a WebLocalFrame. 462 // to call these on a WebLocalFrame.
467 bool isWebLocalFrame() const override = 0; 463 bool isWebLocalFrame() const override = 0;
468 WebLocalFrame* toWebLocalFrame() override = 0; 464 WebLocalFrame* toWebLocalFrame() override = 0;
469 bool isWebRemoteFrame() const override = 0; 465 bool isWebRemoteFrame() const override = 0;
470 WebRemoteFrame* toWebRemoteFrame() override = 0; 466 WebRemoteFrame* toWebRemoteFrame() override = 0;
471 }; 467 };
472 468
473 } // namespace blink 469 } // namespace blink
474 470
475 #endif // WebLocalFrame_h 471 #endif // WebLocalFrame_h
OLDNEW
« no previous file with comments | « third_party/WebKit/public/web/WebInputMethodController.h ('k') | third_party/WebKit/public/web/WebView.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698