| 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 WebFrameWidget | 65 , public WebFrameWidget |
| 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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 void didAcquirePointerLock() override; | 117 void didAcquirePointerLock() override; |
| 117 void didNotAcquirePointerLock() override; | 118 void didNotAcquirePointerLock() override; |
| 118 void didLosePointerLock() override; | 119 void didLosePointerLock() override; |
| 119 | 120 |
| 120 // WebFrameWidget implementation. | 121 // WebFrameWidget implementation. |
| 121 void setVisibilityState(WebPageVisibilityState) override; | 122 void setVisibilityState(WebPageVisibilityState) override; |
| 122 bool isTransparent() const override; | 123 bool isTransparent() const override; |
| 123 void setIsTransparent(bool) override; | 124 void setIsTransparent(bool) override; |
| 124 void setBaseBackgroundColor(WebColor) override; | 125 void setBaseBackgroundColor(WebColor) override; |
| 125 void scheduleAnimation() override; | 126 void scheduleAnimation() override; |
| 126 CompositorProxyClient* createCompositorProxyClient() override; | 127 CompositorProxyClient* createCompositorProxyClient(WorkerClients&) override; |
| 127 | 128 |
| 128 WebWidgetClient* client() const override { return m_client; } | 129 WebWidgetClient* client() const override { return m_client; } |
| 129 | 130 |
| 130 Frame* focusedCoreFrame() const; | 131 Frame* focusedCoreFrame() const; |
| 131 | 132 |
| 132 // Returns the currently focused Element or null if no element has focus. | 133 // Returns the currently focused Element or null if no element has focus. |
| 133 Element* focusedElement() const; | 134 Element* focusedElement() const; |
| 134 | 135 |
| 135 PaintLayerCompositor* compositor() const; | 136 PaintLayerCompositor* compositor() const; |
| 136 void setRootGraphicsLayer(GraphicsLayer*) override; | 137 void setRootGraphicsLayer(GraphicsLayer*) override; |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 WebColor m_baseBackgroundColor; | 231 WebColor m_baseBackgroundColor; |
| 231 | 232 |
| 232 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; | 233 SelfKeepAlive<WebFrameWidgetImpl> m_selfKeepAlive; |
| 233 }; | 234 }; |
| 234 | 235 |
| 235 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram
e(), widget.forSubframe()); | 236 DEFINE_TYPE_CASTS(WebFrameWidgetImpl, WebFrameWidget, widget, widget->forSubfram
e(), widget.forSubframe()); |
| 236 | 237 |
| 237 } // namespace blink | 238 } // namespace blink |
| 238 | 239 |
| 239 #endif | 240 #endif |
| OLD | NEW |