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

Side by Side Diff: content/shell/renderer/layout_test/webkit_test_runner.h

Issue 671663002: Standardize usage of virtual/override/final in content/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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"
(...skipping 22 matching lines...) Expand all
33 class LeakDetector; 33 class LeakDetector;
34 class WebTestProxyBase; 34 class WebTestProxyBase;
35 struct LeakDetectionResult; 35 struct LeakDetectionResult;
36 36
37 // This is the renderer side of the webkit test runner. 37 // This is the renderer side of the webkit test runner.
38 class WebKitTestRunner : public RenderViewObserver, 38 class WebKitTestRunner : public RenderViewObserver,
39 public RenderViewObserverTracker<WebKitTestRunner>, 39 public RenderViewObserverTracker<WebKitTestRunner>,
40 public WebTestDelegate { 40 public WebTestDelegate {
41 public: 41 public:
42 explicit WebKitTestRunner(RenderView* render_view); 42 explicit WebKitTestRunner(RenderView* render_view);
43 virtual ~WebKitTestRunner(); 43 ~WebKitTestRunner() override;
44 44
45 // RenderViewObserver implementation. 45 // RenderViewObserver implementation.
46 virtual bool OnMessageReceived(const IPC::Message& message) override; 46 bool OnMessageReceived(const IPC::Message& message) override;
47 virtual void DidClearWindowObject(blink::WebLocalFrame* frame) override; 47 void DidClearWindowObject(blink::WebLocalFrame* frame) override;
48 virtual void Navigate(const GURL& url) override; 48 void Navigate(const GURL& url) override;
49 virtual void DidCommitProvisionalLoad(blink::WebLocalFrame* frame, 49 void DidCommitProvisionalLoad(blink::WebLocalFrame* frame,
50 bool is_new_navigation) override; 50 bool is_new_navigation) override;
51 virtual void DidFailProvisionalLoad(blink::WebLocalFrame* frame, 51 void DidFailProvisionalLoad(blink::WebLocalFrame* frame,
52 const blink::WebURLError& error) override; 52 const blink::WebURLError& error) override;
53 53
54 // WebTestDelegate implementation. 54 // WebTestDelegate implementation.
55 virtual void ClearEditCommand() override; 55 void ClearEditCommand() override;
56 virtual void SetEditCommand(const std::string& name, 56 void SetEditCommand(const std::string& name,
57 const std::string& value) override; 57 const std::string& value) override;
58 virtual void SetGamepadProvider(scoped_ptr<RendererGamepadProvider>) override; 58 void SetGamepadProvider(scoped_ptr<RendererGamepadProvider>) override;
59 virtual void SetDeviceLightData(const double data) override; 59 void SetDeviceLightData(const double data) override;
60 virtual void SetDeviceMotionData( 60 void SetDeviceMotionData(const blink::WebDeviceMotionData& data) override;
61 const blink::WebDeviceMotionData& data) override; 61 void SetDeviceOrientationData(
62 virtual void SetDeviceOrientationData(
63 const blink::WebDeviceOrientationData& data) override; 62 const blink::WebDeviceOrientationData& data) override;
64 virtual void SetScreenOrientation( 63 void SetScreenOrientation(
65 const blink::WebScreenOrientationType& orientation) override; 64 const blink::WebScreenOrientationType& orientation) override;
66 virtual void ResetScreenOrientation() override; 65 void ResetScreenOrientation() override;
67 virtual void DidChangeBatteryStatus( 66 void DidChangeBatteryStatus(const blink::WebBatteryStatus& status) override;
68 const blink::WebBatteryStatus& status) override; 67 void PrintMessage(const std::string& message) override;
69 virtual void PrintMessage(const std::string& message) override; 68 void PostTask(WebTask* task) override;
70 virtual void PostTask(WebTask* task) override; 69 void PostDelayedTask(WebTask* task, long long ms) override;
71 virtual void PostDelayedTask(WebTask* task, long long ms) override; 70 blink::WebString RegisterIsolatedFileSystem(
72 virtual blink::WebString RegisterIsolatedFileSystem(
73 const blink::WebVector<blink::WebString>& absolute_filenames) override; 71 const blink::WebVector<blink::WebString>& absolute_filenames) override;
74 virtual long long GetCurrentTimeInMillisecond() override; 72 long long GetCurrentTimeInMillisecond() override;
75 virtual blink::WebString GetAbsoluteWebStringFromUTF8Path( 73 blink::WebString GetAbsoluteWebStringFromUTF8Path(
76 const std::string& utf8_path) override; 74 const std::string& utf8_path) override;
77 virtual blink::WebURL LocalFileToDataURL( 75 blink::WebURL LocalFileToDataURL(const blink::WebURL& file_url) override;
78 const blink::WebURL& file_url) override; 76 blink::WebURL RewriteLayoutTestsURL(const std::string& utf8_url) override;
79 virtual blink::WebURL RewriteLayoutTestsURL( 77 TestPreferences* Preferences() override;
80 const std::string& utf8_url) override; 78 void ApplyPreferences() override;
81 virtual TestPreferences* Preferences() override;
82 virtual void ApplyPreferences() override;
83 virtual std::string makeURLErrorDescription(const blink::WebURLError& error); 79 virtual std::string makeURLErrorDescription(const blink::WebURLError& error);
84 virtual void UseUnfortunateSynchronousResizeMode(bool enable) override; 80 void UseUnfortunateSynchronousResizeMode(bool enable) override;
85 virtual void EnableAutoResizeMode(const blink::WebSize& min_size, 81 void EnableAutoResizeMode(const blink::WebSize& min_size,
86 const blink::WebSize& max_size) override; 82 const blink::WebSize& max_size) override;
87 virtual void DisableAutoResizeMode(const blink::WebSize& new_size) override; 83 void DisableAutoResizeMode(const blink::WebSize& new_size) override;
88 virtual void ClearDevToolsLocalStorage() override; 84 void ClearDevToolsLocalStorage() override;
89 virtual void ShowDevTools(const std::string& settings, 85 void ShowDevTools(const std::string& settings,
90 const std::string& frontend_url) override; 86 const std::string& frontend_url) override;
91 virtual void CloseDevTools() override; 87 void CloseDevTools() override;
92 virtual void EvaluateInWebInspector(long call_id, 88 void EvaluateInWebInspector(long call_id, const std::string& script) override;
93 const std::string& script) override; 89 void ClearAllDatabases() override;
94 virtual void ClearAllDatabases() override; 90 void SetDatabaseQuota(int quota) override;
95 virtual void SetDatabaseQuota(int quota) override; 91 blink::WebNotificationPresenter::Permission CheckWebNotificationPermission(
96 virtual blink::WebNotificationPresenter::Permission 92 const GURL& origin) override;
97 CheckWebNotificationPermission(const GURL& origin) override; 93 void GrantWebNotificationPermission(const GURL& origin,
98 virtual void GrantWebNotificationPermission(const GURL& origin, 94 bool permission_granted) override;
99 bool permission_granted) override; 95 void ClearWebNotificationPermissions() override;
100 virtual void ClearWebNotificationPermissions() override; 96 void SetDeviceScaleFactor(float factor) override;
101 virtual void SetDeviceScaleFactor(float factor) override; 97 void SetDeviceColorProfile(const std::string& name) override;
102 virtual void SetDeviceColorProfile(const std::string& name) override; 98 void SetFocus(WebTestProxyBase* proxy, bool focus) override;
103 virtual void SetFocus(WebTestProxyBase* proxy, bool focus) override; 99 void SetAcceptAllCookies(bool accept) override;
104 virtual void SetAcceptAllCookies(bool accept) override; 100 std::string PathToLocalResource(const std::string& resource) override;
105 virtual std::string PathToLocalResource(const std::string& resource) override; 101 void SetLocale(const std::string& locale) override;
106 virtual void SetLocale(const std::string& locale) override; 102 void TestFinished() override;
107 virtual void TestFinished() override; 103 void CloseRemainingWindows() override;
108 virtual void CloseRemainingWindows() override; 104 void DeleteAllCookies() override;
109 virtual void DeleteAllCookies() override; 105 int NavigationEntryCount() override;
110 virtual int NavigationEntryCount() override; 106 void GoToOffset(int offset) override;
111 virtual void GoToOffset(int offset) override; 107 void Reload() override;
112 virtual void Reload() override; 108 void LoadURLForFrame(const blink::WebURL& url,
113 virtual void LoadURLForFrame(const blink::WebURL& url, 109 const std::string& frame_name) override;
114 const std::string& frame_name) override; 110 bool AllowExternalPages() override;
115 virtual bool AllowExternalPages() override; 111 std::string DumpHistoryForWindow(WebTestProxyBase* proxy) override;
116 virtual std::string DumpHistoryForWindow(WebTestProxyBase* proxy) override;
117 112
118 void Reset(); 113 void Reset();
119 114
120 void set_proxy(WebTestProxyBase* proxy) { proxy_ = proxy; } 115 void set_proxy(WebTestProxyBase* proxy) { proxy_ = proxy; }
121 WebTestProxyBase* proxy() const { return proxy_; } 116 WebTestProxyBase* proxy() const { return proxy_; }
122 117
123 void ReportLeakDetectionResult(const LeakDetectionResult& result); 118 void ReportLeakDetectionResult(const LeakDetectionResult& result);
124 119
125 private: 120 private:
126 // Message handlers. 121 // Message handlers.
(...skipping 30 matching lines...) Expand all
157 152
158 scoped_ptr<LeakDetector> leak_detector_; 153 scoped_ptr<LeakDetector> leak_detector_;
159 bool needs_leak_detector_; 154 bool needs_leak_detector_;
160 155
161 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner); 156 DISALLOW_COPY_AND_ASSIGN(WebKitTestRunner);
162 }; 157 };
163 158
164 } // namespace content 159 } // namespace content
165 160
166 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_ 161 #endif // CONTENT_SHELL_WEBKIT_TEST_RUNNER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698