| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 #include "sky/engine/web/ChromeClientImpl.h" | 45 #include "sky/engine/web/ChromeClientImpl.h" |
| 46 #include "sky/engine/web/EditorClientImpl.h" | 46 #include "sky/engine/web/EditorClientImpl.h" |
| 47 #include "sky/engine/web/SpellCheckerClientImpl.h" | 47 #include "sky/engine/web/SpellCheckerClientImpl.h" |
| 48 #include "sky/engine/wtf/OwnPtr.h" | 48 #include "sky/engine/wtf/OwnPtr.h" |
| 49 #include "sky/engine/wtf/RefCounted.h" | 49 #include "sky/engine/wtf/RefCounted.h" |
| 50 #include "sky/engine/wtf/Vector.h" | 50 #include "sky/engine/wtf/Vector.h" |
| 51 | 51 |
| 52 namespace blink { | 52 namespace blink { |
| 53 | 53 |
| 54 class Frame; | 54 class Frame; |
| 55 class UserGestureToken; | |
| 56 class WebLocalFrameImpl; | 55 class WebLocalFrameImpl; |
| 57 class WebImage; | 56 class WebImage; |
| 58 class WebSettingsImpl; | 57 class WebSettingsImpl; |
| 59 | 58 |
| 60 class WebViewImpl final : public WebView, public RefCounted<WebViewImpl> { | 59 class WebViewImpl final : public WebView, public RefCounted<WebViewImpl> { |
| 61 public: | 60 public: |
| 62 static WebViewImpl* create(WebViewClient*); | 61 static WebViewImpl* create(WebViewClient*); |
| 63 | 62 |
| 64 // WebWidget methods: | 63 // WebWidget methods: |
| 65 virtual void close() override; | 64 virtual void close() override; |
| (...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 280 bool m_suppressNextKeypressEvent; | 279 bool m_suppressNextKeypressEvent; |
| 281 | 280 |
| 282 // Represents whether or not this object should process incoming IME events. | 281 // Represents whether or not this object should process incoming IME events. |
| 283 bool m_imeAcceptEvents; | 282 bool m_imeAcceptEvents; |
| 284 | 283 |
| 285 // Whether the webview is rendering transparently. | 284 // Whether the webview is rendering transparently. |
| 286 bool m_isTransparent; | 285 bool m_isTransparent; |
| 287 | 286 |
| 288 // If set, the (plugin) node which has mouse capture. | 287 // If set, the (plugin) node which has mouse capture. |
| 289 RefPtr<Node> m_mouseCaptureNode; | 288 RefPtr<Node> m_mouseCaptureNode; |
| 290 RefPtr<UserGestureToken> m_mouseCaptureGestureToken; | |
| 291 | 289 |
| 292 IntRect m_rootLayerScrollDamage; | 290 IntRect m_rootLayerScrollDamage; |
| 293 WebLayer* m_rootLayer; | 291 WebLayer* m_rootLayer; |
| 294 bool m_matchesHeuristicsForGpuRasterization; | 292 bool m_matchesHeuristicsForGpuRasterization; |
| 295 // If true, the graphics context is being restored. | 293 // If true, the graphics context is being restored. |
| 296 bool m_recreatingGraphicsContext; | 294 bool m_recreatingGraphicsContext; |
| 297 static const WebInputEvent* m_currentInputEvent; | 295 static const WebInputEvent* m_currentInputEvent; |
| 298 | 296 |
| 299 WebPoint m_positionOnFlingStart; | 297 WebPoint m_positionOnFlingStart; |
| 300 WebPoint m_globalPositionOnFlingStart; | 298 WebPoint m_globalPositionOnFlingStart; |
| 301 int m_flingModifier; | 299 int m_flingModifier; |
| 302 bool m_flingSourceDevice; | 300 bool m_flingSourceDevice; |
| 303 | 301 |
| 304 bool m_showPaintRects; | 302 bool m_showPaintRects; |
| 305 bool m_showDebugBorders; | 303 bool m_showDebugBorders; |
| 306 bool m_showScrollBottleneckRects; | 304 bool m_showScrollBottleneckRects; |
| 307 WebColor m_baseBackgroundColor; | 305 WebColor m_baseBackgroundColor; |
| 308 WebColor m_backgroundColorOverride; | 306 WebColor m_backgroundColorOverride; |
| 309 | |
| 310 bool m_userGestureObserved; | |
| 311 }; | 307 }; |
| 312 | 308 |
| 313 // We have no ways to check if the specified WebView is an instance of | 309 // We have no ways to check if the specified WebView is an instance of |
| 314 // WebViewImpl because WebViewImpl is the only implementation of WebView. | 310 // WebViewImpl because WebViewImpl is the only implementation of WebView. |
| 315 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); | 311 DEFINE_TYPE_CASTS(WebViewImpl, WebView, webView, true, true); |
| 316 | 312 |
| 317 } // namespace blink | 313 } // namespace blink |
| 318 | 314 |
| 319 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ | 315 #endif // SKY_ENGINE_WEB_WEBVIEWIMPL_H_ |
| OLD | NEW |