Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(246)

Side by Side Diff: third_party/WebKit/public/platform/Platform.h

Issue 2460723003: Enable connection to Mojo services from Blink (Closed)
Patch Set: Self-review Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
49 #include "WebSize.h" 49 #include "WebSize.h"
50 #include "WebSpeechSynthesizer.h" 50 #include "WebSpeechSynthesizer.h"
51 #include "WebStorageQuotaCallbacks.h" 51 #include "WebStorageQuotaCallbacks.h"
52 #include "WebStorageQuotaType.h" 52 #include "WebStorageQuotaType.h"
53 #include "WebString.h" 53 #include "WebString.h"
54 #include "WebURLError.h" 54 #include "WebURLError.h"
55 #include "WebVector.h" 55 #include "WebVector.h"
56 #include "base/metrics/user_metrics_action.h" 56 #include "base/metrics/user_metrics_action.h"
57 #include "cc/resources/shared_bitmap.h" 57 #include "cc/resources/shared_bitmap.h"
58 #include "cc/surfaces/frame_sink_id.h" 58 #include "cc/surfaces/frame_sink_id.h"
59 #include "services/service_manager/public/interfaces/connector.mojom-blink.h"
59 60
60 class GrContext; 61 class GrContext;
61 62
62 namespace gpu { 63 namespace gpu {
63 class GpuMemoryBufferManager; 64 class GpuMemoryBufferManager;
64 } 65 }
65 66
66 namespace v8 { 67 namespace v8 {
67 class Context; 68 class Context;
68 template <class T> 69 template <class T>
(...skipping 532 matching lines...) Expand 10 before | Expand all | Expand 10 after
601 } 602 }
602 603
603 // WebCrypto ---------------------------------------------------------- 604 // WebCrypto ----------------------------------------------------------
604 605
605 virtual WebCrypto* crypto() { return nullptr; } 606 virtual WebCrypto* crypto() { return nullptr; }
606 607
607 // Mojo --------------------------------------------------------------- 608 // Mojo ---------------------------------------------------------------
608 609
609 virtual InterfaceProvider* interfaceProvider(); 610 virtual InterfaceProvider* interfaceProvider();
610 611
612 virtual service_manager::mojom::blink::ConnectorPtr serviceConnector();
613
611 // Platform events ----------------------------------------------------- 614 // Platform events -----------------------------------------------------
612 // Device Orientation, Device Motion, Device Light, Battery, Gamepad. 615 // Device Orientation, Device Motion, Device Light, Battery, Gamepad.
613 616
614 // 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
615 // 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.
616 virtual void startListening(WebPlatformEventType type, 619 virtual void startListening(WebPlatformEventType type,
617 WebPlatformEventListener* listener) {} 620 WebPlatformEventListener* listener) {}
618 621
619 // 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
620 // longer notify the listener, if any. 623 // longer notify the listener, if any.
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
679 protected: 682 protected:
680 Platform(); 683 Platform();
681 virtual ~Platform() {} 684 virtual ~Platform() {}
682 685
683 WebThread* m_mainThread; 686 WebThread* m_mainThread;
684 }; 687 };
685 688
686 } // namespace blink 689 } // namespace blink
687 690
688 #endif 691 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698