| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 #include "WebPlatformEventType.h" | 49 #include "WebPlatformEventType.h" |
| 50 #include "WebSize.h" | 50 #include "WebSize.h" |
| 51 #include "WebSpeechSynthesizer.h" | 51 #include "WebSpeechSynthesizer.h" |
| 52 #include "WebStorageQuotaCallbacks.h" | 52 #include "WebStorageQuotaCallbacks.h" |
| 53 #include "WebStorageQuotaType.h" | 53 #include "WebStorageQuotaType.h" |
| 54 #include "WebString.h" | 54 #include "WebString.h" |
| 55 #include "WebURLError.h" | 55 #include "WebURLError.h" |
| 56 #include "WebVector.h" | 56 #include "WebVector.h" |
| 57 #include "base/metrics/user_metrics_action.h" | 57 #include "base/metrics/user_metrics_action.h" |
| 58 | 58 |
| 59 #include "mojo/public/cpp/bindings/interface_request.h" | |
| 60 #include "mojo/public/cpp/system/core.h" | |
| 61 | |
| 62 class GrContext; | 59 class GrContext; |
| 63 | 60 |
| 64 namespace blink { | 61 namespace blink { |
| 65 | 62 |
| 63 class ServiceRegistry; |
| 66 class WebAudioBus; | 64 class WebAudioBus; |
| 67 class WebBlobRegistry; | 65 class WebBlobRegistry; |
| 68 class WebCanvasCaptureHandler; | 66 class WebCanvasCaptureHandler; |
| 69 class WebClipboard; | 67 class WebClipboard; |
| 70 class WebCompositorSupport; | 68 class WebCompositorSupport; |
| 71 class WebCookieJar; | 69 class WebCookieJar; |
| 72 class WebCrypto; | 70 class WebCrypto; |
| 73 class WebDatabaseObserver; | 71 class WebDatabaseObserver; |
| 74 class WebPlatformEventListener; | 72 class WebPlatformEventListener; |
| 75 class WebFallbackThemeEngine; | 73 class WebFallbackThemeEngine; |
| (...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 | 534 |
| 537 // WebWorker ---------------------------------------------------------- | 535 // WebWorker ---------------------------------------------------------- |
| 538 | 536 |
| 539 virtual void didStartWorkerThread() { } | 537 virtual void didStartWorkerThread() { } |
| 540 virtual void willStopWorkerThread() { } | 538 virtual void willStopWorkerThread() { } |
| 541 | 539 |
| 542 // WebCrypto ---------------------------------------------------------- | 540 // WebCrypto ---------------------------------------------------------- |
| 543 | 541 |
| 544 virtual WebCrypto* crypto() { return nullptr; } | 542 virtual WebCrypto* crypto() { return nullptr; } |
| 545 | 543 |
| 544 // Mojo --------------------------------------------------------------- |
| 545 |
| 546 virtual ServiceRegistry* serviceRegistry(); |
| 546 | 547 |
| 547 // Platform events ----------------------------------------------------- | 548 // Platform events ----------------------------------------------------- |
| 548 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. | 549 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. |
| 549 | 550 |
| 550 // Connects the mojo handle to the remote service provider. | |
| 551 template <typename Interface> | |
| 552 void connectToRemoteService(mojo::InterfaceRequest<Interface> ptr) | |
| 553 { | |
| 554 connectToRemoteService(Interface::Name_, ptr.PassMessagePipe()); | |
| 555 } | |
| 556 virtual void connectToRemoteService(const char* name, mojo::ScopedMessagePip
eHandle handle) { } | |
| 557 | |
| 558 // Request the platform to start listening to the events of the specified | 551 // Request the platform to start listening to the events of the specified |
| 559 // type and notify the given listener (if not null) when there is an update. | 552 // type and notify the given listener (if not null) when there is an update. |
| 560 virtual void startListening(WebPlatformEventType type, WebPlatformEventListe
ner* listener) { } | 553 virtual void startListening(WebPlatformEventType type, WebPlatformEventListe
ner* listener) { } |
| 561 | 554 |
| 562 // Request the platform to stop listening to the specified event and no | 555 // Request the platform to stop listening to the specified event and no |
| 563 // longer notify the listener, if any. | 556 // longer notify the listener, if any. |
| 564 virtual void stopListening(WebPlatformEventType type) { } | 557 virtual void stopListening(WebPlatformEventType type) { } |
| 565 | 558 |
| 566 // This method converts from the supplied DOM code enum to the | 559 // This method converts from the supplied DOM code enum to the |
| 567 // embedder's DOM code value for the key pressed. |domCode| values are | 560 // embedder's DOM code value for the key pressed. |domCode| values are |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 636 protected: | 629 protected: |
| 637 Platform(); | 630 Platform(); |
| 638 virtual ~Platform() { } | 631 virtual ~Platform() { } |
| 639 | 632 |
| 640 WebThread* m_mainThread; | 633 WebThread* m_mainThread; |
| 641 }; | 634 }; |
| 642 | 635 |
| 643 } // namespace blink | 636 } // namespace blink |
| 644 | 637 |
| 645 #endif | 638 #endif |
| OLD | NEW |