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

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

Issue 2900593002: Move many more classes to use WebLocalFrameBase over WebLocalFrameImpl. (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 /* 1 /*
2 * Copyright (C) 2014 Google Inc. All rights reserved. 2 * Copyright (C) 2014 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 14 matching lines...) Expand all
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29 */ 29 */
30 30
31 #ifndef WebFrameWidgetImpl_h 31 #ifndef WebFrameWidgetImpl_h
32 #define WebFrameWidgetImpl_h 32 #define WebFrameWidgetImpl_h
33 33
34 #include "core/frame/WebFrameWidgetBase.h" 34 #include "core/frame/WebFrameWidgetBase.h"
35 #include "core/frame/WebLocalFrameBase.h"
35 #include "platform/graphics/GraphicsLayer.h" 36 #include "platform/graphics/GraphicsLayer.h"
36 #include "platform/heap/SelfKeepAlive.h" 37 #include "platform/heap/SelfKeepAlive.h"
37 #include "platform/scroll/ScrollTypes.h" 38 #include "platform/scroll/ScrollTypes.h"
38 #include "platform/wtf/Assertions.h" 39 #include "platform/wtf/Assertions.h"
39 #include "platform/wtf/HashSet.h" 40 #include "platform/wtf/HashSet.h"
40 #include "public/platform/WebCoalescedInputEvent.h" 41 #include "public/platform/WebCoalescedInputEvent.h"
41 #include "public/platform/WebPoint.h" 42 #include "public/platform/WebPoint.h"
42 #include "public/platform/WebSize.h" 43 #include "public/platform/WebSize.h"
43 #include "public/web/WebInputMethodController.h" 44 #include "public/web/WebInputMethodController.h"
44 #include "web/CompositorMutatorImpl.h" 45 #include "web/CompositorMutatorImpl.h"
45 #include "web/PageWidgetDelegate.h" 46 #include "web/PageWidgetDelegate.h"
46 #include "web/WebInputMethodControllerImpl.h" 47 #include "web/WebInputMethodControllerImpl.h"
47 #include "web/WebLocalFrameImpl.h"
48 48
49 namespace blink { 49 namespace blink {
50 50
51 class CompositorAnimationHost; 51 class CompositorAnimationHost;
52 class Frame; 52 class Frame;
53 class Element; 53 class Element;
54 class LocalFrame; 54 class LocalFrame;
55 class PaintLayerCompositor; 55 class PaintLayerCompositor;
56 class UserGestureToken; 56 class UserGestureToken;
57 class WebLayer; 57 class WebLayer;
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 WebTextDirection& end) const override; 105 WebTextDirection& end) const override;
106 bool IsSelectionAnchorFirst() const override; 106 bool IsSelectionAnchorFirst() const override;
107 WebRange CaretOrSelectionRange() override; 107 WebRange CaretOrSelectionRange() override;
108 void SetTextDirection(WebTextDirection) override; 108 void SetTextDirection(WebTextDirection) override;
109 bool IsAcceleratedCompositingActive() const override; 109 bool IsAcceleratedCompositingActive() const override;
110 void WillCloseLayerTreeView() override; 110 void WillCloseLayerTreeView() override;
111 bool GetCompositionCharacterBounds(WebVector<WebRect>& bounds) override; 111 bool GetCompositionCharacterBounds(WebVector<WebRect>& bounds) override;
112 void SetRemoteViewportIntersection(const WebRect&) override; 112 void SetRemoteViewportIntersection(const WebRect&) override;
113 113
114 // WebFrameWidget implementation. 114 // WebFrameWidget implementation.
115 WebLocalFrameImpl* LocalRoot() const override { return local_root_; } 115 WebLocalFrameBase* LocalRoot() const override { return local_root_; }
116 void SetVisibilityState(WebPageVisibilityState) override; 116 void SetVisibilityState(WebPageVisibilityState) override;
117 void SetBackgroundColorOverride(WebColor) override; 117 void SetBackgroundColorOverride(WebColor) override;
118 void ClearBackgroundColorOverride() override; 118 void ClearBackgroundColorOverride() override;
119 void SetBaseBackgroundColorOverride(WebColor) override; 119 void SetBaseBackgroundColorOverride(WebColor) override;
120 void ClearBaseBackgroundColorOverride() override; 120 void ClearBaseBackgroundColorOverride() override;
121 void SetBaseBackgroundColor(WebColor) override; 121 void SetBaseBackgroundColor(WebColor) override;
122 WebInputMethodControllerImpl* GetActiveWebInputMethodController() 122 WebInputMethodControllerImpl* GetActiveWebInputMethodController()
123 const override; 123 const override;
124 124
125 Frame* FocusedCoreFrame() const; 125 Frame* FocusedCoreFrame() const;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 191
192 LocalFrame* FocusedLocalFrameAvailableForIme() const; 192 LocalFrame* FocusedLocalFrameAvailableForIme() const;
193 193
194 CompositorMutatorImpl& Mutator(); 194 CompositorMutatorImpl& Mutator();
195 195
196 WebWidgetClient* client_; 196 WebWidgetClient* client_;
197 197
198 // WebFrameWidget is associated with a subtree of the frame tree, 198 // WebFrameWidget is associated with a subtree of the frame tree,
199 // corresponding to a maximal connected tree of LocalFrames. This member 199 // corresponding to a maximal connected tree of LocalFrames. This member
200 // points to the root of that subtree. 200 // points to the root of that subtree.
201 Member<WebLocalFrameImpl> local_root_; 201 Member<WebLocalFrameBase> local_root_;
202 202
203 WebSize size_; 203 WebSize size_;
204 204
205 // If set, the (plugin) node which has mouse capture. 205 // If set, the (plugin) node which has mouse capture.
206 Member<Node> mouse_capture_node_; 206 Member<Node> mouse_capture_node_;
207 RefPtr<UserGestureToken> mouse_capture_gesture_token_; 207 RefPtr<UserGestureToken> mouse_capture_gesture_token_;
208 208
209 // This is owned by the LayerTreeHostImpl, and should only be used on the 209 // This is owned by the LayerTreeHostImpl, and should only be used on the
210 // compositor thread. The LayerTreeHostImpl is indirectly owned by this 210 // compositor thread. The LayerTreeHostImpl is indirectly owned by this
211 // class so this pointer should be valid until this class is destructed. 211 // class so this pointer should be valid until this class is destructed.
(...skipping 27 matching lines...) Expand all
239 239
240 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, 240 DEFINE_TYPE_CASTS(WebFrameWidgetImpl,
241 WebFrameWidgetBase, 241 WebFrameWidgetBase,
242 widget, 242 widget,
243 widget->ForSubframe(), 243 widget->ForSubframe(),
244 widget.ForSubframe()); 244 widget.ForSubframe());
245 245
246 } // namespace blink 246 } // namespace blink
247 247
248 #endif 248 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebDevToolsAgentImpl.cpp ('k') | third_party/WebKit/Source/web/WebFrameWidgetImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698