| 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 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 #ifdef WIN32 | 34 #ifdef WIN32 |
| 35 #include <windows.h> | 35 #include <windows.h> |
| 36 #endif | 36 #endif |
| 37 | 37 |
| 38 #include "WebCommon.h" | 38 #include "WebCommon.h" |
| 39 #include "WebData.h" | 39 #include "WebData.h" |
| 40 #include "WebGestureDevice.h" | 40 #include "WebGestureDevice.h" |
| 41 #include "WebGraphicsContext3D.h" | 41 #include "WebGraphicsContext3D.h" |
| 42 #include "WebLocalizedString.h" | 42 #include "WebLocalizedString.h" |
| 43 #include "WebPlatformEventType.h" | |
| 44 #include "WebString.h" | 43 #include "WebString.h" |
| 45 #include "WebURLError.h" | 44 #include "WebURLError.h" |
| 46 #include "WebVector.h" | 45 #include "WebVector.h" |
| 47 | 46 |
| 48 class GrContext; | 47 class GrContext; |
| 49 | 48 |
| 50 namespace base { | 49 namespace base { |
| 51 class SingleThreadTaskRunner; | 50 class SingleThreadTaskRunner; |
| 52 } | 51 } |
| 53 | 52 |
| 54 namespace mojo { | 53 namespace mojo { |
| 55 class NetworkService; | 54 class NetworkService; |
| 56 } | 55 } |
| 57 | 56 |
| 58 namespace blink { | 57 namespace blink { |
| 59 | 58 |
| 60 class WebBlobRegistry; | 59 class WebBlobRegistry; |
| 61 class WebClipboard; | 60 class WebClipboard; |
| 62 class WebCompositorSupport; | 61 class WebCompositorSupport; |
| 63 class WebConvertableToTraceFormat; | 62 class WebConvertableToTraceFormat; |
| 64 class WebDiscardableMemory; | 63 class WebDiscardableMemory; |
| 65 class WebPlatformEventListener; | |
| 66 class WebFallbackThemeEngine; | 64 class WebFallbackThemeEngine; |
| 67 class WebFlingAnimator; | 65 class WebFlingAnimator; |
| 68 class WebGestureCurveTarget; | 66 class WebGestureCurveTarget; |
| 69 class WebGestureCurve; | 67 class WebGestureCurve; |
| 70 class WebGraphicsContext3DProvider; | 68 class WebGraphicsContext3DProvider; |
| 71 class WebMimeRegistry; | 69 class WebMimeRegistry; |
| 72 class WebSandboxSupport; | 70 class WebSandboxSupport; |
| 73 class WebScrollbarBehavior; | 71 class WebScrollbarBehavior; |
| 74 struct WebFloatPoint; | 72 struct WebFloatPoint; |
| 75 class WebThemeEngine; | 73 class WebThemeEngine; |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 virtual bool isThreadedCompositingEnabled() { return false; } | 384 virtual bool isThreadedCompositingEnabled() { return false; } |
| 387 | 385 |
| 388 virtual WebCompositorSupport* compositorSupport() { return 0; } | 386 virtual WebCompositorSupport* compositorSupport() { return 0; } |
| 389 | 387 |
| 390 virtual WebFlingAnimator* createFlingAnimator() { return 0; } | 388 virtual WebFlingAnimator* createFlingAnimator() { return 0; } |
| 391 | 389 |
| 392 // Creates a new fling animation curve instance for device |deviceSource| | 390 // Creates a new fling animation curve instance for device |deviceSource| |
| 393 // with |velocity| and already scrolled |cumulativeScroll| pixels. | 391 // with |velocity| and already scrolled |cumulativeScroll| pixels. |
| 394 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo
urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0
; } | 392 virtual WebGestureCurve* createFlingAnimationCurve(WebGestureDevice deviceSo
urce, const WebFloatPoint& velocity, const WebSize& cumulativeScroll) { return 0
; } |
| 395 | 393 |
| 396 | |
| 397 // Platform events ----------------------------------------------------- | |
| 398 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. | |
| 399 | |
| 400 // Request the platform to start listening to the events of the specified | |
| 401 // type and notify the given listener (if not null) when there is an update. | |
| 402 virtual void startListening(WebPlatformEventType type, WebPlatformEventListe
ner* listener) { } | |
| 403 | |
| 404 // Request the platform to stop listening to the specified event and no | |
| 405 // longer notify the listener, if any. | |
| 406 virtual void stopListening(WebPlatformEventType type) { } | |
| 407 | |
| 408 protected: | 394 protected: |
| 409 virtual ~Platform() { } | 395 virtual ~Platform() { } |
| 410 }; | 396 }; |
| 411 | 397 |
| 412 } // namespace blink | 398 } // namespace blink |
| 413 | 399 |
| 414 #endif | 400 #endif |
| OLD | NEW |