| 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 20 matching lines...) Expand all  Loading... | 
| 31 #ifndef WebFrameWidgetImpl_h | 31 #ifndef WebFrameWidgetImpl_h | 
| 32 #define WebFrameWidgetImpl_h | 32 #define WebFrameWidgetImpl_h | 
| 33 | 33 | 
| 34 #include "platform/graphics/GraphicsLayer.h" | 34 #include "platform/graphics/GraphicsLayer.h" | 
| 35 #include "platform/scroll/ScrollTypes.h" | 35 #include "platform/scroll/ScrollTypes.h" | 
| 36 #include "public/platform/WebPoint.h" | 36 #include "public/platform/WebPoint.h" | 
| 37 #include "public/platform/WebSize.h" | 37 #include "public/platform/WebSize.h" | 
| 38 #include "public/web/WebFrameWidget.h" | 38 #include "public/web/WebFrameWidget.h" | 
| 39 #include "public/web/WebInputEvent.h" | 39 #include "public/web/WebInputEvent.h" | 
| 40 #include "web/PageWidgetDelegate.h" | 40 #include "web/PageWidgetDelegate.h" | 
|  | 41 #include "wtf/HashSet.h" | 
| 41 #include "wtf/OwnPtr.h" | 42 #include "wtf/OwnPtr.h" | 
| 42 #include "wtf/RefCounted.h" | 43 #include "wtf/RefCounted.h" | 
| 43 | 44 | 
| 44 namespace blink { | 45 namespace blink { | 
| 45 class Frame; | 46 class Frame; | 
| 46 class Element; | 47 class Element; | 
| 47 class LocalFrame; | 48 class LocalFrame; | 
| 48 class Page; | 49 class Page; | 
| 49 class DeprecatedPaintLayerCompositor; | 50 class DeprecatedPaintLayerCompositor; | 
| 50 class UserGestureToken; | 51 class UserGestureToken; | 
| 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> { | 
| 61 public: | 62 public: | 
| 62     static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*); | 63     static WebFrameWidgetImpl* create(WebWidgetClient*, WebLocalFrame*); | 
|  | 64     static HashSet<WebFrameWidgetImpl*>& allInstances(); | 
| 63 | 65 | 
| 64     // WebWidget functions: | 66     // WebWidget functions: | 
| 65     void close() override; | 67     void close() override; | 
| 66     WebSize size() override; | 68     WebSize size() override; | 
| 67     void willStartLiveResize() override; | 69     void willStartLiveResize() override; | 
| 68     void resize(const WebSize&) override; | 70     void resize(const WebSize&) override; | 
| 69     void resizePinchViewport(const WebSize&) override; | 71     void resizePinchViewport(const WebSize&) override; | 
| 70     void willEndLiveResize() override; | 72     void willEndLiveResize() override; | 
| 71     void willEnterFullScreen() override; | 73     void willEnterFullScreen() override; | 
| 72     void didEnterFullScreen() override; | 74     void didEnterFullScreen() override; | 
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 134     void suppressInvalidations(bool enable); | 136     void suppressInvalidations(bool enable); | 
| 135     void setRootGraphicsLayer(GraphicsLayer*); | 137     void setRootGraphicsLayer(GraphicsLayer*); | 
| 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 | 
|  | 146     void setIgnoreInputEvents(bool newValue); | 
|  | 147 | 
| 144     // Returns the page object associated with this widget. This may be null whe
     n | 148     // 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. | 149     // the page is shutting down, but will be valid at all other times. | 
| 146     Page* page() const { return m_page; } | 150     Page* page() const { return m_page; } | 
| 147 | 151 | 
| 148     // Returns true if the event leads to scrolling. | 152     // Returns true if the event leads to scrolling. | 
| 149     static bool mapKeyCodeForScroll( | 153     static bool mapKeyCodeForScroll( | 
| 150         int keyCode, | 154         int keyCode, | 
| 151         ScrollDirection*, | 155         ScrollDirection*, | 
| 152         ScrollGranularity*); | 156         ScrollGranularity*); | 
| 153 | 157 | 
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 208     bool m_suppressNextKeypressEvent; | 212     bool m_suppressNextKeypressEvent; | 
| 209 | 213 | 
| 210     bool m_ignoreInputEvents; | 214     bool m_ignoreInputEvents; | 
| 211 | 215 | 
| 212     static const WebInputEvent* m_currentInputEvent; | 216     static const WebInputEvent* m_currentInputEvent; | 
| 213 }; | 217 }; | 
| 214 | 218 | 
| 215 } // namespace blink | 219 } // namespace blink | 
| 216 | 220 | 
| 217 #endif | 221 #endif | 
| OLD | NEW | 
|---|