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

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

Issue 143823004: Implement DeviceLight (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: fix webruntimefeatures Created 6 years, 9 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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 namespace blink { 54 namespace blink {
55 55
56 class WebAudioBus; 56 class WebAudioBus;
57 class WebBlobRegistry; 57 class WebBlobRegistry;
58 class WebContentDecryptionModule; 58 class WebContentDecryptionModule;
59 class WebClipboard; 59 class WebClipboard;
60 class WebCompositorSupport; 60 class WebCompositorSupport;
61 class WebCookieJar; 61 class WebCookieJar;
62 class WebCrypto; 62 class WebCrypto;
63 class WebDatabaseObserver; 63 class WebDatabaseObserver;
64 class WebDeviceLightListener;
64 class WebDeviceMotionListener; 65 class WebDeviceMotionListener;
65 class WebDeviceOrientationListener; 66 class WebDeviceOrientationListener;
66 class WebDiscardableMemory; 67 class WebDiscardableMemory;
67 class WebFallbackThemeEngine; 68 class WebFallbackThemeEngine;
68 class WebFileSystem; 69 class WebFileSystem;
69 class WebFileUtilities; 70 class WebFileUtilities;
70 class WebFlingAnimator; 71 class WebFlingAnimator;
71 class WebGestureCurveTarget; 72 class WebGestureCurveTarget;
72 class WebGestureCurve; 73 class WebGestureCurve;
73 class WebGraphicsContext3DProvider; 74 class WebGraphicsContext3DProvider;
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 595
595 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 596 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
596 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 597 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
597 598
598 599
599 // WebCrypto ---------------------------------------------------------- 600 // WebCrypto ----------------------------------------------------------
600 601
601 virtual WebCrypto* crypto() { return 0; } 602 virtual WebCrypto* crypto() { return 0; }
602 603
603 604
604 // Device Motion / Orientation ---------------------------------------- 605 // Device Motion / Orientation / Light ------------------------------------- ---
605 606
606 // Sets a Listener to listen for device motion data updates. 607 // Sets a Listener to listen for device motion data updates.
607 // If null, the platform stops providing device motion data to the current l istener. 608 // If null, the platform stops providing device motion data to the current l istener.
608 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } 609 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { }
609 610
610 // Sets a Listener to listen for device orientation data updates. 611 // Sets a Listener to listen for device orientation data updates.
611 // If null, the platform stops proving device orientation data to the curren t listener. 612 // If null, the platform stops providing device orientation data to the curr ent listener.
612 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { } 613 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { }
613 614
615 // Sets a Listener to listen for device light data updates.
616 // If null, the platform stops providing device light data to the current li stener.
617 virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { }
618
619
614 // Screen Orientation ------------------------------------------------- 620 // Screen Orientation -------------------------------------------------
615 621
616 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { } 622 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { }
617 virtual void lockOrientation(WebScreenOrientations) { } 623 virtual void lockOrientation(WebScreenOrientations) { }
618 virtual void unlockOrientation() { } 624 virtual void unlockOrientation() { }
619 625
620 626
621 // Quota ----------------------------------------------------------- 627 // Quota -----------------------------------------------------------
622 628
623 // Queries the storage partition's storage usage and quota information. 629 // Queries the storage partition's storage usage and quota information.
(...skipping 12 matching lines...) Expand all
636 virtual WebDatabaseObserver* databaseObserver() { return 0; } 642 virtual WebDatabaseObserver* databaseObserver() { return 0; }
637 643
638 644
639 protected: 645 protected:
640 virtual ~Platform() { } 646 virtual ~Platform() { }
641 }; 647 };
642 648
643 } // namespace blink 649 } // namespace blink
644 650
645 #endif 651 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698