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

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: Change WebBatteryListener to WebBatteryStatusListener. 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 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired. 153 // Pass in (numberOfInputChannels > 0) if live/local audio input is desired.
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
163 // Battery -------------------------------------------------------------
164
165 // Sets the listener for watching battery status updates.
166 virtual void setBatteryStatusListener(blink::WebBatteryStatusListener*) { }
162 167
abarth-chromium 2014/04/23 20:17:38 Two blank lines between sections pls.
163 // Blob ---------------------------------------------------------------- 168 // Blob ----------------------------------------------------------------
164 169
165 // Must return non-null. 170 // Must return non-null.
166 virtual WebBlobRegistry* blobRegistry() { return 0; } 171 virtual WebBlobRegistry* blobRegistry() { return 0; }
167 172
168 173
169 // Database ------------------------------------------------------------ 174 // Database ------------------------------------------------------------
170 175
171 // Opens a database file; dirHandle should be 0 if the caller does not need 176 // Opens a database file; dirHandle should be 0 if the caller does not need
172 // a handle to the directory containing this file 177 // 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; } 647 virtual WebDatabaseObserver* databaseObserver() { return 0; }
643 648
644 649
645 protected: 650 protected:
646 virtual ~Platform() { } 651 virtual ~Platform() { }
647 }; 652 };
648 653
649 } // namespace blink 654 } // namespace blink
650 655
651 #endif 656 #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