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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 } | 64 } |
65 | 65 |
66 namespace v8 { | 66 namespace v8 { |
67 class Context; | 67 class Context; |
68 template <class T> | 68 template <class T> |
69 class Local; | 69 class Local; |
70 } | 70 } |
71 | 71 |
72 namespace blink { | 72 namespace blink { |
73 | 73 |
| 74 class Connector; |
74 class InterfaceProvider; | 75 class InterfaceProvider; |
75 class WebAudioBus; | 76 class WebAudioBus; |
76 class WebAudioLatencyHint; | 77 class WebAudioLatencyHint; |
77 class WebBlobRegistry; | 78 class WebBlobRegistry; |
78 class WebCanvasCaptureHandler; | 79 class WebCanvasCaptureHandler; |
79 class WebClipboard; | 80 class WebClipboard; |
80 class WebCompositorSupport; | 81 class WebCompositorSupport; |
81 class WebCookieJar; | 82 class WebCookieJar; |
82 class WebCrypto; | 83 class WebCrypto; |
83 class WebDatabaseObserver; | 84 class WebDatabaseObserver; |
(...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 virtual bool allowScriptExtensionForServiceWorker(const WebURL& scriptUrl) { | 593 virtual bool allowScriptExtensionForServiceWorker(const WebURL& scriptUrl) { |
593 return false; | 594 return false; |
594 } | 595 } |
595 | 596 |
596 // WebCrypto ---------------------------------------------------------- | 597 // WebCrypto ---------------------------------------------------------- |
597 | 598 |
598 virtual WebCrypto* crypto() { return nullptr; } | 599 virtual WebCrypto* crypto() { return nullptr; } |
599 | 600 |
600 // Mojo --------------------------------------------------------------- | 601 // Mojo --------------------------------------------------------------- |
601 | 602 |
| 603 virtual Connector* connector(); |
| 604 |
602 virtual InterfaceProvider* interfaceProvider(); | 605 virtual InterfaceProvider* interfaceProvider(); |
603 | 606 |
604 // Sets up a connection to the ServiceManager by binding |remoteHandle| to a | |
605 // remote implementation of | |
606 // //service_manager/public/interfaces/connector.mojom. Using this connection | |
607 // the caller can then request connections to other services. | |
608 // NOTE: This handle is not strongly typed because neither the Blink nor | |
609 // Chromium types generated from connector.mojom should leak across the | |
610 // Blink-Chromium boundary. | |
611 virtual void bindServiceConnector(mojo::ScopedMessagePipeHandle remoteHandle); | |
612 | |
613 // Platform events ----------------------------------------------------- | 607 // Platform events ----------------------------------------------------- |
614 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. | 608 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. |
615 | 609 |
616 // Request the platform to start listening to the events of the specified | 610 // Request the platform to start listening to the events of the specified |
617 // type and notify the given listener (if not null) when there is an update. | 611 // type and notify the given listener (if not null) when there is an update. |
618 virtual void startListening(WebPlatformEventType type, | 612 virtual void startListening(WebPlatformEventType type, |
619 WebPlatformEventListener* listener) {} | 613 WebPlatformEventListener* listener) {} |
620 | 614 |
621 // Request the platform to stop listening to the specified event and no | 615 // Request the platform to stop listening to the specified event and no |
622 // longer notify the listener, if any. | 616 // longer notify the listener, if any. |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
715 protected: | 709 protected: |
716 Platform(); | 710 Platform(); |
717 virtual ~Platform() {} | 711 virtual ~Platform() {} |
718 | 712 |
719 WebThread* m_mainThread; | 713 WebThread* m_mainThread; |
720 }; | 714 }; |
721 | 715 |
722 } // namespace blink | 716 } // namespace blink |
723 | 717 |
724 #endif | 718 #endif |
OLD | NEW |