| OLD | NEW |
| 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 class Page; | 52 class Page; |
| 53 class PaintLayerCompositor; | 53 class PaintLayerCompositor; |
| 54 class UserGestureToken; | 54 class UserGestureToken; |
| 55 class CompositorAnimationTimeline; | 55 class CompositorAnimationTimeline; |
| 56 class WebLayer; | 56 class WebLayer; |
| 57 class WebLayerTreeView; | 57 class WebLayerTreeView; |
| 58 class WebMouseEvent; | 58 class WebMouseEvent; |
| 59 class WebMouseWheelEvent; | 59 class WebMouseWheelEvent; |
| 60 class WebFrameWidgetImpl; | 60 class WebFrameWidgetImpl; |
| 61 | 61 |
| 62 using WebFrameWidgetsSet = WillBePersistentHeapHashSet<RawPtrWillBeWeakMember<We
bFrameWidgetImpl>>; | 62 using WebFrameWidgetsSet = PersistentHeapHashSet<WeakMember<WebFrameWidgetImpl>>
; |
| 63 | 63 |
| 64 class WebFrameWidgetImpl final : public RefCountedWillBeGarbageCollectedFinalize
d<WebFrameWidgetImpl> | 64 class WebFrameWidgetImpl final : public GarbageCollectedFinalized<WebFrameWidget
Impl> |
| 65 , public WebFrameWidget | 65 , public WebFrameWidget |
| 66 , public PageWidgetEventHandler { | 66 , public PageWidgetEventHandler { |
| 67 public: | 67 public: |
| 68 static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*); | 68 static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*); |
| 69 static WebFrameWidgetsSet& allInstances(); | 69 static WebFrameWidgetsSet& allInstances(); |
| 70 | 70 |
| 71 // WebWidget functions: | 71 // WebWidget functions: |
| 72 void close() override; | 72 void close() override; |
| 73 WebSize size() override; | 73 WebSize size() override; |
| 74 void resize(const WebSize&) override; | 74 void resize(const WebSize&) override; |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; | 193 WebInputEventResult handleGestureEvent(const WebGestureEvent&) override; |
| 194 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; | 194 WebInputEventResult handleKeyEvent(const WebKeyboardEvent&) override; |
| 195 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; | 195 WebInputEventResult handleCharEvent(const WebKeyboardEvent&) override; |
| 196 | 196 |
| 197 WebViewImpl* view() const { return m_localRoot->viewImpl(); } | 197 WebViewImpl* view() const { return m_localRoot->viewImpl(); } |
| 198 | 198 |
| 199 WebWidgetClient* m_client; | 199 WebWidgetClient* m_client; |
| 200 | 200 |
| 201 // WebFrameWidget is associated with a subtree of the frame tree, correspond
ing to a maximal | 201 // WebFrameWidget is associated with a subtree of the frame tree, correspond
ing to a maximal |
| 202 // connected tree of LocalFrames. This member points to the root of that sub
tree. | 202 // connected tree of LocalFrames. This member points to the root of that sub
tree. |
| 203 RawPtrWillBeMember<WebLocalFrameImpl> m_localRoot; | 203 Member<WebLocalFrameImpl> m_localRoot; |
| 204 | 204 |
| 205 WebSize m_size; | 205 WebSize m_size; |
| 206 | 206 |
| 207 // If set, the (plugin) node which has mouse capture. | 207 // If set, the (plugin) node which has mouse capture. |
| 208 RefPtrWillBeMember<Node> m_mouseCaptureNode; | 208 Member<Node> m_mouseCaptureNode; |
| 209 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; | 209 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; |
| 210 | 210 |
| 211 WebLayerTreeView* m_layerTreeView; | 211 WebLayerTreeView* m_layerTreeView; |
| 212 WebLayer* m_rootLayer; | 212 WebLayer* m_rootLayer; |
| 213 GraphicsLayer* m_rootGraphicsLayer; | 213 GraphicsLayer* m_rootGraphicsLayer; |
| 214 bool m_isAcceleratedCompositingActive; | 214 bool m_isAcceleratedCompositingActive; |
| 215 bool m_layerTreeViewClosed; | 215 bool m_layerTreeViewClosed; |
| 216 | 216 |
| 217 bool m_suppressNextKeypressEvent; | 217 bool m_suppressNextKeypressEvent; |
| 218 | 218 |
| 219 bool m_ignoreInputEvents; | 219 bool m_ignoreInputEvents; |
| 220 | 220 |
| 221 // Whether the WebFrameWidget is rendering transparently. | 221 // Whether the WebFrameWidget is rendering transparently. |
| 222 bool m_isTransparent; | 222 bool m_isTransparent; |
| 223 | 223 |
| 224 static const WebInputEvent* m_currentInputEvent; | 224 static const WebInputEvent* m_currentInputEvent; |
| 225 | 225 |
| 226 WebColor m_baseBackgroundColor; | 226 WebColor m_baseBackgroundColor; |
| 227 | 227 |
| 228 #if ENABLE(OILPAN) | 228 #if ENABLE(OILPAN) |
| 229 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 229 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; |
| 230 #endif | 230 #endif |
| 231 }; | 231 }; |
| 232 | 232 |
| 233 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram
e(), widget.forSubframe()); | 233 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram
e(), widget.forSubframe()); |
| 234 | 234 |
| 235 } // namespace blink | 235 } // namespace blink |
| 236 | 236 |
| 237 #endif | 237 #endif |
| OLD | NEW |