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

Side by Side Diff: content/shell/renderer/layout_test/blink_test_runner.cc

Issue 2735773002: work in progress
Patch Set: Created 3 years, 9 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 #include "content/shell/renderer/layout_test/blink_test_runner.h" 5 #include "content/shell/renderer/layout_test/blink_test_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <clocale> 10 #include <clocale>
(...skipping 527 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 538
539 void BlinkTestRunner::GetBluetoothManualChooserEvents( 539 void BlinkTestRunner::GetBluetoothManualChooserEvents(
540 const base::Callback<void(const std::vector<std::string>&)>& callback) { 540 const base::Callback<void(const std::vector<std::string>&)>& callback) {
541 get_bluetooth_events_callbacks_.push_back(callback); 541 get_bluetooth_events_callbacks_.push_back(callback);
542 Send(new ShellViewHostMsg_GetBluetoothManualChooserEvents(routing_id())); 542 Send(new ShellViewHostMsg_GetBluetoothManualChooserEvents(routing_id()));
543 } 543 }
544 544
545 void BlinkTestRunner::SendBluetoothManualChooserEvent( 545 void BlinkTestRunner::SendBluetoothManualChooserEvent(
546 const std::string& event, 546 const std::string& event,
547 const std::string& argument) { 547 const std::string& argument) {
548 LOG(ERROR) << "[DJKim] BlinkTestRunner::SendBluetoothManualChooserEvent";
548 Send(new ShellViewHostMsg_SendBluetoothManualChooserEvent(routing_id(), event, 549 Send(new ShellViewHostMsg_SendBluetoothManualChooserEvent(routing_id(), event,
549 argument)); 550 argument));
550 } 551 }
551 552
552 void BlinkTestRunner::SetFocus(blink::WebView* web_view, bool focus) { 553 void BlinkTestRunner::SetFocus(blink::WebView* web_view, bool focus) {
553 RenderView* render_view = RenderView::FromWebView(web_view); 554 RenderView* render_view = RenderView::FromWebView(web_view);
554 if (render_view) // Check whether |web_view| has been already closed. 555 if (render_view) // Check whether |web_view| has been already closed.
555 SetFocusAndActivate(render_view, focus); 556 SetFocusAndActivate(render_view, focus);
556 } 557 }
557 558
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 void BlinkTestRunner::ReportLeakDetectionResult( 1036 void BlinkTestRunner::ReportLeakDetectionResult(
1036 const LeakDetectionResult& report) { 1037 const LeakDetectionResult& report) {
1037 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report)); 1038 Send(new ShellViewHostMsg_LeakDetectionDone(routing_id(), report));
1038 } 1039 }
1039 1040
1040 void BlinkTestRunner::OnDestruct() { 1041 void BlinkTestRunner::OnDestruct() {
1041 delete this; 1042 delete this;
1042 } 1043 }
1043 1044
1044 } // namespace content 1045 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698