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

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: Work in Adam's comments 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 523 matching lines...) Expand 10 before | Expand all | Expand 10 after
597 598
598 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { } 599 virtual void didStartWorkerRunLoop(const WebWorkerRunLoop&) { }
599 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { } 600 virtual void didStopWorkerRunLoop(const WebWorkerRunLoop&) { }
600 601
601 602
602 // WebCrypto ---------------------------------------------------------- 603 // WebCrypto ----------------------------------------------------------
603 604
604 virtual WebCrypto* crypto() { return 0; } 605 virtual WebCrypto* crypto() { return 0; }
605 606
606 607
607 // Device Motion / Orientation ---------------------------------------- 608 // Device Motion / Orientation / Light ------------------------------------- ---
608 609
609 // Sets a Listener to listen for device motion data updates. 610 // Sets a Listener to listen for device motion data updates.
610 // If null, the platform stops providing device motion data to the current l istener. 611 // If null, the platform stops providing device motion data to the current l istener.
611 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { } 612 virtual void setDeviceMotionListener(blink::WebDeviceMotionListener*) { }
612 613
613 // Sets a Listener to listen for device orientation data updates. 614 // Sets a Listener to listen for device orientation data updates.
614 // If null, the platform stops proving device orientation data to the curren t listener. 615 // If null, the platform stops providing device orientation data to the curr ent listener.
615 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { } 616 virtual void setDeviceOrientationListener(blink::WebDeviceOrientationListene r*) { }
616 617
618 // Sets a Listener to listen for device light data updates.
619 // If null, the platform stops providing device light data to the current li stener.
620 virtual void setDeviceLightListener(blink::WebDeviceLightListener*) { }
621
622
617 // Screen Orientation ------------------------------------------------- 623 // Screen Orientation -------------------------------------------------
618 624
619 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { } 625 virtual void setScreenOrientationListener(blink::WebScreenOrientationListene r*) { }
620 virtual void lockOrientation(WebScreenOrientations) { } 626 virtual void lockOrientation(WebScreenOrientations) { }
621 virtual void unlockOrientation() { } 627 virtual void unlockOrientation() { }
622 628
623 629
624 // Quota ----------------------------------------------------------- 630 // Quota -----------------------------------------------------------
625 631
626 // Queries the storage partition's storage usage and quota information. 632 // Queries the storage partition's storage usage and quota information.
(...skipping 12 matching lines...) Expand all
639 virtual WebDatabaseObserver* databaseObserver() { return 0; } 645 virtual WebDatabaseObserver* databaseObserver() { return 0; }
640 646
641 647
642 protected: 648 protected:
643 virtual ~Platform() { } 649 virtual ~Platform() { }
644 }; 650 };
645 651
646 } // namespace blink 652 } // namespace blink
647 653
648 #endif 654 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698