diff options
Diffstat (limited to 'chromium/third_party/WebKit/public/platform/WebBatteryStatusListener.h')
-rw-r--r-- | chromium/third_party/WebKit/public/platform/WebBatteryStatusListener.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/public/platform/WebBatteryStatusListener.h b/chromium/third_party/WebKit/public/platform/WebBatteryStatusListener.h new file mode 100644 index 00000000000..f385b15b8f8 --- /dev/null +++ b/chromium/third_party/WebKit/public/platform/WebBatteryStatusListener.h @@ -0,0 +1,24 @@ +// Copyright 2014 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef WebBatteryStatusListener_h +#define WebBatteryStatusListener_h + +#include "WebBatteryStatus.h" + +namespace blink { + +class WebBatteryStatus; + +class WebBatteryStatusListener { +public: + // This method is called when a new battery status is available. + virtual void updateBatteryStatus(const WebBatteryStatus&) = 0; + + virtual ~WebBatteryStatusListener() { } +}; + +} // namespace blink + +#endif // WebBatteryStatusListener_h |