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

Side by Side Diff: third_party/WebKit/Source/web/WebViewFrameWidget.h

Issue 2892393002: Move WebInputMethodControllerImpl to core/exported/ & break dependencies. (Closed)
Patch Set: Rebase. Created 3 years, 6 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be found 2 // Use of this source code is governed by a BSD-style license that can be found
3 // in the LICENSE file. 3 // in the LICENSE file.
4 4
5 #ifndef WebViewFrameWidget_h 5 #ifndef WebViewFrameWidget_h
6 #define WebViewFrameWidget_h 6 #define WebViewFrameWidget_h
7 7
8 #include "core/frame/WebFrameWidgetBase.h" 8 #include "core/frame/WebFrameWidgetBase.h"
9 #include "core/frame/WebLocalFrameBase.h" 9 #include "core/frame/WebLocalFrameBase.h"
10 #include "platform/heap/Handle.h" 10 #include "platform/heap/Handle.h"
11 #include "platform/wtf/Noncopyable.h" 11 #include "platform/wtf/Noncopyable.h"
12 #include "platform/wtf/RefPtr.h" 12 #include "platform/wtf/RefPtr.h"
13 #include "web/WebInputMethodControllerImpl.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 class WebViewBase; 16 class WebViewBase;
18 class WebWidgetClient; 17 class WebWidgetClient;
19 18
20 // Shim class to help normalize the widget interfaces in the Blink public API. 19 // Shim class to help normalize the widget interfaces in the Blink public API.
21 // For OOPI, subframes have WebFrameWidgets for input and rendering. 20 // For OOPI, subframes have WebFrameWidgets for input and rendering.
22 // Unfortunately, the main frame still uses WebView's WebWidget for input and 21 // Unfortunately, the main frame still uses WebView's WebWidget for input and
23 // rendering. This results in complex code, since there are two different 22 // rendering. This results in complex code, since there are two different
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void UpdateBrowserControlsState(WebBrowserControlsState constraints, 84 void UpdateBrowserControlsState(WebBrowserControlsState constraints,
86 WebBrowserControlsState current, 85 WebBrowserControlsState current,
87 bool animate) override; 86 bool animate) override;
88 void SetVisibilityState(WebPageVisibilityState) override; 87 void SetVisibilityState(WebPageVisibilityState) override;
89 void SetBackgroundColorOverride(WebColor) override; 88 void SetBackgroundColorOverride(WebColor) override;
90 void ClearBackgroundColorOverride() override; 89 void ClearBackgroundColorOverride() override;
91 void SetBaseBackgroundColorOverride(WebColor) override; 90 void SetBaseBackgroundColorOverride(WebColor) override;
92 void ClearBaseBackgroundColorOverride() override; 91 void ClearBaseBackgroundColorOverride() override;
93 void SetBaseBackgroundColor(WebColor) override; 92 void SetBaseBackgroundColor(WebColor) override;
94 WebLocalFrameBase* LocalRoot() const override; 93 WebLocalFrameBase* LocalRoot() const override;
95 WebInputMethodControllerImpl* GetActiveWebInputMethodController() 94 WebInputMethodController* GetActiveWebInputMethodController() const override;
96 const override;
97 95
98 // WebFrameWidgetBase overrides: 96 // WebFrameWidgetBase overrides:
99 bool ForSubframe() const override { return false; } 97 bool ForSubframe() const override { return false; }
100 void ScheduleAnimation() override; 98 void ScheduleAnimation() override;
101 CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() override; 99 CompositorWorkerProxyClient* CreateCompositorWorkerProxyClient() override;
102 AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() override; 100 AnimationWorkletProxyClient* CreateAnimationWorkletProxyClient() override;
103 void SetRootGraphicsLayer(GraphicsLayer*) override; 101 void SetRootGraphicsLayer(GraphicsLayer*) override;
104 void SetRootLayer(WebLayer*) override; 102 void SetRootLayer(WebLayer*) override;
105 WebLayerTreeView* GetLayerTreeView() const override; 103 WebLayerTreeView* GetLayerTreeView() const override;
106 CompositorAnimationHost* AnimationHost() const override; 104 CompositorAnimationHost* AnimationHost() const override;
107 WebWidgetClient* Client() const override { return client_; } 105 WebWidgetClient* Client() const override { return client_; }
108 HitTestResult CoreHitTestResultAt(const WebPoint&) override; 106 HitTestResult CoreHitTestResultAt(const WebPoint&) override;
109 107
110 private: 108 private:
111 WebWidgetClient* client_; 109 WebWidgetClient* client_;
112 RefPtr<WebViewBase> web_view_; 110 RefPtr<WebViewBase> web_view_;
113 Persistent<WebLocalFrameBase> main_frame_; 111 Persistent<WebLocalFrameBase> main_frame_;
114 }; 112 };
115 113
116 } // namespace blink 114 } // namespace blink
117 115
118 #endif // WebViewFrameWidget_h 116 #endif // WebViewFrameWidget_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebLocalFrameImpl.cpp ('k') | third_party/WebKit/Source/web/WebViewFrameWidget.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698