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

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

Issue 2508363003: [refactor] - Move textInputInfo() and textInputType() from WebWidget to WebInputMethodController (Closed)
Patch Set: 'controller' may be nullptr. Created 4 years, 1 month 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 14
15 namespace blink { 15 namespace blink {
16 16
17 class WebAutofillClient; 17 class WebAutofillClient;
18 class WebContentSettingsClient; 18 class WebContentSettingsClient;
19 class WebDevToolsAgent; 19 class WebDevToolsAgent;
20 class WebDevToolsAgentClient; 20 class WebDevToolsAgentClient;
21 class WebDoubleSize; 21 class WebDoubleSize;
22 class WebFrameClient; 22 class WebFrameClient;
23 class WebFrameWidget; 23 class WebFrameWidget;
24 class WebInputMethodController;
24 class WebRange; 25 class WebRange;
25 class WebScriptExecutionCallback; 26 class WebScriptExecutionCallback;
26 class WebSuspendableTask; 27 class WebSuspendableTask;
27 enum class WebCachePolicy; 28 enum class WebCachePolicy;
28 enum class WebSandboxFlags; 29 enum class WebSandboxFlags;
29 enum class WebTreeScopeType; 30 enum class WebTreeScopeType;
30 struct WebFindOptions; 31 struct WebFindOptions;
31 struct WebFloatRect; 32 struct WebFloatRect;
32 struct WebPrintPresetOptions; 33 struct WebPrintPresetOptions;
33 34
(...skipping 406 matching lines...) Expand 10 before | Expand all | Expand 10 after
440 virtual void copyImageAt(const WebPoint&) = 0; 441 virtual void copyImageAt(const WebPoint&) = 0;
441 442
442 // Save as the image located at a particular point in visual viewport 443 // Save as the image located at a particular point in visual viewport
443 // coordinates. 444 // coordinates.
444 virtual void saveImageAt(const WebPoint&) = 0; 445 virtual void saveImageAt(const WebPoint&) = 0;
445 446
446 // TEMP: Usage count for chrome.loadtimes deprecation. 447 // TEMP: Usage count for chrome.loadtimes deprecation.
447 // This will be removed following the deprecation. 448 // This will be removed following the deprecation.
448 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0; 449 virtual void usageCountChromeLoadTimes(const WebString& metric) = 0;
449 450
451 // Returns the WebInputMethodController associated with this local frame.
452 virtual WebInputMethodController* inputMethodController() const = 0;
453
450 protected: 454 protected:
451 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {} 455 explicit WebLocalFrame(WebTreeScopeType scope) : WebFrame(scope) {}
452 456
453 // Inherited from WebFrame, but intentionally hidden: it never makes sense 457 // Inherited from WebFrame, but intentionally hidden: it never makes sense
454 // to call these on a WebLocalFrame. 458 // to call these on a WebLocalFrame.
455 bool isWebLocalFrame() const override = 0; 459 bool isWebLocalFrame() const override = 0;
456 WebLocalFrame* toWebLocalFrame() override = 0; 460 WebLocalFrame* toWebLocalFrame() override = 0;
457 bool isWebRemoteFrame() const override = 0; 461 bool isWebRemoteFrame() const override = 0;
458 WebRemoteFrame* toWebRemoteFrame() override = 0; 462 WebRemoteFrame* toWebRemoteFrame() override = 0;
459 }; 463 };
460 464
461 } // namespace blink 465 } // namespace blink
462 466
463 #endif // WebLocalFrame_h 467 #endif // WebLocalFrame_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698