| 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 "BlameContext.h" | 38 #include "BlameContext.h" |
| 39 #include "UserMetricsAction.h" | 39 #include "UserMetricsAction.h" |
| 40 #include "WebAudioDevice.h" | 40 #include "WebAudioDevice.h" |
| 41 #include "WebCommon.h" | 41 #include "WebCommon.h" |
| 42 #include "WebData.h" | 42 #include "WebData.h" |
| 43 #include "WebDeviceLightListener.h" | |
| 44 #include "WebFeaturePolicy.h" | 43 #include "WebFeaturePolicy.h" |
| 45 #include "WebGamepadListener.h" | 44 #include "WebGamepadListener.h" |
| 46 #include "WebGestureDevice.h" | 45 #include "WebGestureDevice.h" |
| 47 #include "WebLocalizedString.h" | 46 #include "WebLocalizedString.h" |
| 48 #include "WebMessagePortChannel.h" | 47 #include "WebMessagePortChannel.h" |
| 49 #include "WebPlatformEventType.h" | 48 #include "WebPlatformEventType.h" |
| 50 #include "WebSize.h" | 49 #include "WebSize.h" |
| 51 #include "WebSpeechSynthesizer.h" | 50 #include "WebSpeechSynthesizer.h" |
| 52 #include "WebStorageQuotaCallbacks.h" | 51 #include "WebStorageQuotaCallbacks.h" |
| 53 #include "WebStorageQuotaType.h" | 52 #include "WebStorageQuotaType.h" |
| (...skipping 552 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 | 605 |
| 607 virtual WebCrypto* Crypto() { return nullptr; } | 606 virtual WebCrypto* Crypto() { return nullptr; } |
| 608 | 607 |
| 609 // Mojo --------------------------------------------------------------- | 608 // Mojo --------------------------------------------------------------- |
| 610 | 609 |
| 611 virtual service_manager::Connector* GetConnector(); | 610 virtual service_manager::Connector* GetConnector(); |
| 612 | 611 |
| 613 virtual InterfaceProvider* GetInterfaceProvider(); | 612 virtual InterfaceProvider* GetInterfaceProvider(); |
| 614 | 613 |
| 615 // Platform events ----------------------------------------------------- | 614 // Platform events ----------------------------------------------------- |
| 616 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. | 615 // Device Orientation, Device Motion, Battery, Gamepad. |
| 617 | 616 |
| 618 // Request the platform to start listening to the events of the specified | 617 // Request the platform to start listening to the events of the specified |
| 619 // type and notify the given listener (if not null) when there is an update. | 618 // type and notify the given listener (if not null) when there is an update. |
| 620 virtual void StartListening(WebPlatformEventType type, | 619 virtual void StartListening(WebPlatformEventType type, |
| 621 WebPlatformEventListener* listener) {} | 620 WebPlatformEventListener* listener) {} |
| 622 | 621 |
| 623 // Request the platform to stop listening to the specified event and no | 622 // Request the platform to stop listening to the specified event and no |
| 624 // longer notify the listener, if any. | 623 // longer notify the listener, if any. |
| 625 virtual void StopListening(WebPlatformEventType type) {} | 624 virtual void StopListening(WebPlatformEventType type) {} |
| 626 | 625 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 protected: | 716 protected: |
| 718 Platform(); | 717 Platform(); |
| 719 virtual ~Platform() {} | 718 virtual ~Platform() {} |
| 720 | 719 |
| 721 WebThread* main_thread_; | 720 WebThread* main_thread_; |
| 722 }; | 721 }; |
| 723 | 722 |
| 724 } // namespace blink | 723 } // namespace blink |
| 725 | 724 |
| 726 #endif | 725 #endif |
| OLD | NEW |