| 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 30 matching lines...) Expand all Loading... |
| 41 #include "wtf/OwnPtr.h" | 41 #include "wtf/OwnPtr.h" |
| 42 #include "wtf/RefCounted.h" | 42 #include "wtf/RefCounted.h" |
| 43 | 43 |
| 44 namespace blink { | 44 namespace blink { |
| 45 class Frame; | 45 class Frame; |
| 46 class Element; | 46 class Element; |
| 47 class LocalFrame; | 47 class LocalFrame; |
| 48 class Page; | 48 class Page; |
| 49 class LayerCompositor; | 49 class LayerCompositor; |
| 50 class UserGestureToken; | 50 class UserGestureToken; |
| 51 class WebCompositorAnimationTimeline; |
| 51 class WebLayer; | 52 class WebLayer; |
| 52 class WebLayerTreeView; | 53 class WebLayerTreeView; |
| 53 class WebLocalFrameImpl; | 54 class WebLocalFrameImpl; |
| 54 class WebMouseEvent; | 55 class WebMouseEvent; |
| 55 class WebMouseWheelEvent; | 56 class WebMouseWheelEvent; |
| 56 class WebViewImpl; | 57 class WebViewImpl; |
| 57 | 58 |
| 58 class WebFrameWidgetImpl final : public WebFrameWidget | 59 class WebFrameWidgetImpl final : public WebFrameWidget |
| 59 , public PageWidgetEventHandler | 60 , public PageWidgetEventHandler |
| 60 , public RefCounted<WebFrameWidgetImpl> { | 61 , public RefCounted<WebFrameWidgetImpl> { |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 Frame* focusedCoreFrame() const; | 127 Frame* focusedCoreFrame() const; |
| 127 | 128 |
| 128 // Returns the currently focused Element or null if no element has focus. | 129 // Returns the currently focused Element or null if no element has focus. |
| 129 Element* focusedElement() const; | 130 Element* focusedElement() const; |
| 130 | 131 |
| 131 void scheduleAnimation(); | 132 void scheduleAnimation(); |
| 132 | 133 |
| 133 LayerCompositor* compositor() const; | 134 LayerCompositor* compositor() const; |
| 134 void suppressInvalidations(bool enable); | 135 void suppressInvalidations(bool enable); |
| 135 void setRootGraphicsLayer(GraphicsLayer*); | 136 void setRootGraphicsLayer(GraphicsLayer*); |
| 137 void setCompositorAnimationTimeline(WebCompositorAnimationTimeline*); |
| 136 | 138 |
| 137 void setVisibilityState(WebPageVisibilityState, bool) override; | 139 void setVisibilityState(WebPageVisibilityState, bool) override; |
| 138 | 140 |
| 139 // Exposed for the purpose of overriding device metrics. | 141 // Exposed for the purpose of overriding device metrics. |
| 140 void sendResizeEventAndRepaint(); | 142 void sendResizeEventAndRepaint(); |
| 141 | 143 |
| 142 void updateMainFrameLayoutSize(); | 144 void updateMainFrameLayoutSize(); |
| 143 | 145 |
| 144 // Returns the page object associated with this widget. This may be null whe
n | 146 // Returns the page object associated with this widget. This may be null whe
n |
| 145 // the page is shutting down, but will be valid at all other times. | 147 // the page is shutting down, but will be valid at all other times. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 208 bool m_suppressNextKeypressEvent; | 210 bool m_suppressNextKeypressEvent; |
| 209 | 211 |
| 210 bool m_ignoreInputEvents; | 212 bool m_ignoreInputEvents; |
| 211 | 213 |
| 212 static const WebInputEvent* m_currentInputEvent; | 214 static const WebInputEvent* m_currentInputEvent; |
| 213 }; | 215 }; |
| 214 | 216 |
| 215 } // namespace blink | 217 } // namespace blink |
| 216 | 218 |
| 217 #endif | 219 #endif |
| OLD | NEW |