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

Side by Side Diff: content/shell/renderer/webkit_test_runner.cc

Issue 264773002: Start moving WebUserMediaClient on the chromium side to be per frame instead of view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 6 years, 7 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 | Annotate | Revision Log
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 #include "content/shell/renderer/webkit_test_runner.h" 5 #include "content/shell/renderer/webkit_test_runner.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <clocale> 8 #include <clocale>
9 #include <cmath> 9 #include <cmath>
10 10
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 205
206 } // namespace 206 } // namespace
207 207
208 WebKitTestRunner::WebKitTestRunner(RenderView* render_view) 208 WebKitTestRunner::WebKitTestRunner(RenderView* render_view)
209 : RenderViewObserver(render_view), 209 : RenderViewObserver(render_view),
210 RenderViewObserverTracker<WebKitTestRunner>(render_view), 210 RenderViewObserverTracker<WebKitTestRunner>(render_view),
211 proxy_(NULL), 211 proxy_(NULL),
212 focused_view_(NULL), 212 focused_view_(NULL),
213 is_main_window_(false), 213 is_main_window_(false),
214 focus_on_next_commit_(false), 214 focus_on_next_commit_(false),
215 leak_detector_(new LeakDetector(this)) 215 leak_detector_(new LeakDetector(this)) {
216 {
217 UseMockMediaStreams(render_view);
218 } 216 }
219 217
220 WebKitTestRunner::~WebKitTestRunner() { 218 WebKitTestRunner::~WebKitTestRunner() {
221 } 219 }
222 220
223 // WebTestDelegate ----------------------------------------------------------- 221 // WebTestDelegate -----------------------------------------------------------
224 222
225 void WebKitTestRunner::clearEditCommand() { 223 void WebKitTestRunner::clearEditCommand() {
226 render_view()->ClearEditCommands(); 224 render_view()->ClearEditCommands();
227 } 225 }
(...skipping 526 matching lines...) Expand 10 before | Expand all | Expand 10 after
754 752
755 leak_detector_->TryLeakDetection(main_frame); 753 leak_detector_->TryLeakDetection(main_frame);
756 } 754 }
757 755
758 void WebKitTestRunner::ReportLeakDetectionResult( 756 void WebKitTestRunner::ReportLeakDetectionResult(
759 const LeakDetectionResult& report) { 757 const LeakDetectionResult& report) {
760 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 758 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
761 } 759 }
762 760
763 } // namespace content 761 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/renderer/test_runner/WebFrameTestProxy.h ('k') | content/test/layouttest_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698