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

Side by Side Diff: content/shell/renderer/webkit_test_runner.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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ 5 #ifndef CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ 6 #define CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "content/public/common/page_state.h" 12 #include "content/public/common/page_state.h"
13 #include "content/public/renderer/render_view_observer.h" 13 #include "content/public/renderer/render_view_observer.h"
14 #include "content/public/renderer/render_view_observer_tracker.h" 14 #include "content/public/renderer/render_view_observer_tracker.h"
15 #include "content/shell/common/shell_test_configuration.h" 15 #include "content/shell/common/shell_test_configuration.h"
16 #include "content/shell/common/test_runner/test_preferences.h" 16 #include "content/shell/common/test_runner/test_preferences.h"
17 #include "content/shell/renderer/test_runner/WebTestDelegate.h" 17 #include "content/shell/renderer/test_runner/WebTestDelegate.h"
18 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h" 18 #include "third_party/WebKit/public/platform/WebScreenOrientationType.h"
19 #include "v8/include/v8.h" 19 #include "v8/include/v8.h"
20 20
21 class SkBitmap; 21 class SkBitmap;
22 class SkCanvas; 22 class SkCanvas;
23 23
24 namespace blink { 24 namespace blink {
25 class WebBatteryStatus;
25 class WebDeviceMotionData; 26 class WebDeviceMotionData;
26 class WebDeviceOrientationData; 27 class WebDeviceOrientationData;
27 struct WebRect; 28 struct WebRect;
28 } 29 }
29 30
30 namespace content { 31 namespace content {
31 32
32 class LeakDetector; 33 class LeakDetector;
33 class WebTestProxyBase; 34 class WebTestProxyBase;
34 struct LeakDetectionResult; 35 struct LeakDetectionResult;
(...skipping 24 matching lines...) Expand all
59 const blink::WebGamepad& gamepad) OVERRIDE; 60 const blink::WebGamepad& gamepad) OVERRIDE;
60 virtual void didDisconnectGamepad(int index, 61 virtual void didDisconnectGamepad(int index,
61 const blink::WebGamepad& gamepad) OVERRIDE; 62 const blink::WebGamepad& gamepad) OVERRIDE;
62 virtual void setDeviceMotionData( 63 virtual void setDeviceMotionData(
63 const blink::WebDeviceMotionData& data) OVERRIDE; 64 const blink::WebDeviceMotionData& data) OVERRIDE;
64 virtual void setDeviceOrientationData( 65 virtual void setDeviceOrientationData(
65 const blink::WebDeviceOrientationData& data) OVERRIDE; 66 const blink::WebDeviceOrientationData& data) OVERRIDE;
66 virtual void setScreenOrientation( 67 virtual void setScreenOrientation(
67 const blink::WebScreenOrientationType& orientation) OVERRIDE; 68 const blink::WebScreenOrientationType& orientation) OVERRIDE;
68 virtual void resetScreenOrientation() OVERRIDE; 69 virtual void resetScreenOrientation() OVERRIDE;
70 virtual void didChangeBatteryStatus(
71 const blink::WebBatteryStatus& status) OVERRIDE;
69 virtual void printMessage(const std::string& message) OVERRIDE; 72 virtual void printMessage(const std::string& message) OVERRIDE;
70 virtual void postTask(WebTask* task) OVERRIDE; 73 virtual void postTask(WebTask* task) OVERRIDE;
71 virtual void postDelayedTask(WebTask* task, long long ms) OVERRIDE; 74 virtual void postDelayedTask(WebTask* task, long long ms) OVERRIDE;
72 virtual blink::WebString registerIsolatedFileSystem( 75 virtual blink::WebString registerIsolatedFileSystem(
73 const blink::WebVector<blink::WebString>& absolute_filenames) OVERRIDE; 76 const blink::WebVector<blink::WebString>& absolute_filenames) OVERRIDE;
74 virtual long long getCurrentTimeInMillisecond() OVERRIDE; 77 virtual long long getCurrentTimeInMillisecond() OVERRIDE;
75 virtual blink::WebString getAbsoluteWebStringFromUTF8Path( 78 virtual blink::WebString getAbsoluteWebStringFromUTF8Path(
76 const std::string& utf8_path) OVERRIDE; 79 const std::string& utf8_path) OVERRIDE;
77 virtual blink::WebURL localFileToDataURL( 80 virtual blink::WebURL localFileToDataURL(
78 const blink::WebURL& file_url) OVERRIDE; 81 const blink::WebURL& file_url) OVERRIDE;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 155
153 scoped_ptr<LeakDetector> leak_detector_; 156 scoped_ptr<LeakDetector> leak_detector_;
154 bool needs_leak_detector_; 157 bool needs_leak_detector_;
155 158
156 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); 159 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner);
157 }; 160 };
158 161
159 } // namespace content 162 } // namespace content
160 163
161 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ 164 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/test_runner.cc ('k') | content/shell/renderer/webkit_test_runner.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698