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 246773007: Add setBatteryListener into Platform. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add double space between sections. Created 6 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 | « Source/modules/battery/BatteryDispatcher.cpp ('k') | public/platform/WebBatteryListener.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "WebStorageQuotaType.h" 48 #include "WebStorageQuotaType.h"
49 #include "WebString.h" 49 #include "WebString.h"
50 #include "WebURLError.h" 50 #include "WebURLError.h"
51 #include "WebVector.h" 51 #include "WebVector.h"
52 52
53 class GrContext; 53 class GrContext;
54 54
55 namespace blink { 55 namespace blink {
56 56
57 class WebAudioBus; 57 class WebAudioBus;
58 class WebBatteryStatusListener;
58 class WebBlobRegistry; 59 class WebBlobRegistry;
59 class WebContentDecryptionModule; 60 class WebContentDecryptionModule;
60 class WebClipboard; 61 class WebClipboard;
61 class WebCompositorSupport; 62 class WebCompositorSupport;
62 class WebConvertableToTraceFormat; 63 class WebConvertableToTraceFormat;
63 class WebCookieJar; 64 class WebCookieJar;
64 class WebCrypto; 65 class WebCrypto;
65 class WebDatabaseObserver; 66 class WebDatabaseObserver;
66 class WebDeviceMotionListener; 67 class WebDeviceMotionListener;
67 class WebDeviceOrientationListener; 68 class WebDeviceOrientationListener;
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R enderCallback*, const WebString& deviceId) { return 0; } 154 virtual WebAudioDevice* createAudioDevice(size_t bufferSize, unsigned number OfInputChannels, unsigned numberOfChannels, double sampleRate, WebAudioDevice::R enderCallback*, const WebString& deviceId) { return 0; }
154 155
155 156
156 // MIDI ---------------------------------------------------------------- 157 // MIDI ----------------------------------------------------------------
157 158
158 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform 159 // Creates a platform dependent WebMIDIAccessor. MIDIAccessor under platform
159 // creates and owns it. 160 // creates and owns it.
160 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return 0; } 161 virtual WebMIDIAccessor* createMIDIAccessor(WebMIDIAccessorClient*) { return 0; }
161 162
162 163
164 // Battery -------------------------------------------------------------
165
166 // Sets the listener for watching battery status updates.
167 virtual void setBatteryStatusListener(blink::WebBatteryStatusListener*) { }
168
169
163 // Blob ---------------------------------------------------------------- 170 // Blob ----------------------------------------------------------------
164 171
165 // Must return non-null. 172 // Must return non-null.
166 virtual WebBlobRegistry* blobRegistry() { return 0; } 173 virtual WebBlobRegistry* blobRegistry() { return 0; }
167 174
168 175
169 // Database ------------------------------------------------------------ 176 // Database ------------------------------------------------------------
170 177
171 // Opens a database file; dirHandle should be 0 if the caller does not need 178 // Opens a database file; dirHandle should be 0 if the caller does not need
172 // a handle to the directory containing this file 179 // a handle to the directory containing this file
(...skipping 469 matching lines...) Expand 10 before | Expand all | Expand 10 after
642 virtual WebDatabaseObserver* databaseObserver() { return 0; } 649 virtual WebDatabaseObserver* databaseObserver() { return 0; }
643 650
644 651
645 protected: 652 protected:
646 virtual ~Platform() { } 653 virtual ~Platform() { }
647 }; 654 };
648 655
649 } // namespace blink 656 } // namespace blink
650 657
651 #endif 658 #endif
OLDNEW
« no previous file with comments | « Source/modules/battery/BatteryDispatcher.cpp ('k') | public/platform/WebBatteryListener.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698