| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 224 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 | 235 |
| 236 void updateMainFrameLayoutSize(); | 236 void updateMainFrameLayoutSize(); |
| 237 | 237 |
| 238 // Returns the input event we're currently processing. This is used in some | 238 // Returns the input event we're currently processing. This is used in some |
| 239 // cases where the WebCore DOM event doesn't have the information we need. | 239 // cases where the WebCore DOM event doesn't have the information we need. |
| 240 static const WebInputEvent* currentInputEvent() | 240 static const WebInputEvent* currentInputEvent() |
| 241 { | 241 { |
| 242 return m_currentInputEvent; | 242 return m_currentInputEvent; |
| 243 } | 243 } |
| 244 | 244 |
| 245 GraphicsLayer* rootGraphicsLayer(); | |
| 246 void setRootGraphicsLayer(GraphicsLayer*); | |
| 247 GraphicsLayerFactory* graphicsLayerFactory() const; | |
| 248 void scheduleAnimation(); | 245 void scheduleAnimation(); |
| 249 | 246 |
| 250 virtual void setVisibilityState(WebPageVisibilityState, bool) override; | 247 virtual void setVisibilityState(WebPageVisibilityState, bool) override; |
| 251 | 248 |
| 252 // Returns true if the event leads to scrolling. | 249 // Returns true if the event leads to scrolling. |
| 253 static bool mapKeyCodeForScroll( | 250 static bool mapKeyCodeForScroll( |
| 254 int keyCode, | 251 int keyCode, |
| 255 ScrollDirection*, | 252 ScrollDirection*, |
| 256 ScrollGranularity*); | 253 ScrollGranularity*); |
| 257 | 254 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 390 |
| 394 // Whether the user can press tab to focus links. | 391 // Whether the user can press tab to focus links. |
| 395 bool m_tabsToLinks; | 392 bool m_tabsToLinks; |
| 396 | 393 |
| 397 // If set, the (plugin) node which has mouse capture. | 394 // If set, the (plugin) node which has mouse capture. |
| 398 RefPtr<Node> m_mouseCaptureNode; | 395 RefPtr<Node> m_mouseCaptureNode; |
| 399 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; | 396 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; |
| 400 | 397 |
| 401 IntRect m_rootLayerScrollDamage; | 398 IntRect m_rootLayerScrollDamage; |
| 402 WebLayer* m_rootLayer; | 399 WebLayer* m_rootLayer; |
| 403 GraphicsLayer* m_rootGraphicsLayer; | |
| 404 GraphicsLayer* m_rootTransformLayer; | |
| 405 OwnPtr<GraphicsLayerFactory> m_graphicsLayerFactory; | |
| 406 bool m_matchesHeuristicsForGpuRasterization; | 400 bool m_matchesHeuristicsForGpuRasterization; |
| 407 // If true, the graphics context is being restored. | 401 // If true, the graphics context is being restored. |
| 408 bool m_recreatingGraphicsContext; | 402 bool m_recreatingGraphicsContext; |
| 409 static const WebInputEvent* m_currentInputEvent; | 403 static const WebInputEvent* m_currentInputEvent; |
| 410 | 404 |
| 411 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; | 405 OwnPtr<WebActiveGestureAnimation> m_gestureAnimation; |
| 412 WebPoint m_positionOnFlingStart; | 406 WebPoint m_positionOnFlingStart; |
| 413 WebPoint m_globalPositionOnFlingStart; | 407 WebPoint m_globalPositionOnFlingStart; |
| 414 int m_flingModifier; | 408 int m_flingModifier; |
| 415 bool m_flingSourceDevice; | 409 bool m_flingSourceDevice; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 426 bool m_userGestureObserved; | 420 bool m_userGestureObserved; |
| 427 }; | 421 }; |
| 428 | 422 |
| 429 // We have no ways to check if the specified WebView is an instance of | 423 // We have no ways to check if the specified WebView is an instance of |
| 430 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 424 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 431 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 425 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 432 | 426 |
| 433 } // namespace blink | 427 } // namespace blink |
| 434 | 428 |
| 435 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ | 429 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ |
| OLD | NEW |