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

Side by Side Diff: content/renderer/battery_status/fake_battery_status_dispatcher.h

Issue 298263002: Battery Status API: add testing support for LayoutTests. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 6 years, 6 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_BATTERY_STATUS_FAKE_BATTERY_STATUS_DISPATCHER_H_
6 #define CONTENT_RENDERER_BATTERY_STATUS_FAKE_BATTERY_STATUS_DISPATCHER_H_
7
8 #include "base/macros.h"
9
10 namespace blink {
11 class WebBatteryStatus;
12 class WebBatteryStatusListener;
13 }
14
15 namespace content {
16
17 class FakeBatteryStatusDispatcher {
18 public:
19 FakeBatteryStatusDispatcher();
20
21 void SetListener(blink::WebBatteryStatusListener* listener);
22 void PostBatteryStatusChange(const blink::WebBatteryStatus& status);
23
24 private:
25 blink::WebBatteryStatusListener* listener_;
26
27 DISALLOW_COPY_AND_ASSIGN(FakeBatteryStatusDispatcher);
28 };
29
30 } // namespace content
31
32 #endif // CONTENT_RENDERER_BATTERY_STATUS_FAKE_BATTERY_STATUS_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/battery_status/fake_battery_status_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698