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

Side by Side Diff: Source/Platform/chromium/public/Platform.h

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: moved tests to be treated in a separate CL Created 7 years, 7 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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 class GrContext; 48 class GrContext;
49 49
50 namespace WebKit { 50 namespace WebKit {
51 51
52 class WebAudioBus; 52 class WebAudioBus;
53 class WebBlobRegistry; 53 class WebBlobRegistry;
54 class WebClipboard; 54 class WebClipboard;
55 class WebCompositorSupport; 55 class WebCompositorSupport;
56 class WebCookieJar; 56 class WebCookieJar;
57 class WebDeviceMotionListener;
57 class WebDiscardableMemory; 58 class WebDiscardableMemory;
58 class WebFallbackThemeEngine; 59 class WebFallbackThemeEngine;
59 class WebFileSystem; 60 class WebFileSystem;
60 class WebFileUtilities; 61 class WebFileUtilities;
61 class WebFlingAnimator; 62 class WebFlingAnimator;
62 class WebGestureCurveTarget; 63 class WebGestureCurveTarget;
63 class WebGestureCurve; 64 class WebGestureCurve;
64 class WebGraphicsContext3DProvider; 65 class WebGraphicsContext3DProvider;
65 class WebHyphenator; 66 class WebHyphenator;
66 class WebMediaStreamCenter; 67 class WebMediaStreamCenter;
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
503 504
504 // May return null if WebRTC functionality is not avaliable or out of resour ces. 505 // May return null if WebRTC functionality is not avaliable or out of resour ces.
505 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return 0; } 506 virtual WebMediaStreamCenter* createMediaStreamCenter(WebMediaStreamCenterCl ient*) { return 0; }
506 507
507 508
508 // WebWorker ---------------------------------------------------------- 509 // WebWorker ----------------------------------------------------------
509 510
510 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 511 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
511 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 512 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
512 513
514 // Device Motion / Orientation ----------------------------------------
darin (slow to review) 2013/05/23 19:08:09 nit: convention in this file is to have two new li
timvolodine 2013/05/23 19:30:31 Done.
515
516 // Sets a Listener to listen for device motion data updates.
517 // If null, the platform stops providing device motion data to the current l istener.
518 virtual void setDeviceMotionListener(WebKit::WebDeviceMotionListener*) { }
519
513 protected: 520 protected:
514 virtual ~Platform() { } 521 virtual ~Platform() { }
515 }; 522 };
516 523
517 } // namespace WebKit 524 } // namespace WebKit
518 525
519 #endif 526 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698