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

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

Issue 2808093006: [Device Service] Move Gamepad Blink headers to be part of the Gamepad client library (Closed)
Patch Set: rebase and address comments Created 3 years, 8 months 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
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/WebGamepad.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 25 matching lines...) Expand all
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" 43 #include "WebDeviceLightListener.h"
44 #include "WebFeaturePolicy.h" 44 #include "WebFeaturePolicy.h"
45 #include "WebGamepadListener.h" 45 #include "WebGamepadListener.h"
46 #include "WebGamepads.h"
47 #include "WebGestureDevice.h" 46 #include "WebGestureDevice.h"
48 #include "WebLocalizedString.h" 47 #include "WebLocalizedString.h"
49 #include "WebMessagePortChannel.h" 48 #include "WebMessagePortChannel.h"
50 #include "WebPlatformEventType.h" 49 #include "WebPlatformEventType.h"
51 #include "WebSize.h" 50 #include "WebSize.h"
52 #include "WebSpeechSynthesizer.h" 51 #include "WebSpeechSynthesizer.h"
53 #include "WebStorageQuotaCallbacks.h" 52 #include "WebStorageQuotaCallbacks.h"
54 #include "WebStorageQuotaType.h" 53 #include "WebStorageQuotaType.h"
55 #include "WebString.h" 54 #include "WebString.h"
56 #include "WebURLError.h" 55 #include "WebURLError.h"
57 #include "WebVector.h" 56 #include "WebVector.h"
58 #include "base/metrics/user_metrics_action.h" 57 #include "base/metrics/user_metrics_action.h"
59 #include "cc/resources/shared_bitmap.h" 58 #include "cc/resources/shared_bitmap.h"
60 #include "cc/surfaces/frame_sink_id.h" 59 #include "cc/surfaces/frame_sink_id.h"
61 #include "mojo/public/cpp/system/message_pipe.h" 60 #include "mojo/public/cpp/system/message_pipe.h"
62 61
62 namespace device {
63 class Gamepads;
64 }
65
63 namespace gpu { 66 namespace gpu {
64 class GpuMemoryBufferManager; 67 class GpuMemoryBufferManager;
65 } 68 }
66 69
67 namespace service_manager { 70 namespace service_manager {
68 class Connector; 71 class Connector;
69 } 72 }
70 73
71 namespace v8 { 74 namespace v8 {
72 class Context; 75 class Context;
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 276
274 // Cache Storage ---------------------------------------------------------- 277 // Cache Storage ----------------------------------------------------------
275 278
276 // The caller is responsible for deleting the returned object. 279 // The caller is responsible for deleting the returned object.
277 virtual WebServiceWorkerCacheStorage* CacheStorage(const WebSecurityOrigin&) { 280 virtual WebServiceWorkerCacheStorage* CacheStorage(const WebSecurityOrigin&) {
278 return nullptr; 281 return nullptr;
279 } 282 }
280 283
281 // Gamepad ------------------------------------------------------------- 284 // Gamepad -------------------------------------------------------------
282 285
283 virtual void SampleGamepads(WebGamepads& into) {} 286 virtual void SampleGamepads(device::Gamepads& into) {}
284 287
285 // History ------------------------------------------------------------- 288 // History -------------------------------------------------------------
286 289
287 // Returns the hash for the given canonicalized URL for use in visited 290 // Returns the hash for the given canonicalized URL for use in visited
288 // link coloring. 291 // link coloring.
289 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 292 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
290 size_t length) { 293 size_t length) {
291 return 0; 294 return 0;
292 } 295 }
293 296
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 protected: 717 protected:
715 Platform(); 718 Platform();
716 virtual ~Platform() {} 719 virtual ~Platform() {}
717 720
718 WebThread* main_thread_; 721 WebThread* main_thread_;
719 }; 722 };
720 723
721 } // namespace blink 724 } // namespace blink
722 725
723 #endif 726 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/public/BUILD.gn ('k') | third_party/WebKit/public/platform/WebGamepad.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698