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

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: clean up code 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
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"
60 #include "device/gamepad/public/cpp/gamepads.h"
61 #include "mojo/public/cpp/system/message_pipe.h" 61 #include "mojo/public/cpp/system/message_pipe.h"
62 62
63 namespace gpu { 63 namespace gpu {
64 class GpuMemoryBufferManager; 64 class GpuMemoryBufferManager;
65 } 65 }
66 66
67 namespace service_manager { 67 namespace service_manager {
68 class Connector; 68 class Connector;
69 } 69 }
70 70
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 273
274 // Cache Storage ---------------------------------------------------------- 274 // Cache Storage ----------------------------------------------------------
275 275
276 // The caller is responsible for deleting the returned object. 276 // The caller is responsible for deleting the returned object.
277 virtual WebServiceWorkerCacheStorage* CacheStorage(const WebSecurityOrigin&) { 277 virtual WebServiceWorkerCacheStorage* CacheStorage(const WebSecurityOrigin&) {
278 return nullptr; 278 return nullptr;
279 } 279 }
280 280
281 // Gamepad ------------------------------------------------------------- 281 // Gamepad -------------------------------------------------------------
282 282
283 virtual void SampleGamepads(WebGamepads& into) {} 283 virtual void SampleGamepads(device::Gamepads& into) {}
jam 2017/04/12 23:02:19 this can just be forward declared and you don't ne
juncai 2017/04/13 23:55:52 Done.
284 284
285 // History ------------------------------------------------------------- 285 // History -------------------------------------------------------------
286 286
287 // Returns the hash for the given canonicalized URL for use in visited 287 // Returns the hash for the given canonicalized URL for use in visited
288 // link coloring. 288 // link coloring.
289 virtual unsigned long long VisitedLinkHash(const char* canonical_url, 289 virtual unsigned long long VisitedLinkHash(const char* canonical_url,
290 size_t length) { 290 size_t length) {
291 return 0; 291 return 0;
292 } 292 }
293 293
(...skipping 420 matching lines...) Expand 10 before | Expand all | Expand 10 after
714 protected: 714 protected:
715 Platform(); 715 Platform();
716 virtual ~Platform() {} 716 virtual ~Platform() {}
717 717
718 WebThread* main_thread_; 718 WebThread* main_thread_;
719 }; 719 };
720 720
721 } // namespace blink 721 } // namespace blink
722 722
723 #endif 723 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698