OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 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 WebPagePopupImpl_h | 31 #ifndef WebPagePopupImpl_h |
32 #define WebPagePopupImpl_h | 32 #define WebPagePopupImpl_h |
33 | 33 |
34 #include "core/page/PagePopup.h" | 34 #include "core/page/PagePopup.h" |
35 #include "public/web/WebPagePopup.h" | 35 #include "public/web/WebPagePopup.h" |
36 #include "web/PageWidgetDelegate.h" | 36 #include "web/PageWidgetDelegate.h" |
37 #include "wtf/RefCounted.h" | 37 #include "wtf/RefCounted.h" |
38 | 38 |
39 namespace blink { | 39 namespace blink { |
40 | 40 |
| 41 class CompositorAnimationHost; |
41 class GraphicsLayer; | 42 class GraphicsLayer; |
42 class Page; | 43 class Page; |
43 class PagePopupChromeClient; | 44 class PagePopupChromeClient; |
44 class PagePopupClient; | 45 class PagePopupClient; |
45 class WebLayerTreeView; | 46 class WebLayerTreeView; |
46 class WebLayer; | 47 class WebLayer; |
47 class WebViewImpl; | 48 class WebViewImpl; |
48 class LocalDOMWindow; | 49 class LocalDOMWindow; |
49 | 50 |
50 class WebPagePopupImpl final : public WebPagePopup, | 51 class WebPagePopupImpl final : public WebPagePopup, |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
112 WebWidgetClient* m_widgetClient; | 113 WebWidgetClient* m_widgetClient; |
113 WebViewImpl* m_webView; | 114 WebViewImpl* m_webView; |
114 Persistent<Page> m_page; | 115 Persistent<Page> m_page; |
115 Persistent<PagePopupChromeClient> m_chromeClient; | 116 Persistent<PagePopupChromeClient> m_chromeClient; |
116 PagePopupClient* m_popupClient; | 117 PagePopupClient* m_popupClient; |
117 bool m_closing; | 118 bool m_closing; |
118 | 119 |
119 WebLayerTreeView* m_layerTreeView; | 120 WebLayerTreeView* m_layerTreeView; |
120 WebLayer* m_rootLayer; | 121 WebLayer* m_rootLayer; |
121 GraphicsLayer* m_rootGraphicsLayer; | 122 GraphicsLayer* m_rootGraphicsLayer; |
| 123 std::unique_ptr<CompositorAnimationHost> m_compositorAnimationHost; |
122 bool m_isAcceleratedCompositingActive; | 124 bool m_isAcceleratedCompositingActive; |
123 | 125 |
124 friend class WebPagePopup; | 126 friend class WebPagePopup; |
125 friend class PagePopupChromeClient; | 127 friend class PagePopupChromeClient; |
126 }; | 128 }; |
127 | 129 |
128 DEFINE_TYPE_CASTS(WebPagePopupImpl, | 130 DEFINE_TYPE_CASTS(WebPagePopupImpl, |
129 WebWidget, | 131 WebWidget, |
130 widget, | 132 widget, |
131 widget->isPagePopup(), | 133 widget->isPagePopup(), |
132 widget.isPagePopup()); | 134 widget.isPagePopup()); |
133 // WebPagePopupImpl is the only implementation of PagePopup, so no | 135 // WebPagePopupImpl is the only implementation of PagePopup, so no |
134 // further checking required. | 136 // further checking required. |
135 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true); | 137 DEFINE_TYPE_CASTS(WebPagePopupImpl, PagePopup, popup, true, true); |
136 | 138 |
137 } // namespace blink | 139 } // namespace blink |
138 #endif // WebPagePopupImpl_h | 140 #endif // WebPagePopupImpl_h |
OLD | NEW |