| 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 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class LocalFrame; | 50 class LocalFrame; |
| 51 class Page; | 51 class Page; |
| 52 class PaintLayerCompositor; | 52 class PaintLayerCompositor; |
| 53 class UserGestureToken; | 53 class UserGestureToken; |
| 54 class CompositorAnimationTimeline; | 54 class CompositorAnimationTimeline; |
| 55 class WebLayer; | 55 class WebLayer; |
| 56 class WebLayerTreeView; | 56 class WebLayerTreeView; |
| 57 class WebMouseEvent; | 57 class WebMouseEvent; |
| 58 class WebMouseWheelEvent; | 58 class WebMouseWheelEvent; |
| 59 class WebFrameWidgetImpl; | 59 class WebFrameWidgetImpl; |
| 60 class WorkerClients; |
| 60 | 61 |
| 61 using WebFrameWidgetsSet = PersistentHeapHashSet<WeakMember<WebFrameWidgetImpl>>
; | 62 using WebFrameWidgetsSet = PersistentHeapHashSet<WeakMember<WebFrameWidgetImpl>>
; |
| 62 | 63 |
| 63 class WebFrameWidgetImpl final : public GarbageCollectedFinalized<WebFrameWidget
Impl> | 64 class WebFrameWidgetImpl final : public GarbageCollectedFinalized<WebFrameWidget
Impl> |
| 64 , public WebFrameWidgetBase | 65 , public WebFrameWidgetBase |
| 65 , public PageWidgetEventHandler { | 66 , public PageWidgetEventHandler { |
| 66 public: | 67 public: |
| 67 static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*); | 68 static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*); |
| 68 static WebFrameWidgetsSet& allInstances(); | 69 static WebFrameWidgetsSet& allInstances(); |
| 69 | 70 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 Frame* focusedCoreFrame() const; | 129 Frame* focusedCoreFrame() const; |
| 129 | 130 |
| 130 // Returns the currently focused Element or null if no element has focus. | 131 // Returns the currently focused Element or null if no element has focus. |
| 131 Element* focusedElement() const; | 132 Element* focusedElement() const; |
| 132 | 133 |
| 133 PaintLayerCompositor* compositor() const; | 134 PaintLayerCompositor* compositor() const; |
| 134 | 135 |
| 135 // WebFrameWidgetBase overrides: | 136 // WebFrameWidgetBase overrides: |
| 136 bool forSubframe() const override { return true; } | 137 bool forSubframe() const override { return true; } |
| 137 void scheduleAnimation() override; | 138 void scheduleAnimation() override; |
| 138 CompositorProxyClient* createCompositorProxyClient() override; | 139 CompositorProxyClient* createCompositorProxyClient(WorkerClients&) override; |
| 139 WebWidgetClient* client() const override { return m_client; } | 140 WebWidgetClient* client() const override { return m_client; } |
| 140 void setRootGraphicsLayer(GraphicsLayer*) override; | 141 void setRootGraphicsLayer(GraphicsLayer*) override; |
| 141 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) overrid
e; | 142 void attachCompositorAnimationTimeline(CompositorAnimationTimeline*) overrid
e; |
| 142 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) overrid
e; | 143 void detachCompositorAnimationTimeline(CompositorAnimationTimeline*) overrid
e; |
| 143 | 144 |
| 144 // Exposed for the purpose of overriding device metrics. | 145 // Exposed for the purpose of overriding device metrics. |
| 145 void sendResizeEventAndRepaint(); | 146 void sendResizeEventAndRepaint(); |
| 146 | 147 |
| 147 void updateMainFrameLayoutSize(); | 148 void updateMainFrameLayoutSize(); |
| 148 | 149 |
| (...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 WebColor m_baseBackgroundColor; | 254 WebColor m_baseBackgroundColor; |
| 254 | 255 |
| 255 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 256 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; |
| 256 }; | 257 }; |
| 257 | 258 |
| 258 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
frame(), widget.forSubframe()); | 259 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidgetBase, widget, widget->forSub
frame(), widget.forSubframe()); |
| 259 | 260 |
| 260 } // namespace blink | 261 } // namespace blink |
| 261 | 262 |
| 262 #endif | 263 #endif |
| OLD | NEW |