Chromium Code Reviews| Index: content/renderer/battery_status/fake_battery_status_dispatcher.h |
| diff --git a/content/renderer/battery_status/fake_battery_status_dispatcher.h b/content/renderer/battery_status/fake_battery_status_dispatcher.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..90a51f0eb01c6e046a51aa5a08894455b0309023 |
| --- /dev/null |
| +++ b/content/renderer/battery_status/fake_battery_status_dispatcher.h |
| @@ -0,0 +1,32 @@ |
| +// 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 CONTENT_RENDERER_BATTERY_STATUS_FAKE_BATTERY_STATUS_DISPATCHER_H_ |
| +#define CONTENT_RENDERER_BATTERY_STATUS_FAKE_BATTERY_STATUS_DISPATCHER_H_ |
| + |
| +#include "content/public/renderer/render_process_observer.h" |
|
jochen (gone - plz use gerrit)
2014/05/28 12:08:17
not needed?
timvolodine
2014/05/29 08:52:06
Done.
|
| + |
| +namespace blink { |
| +class WebBatteryStatus; |
| +class WebBatteryStatusListener; |
| +} |
| + |
| +namespace content { |
| + |
| +class FakeBatteryStatusDispatcher { |
| + public: |
| + FakeBatteryStatusDispatcher(); |
| + |
| + void SetListener(blink::WebBatteryStatusListener* listener); |
| + void PostBatteryStatusChange(const blink::WebBatteryStatus& status); |
| + |
| + private: |
| + blink::WebBatteryStatusListener* listener_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(FakeBatteryStatusDispatcher); |
| +}; |
| + |
| +} // namespace content |
| + |
| +#endif // CONTENT_RENDERER_BATTERY_STATUS_FAKE_BATTERY_STATUS_DISPATCHER_H_ |