OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" | 5 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsAgent.h" |
6 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h
" | 6 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontend.h
" |
7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" | 7 #include "third_party/WebKit/Source/WebKit/chromium/public/WebFrame.h" |
8 #include "third_party/WebKit/Source/WebKit/chromium/public/WebString.h" | 8 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" |
9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" | 9 #include "third_party/WebKit/Source/WebKit/chromium/public/WebScriptSource.h" |
10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" | 10 #include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h" |
11 | 11 |
12 #undef LOG | 12 #undef LOG |
13 #include "webkit/tools/test_shell/test_shell_devtools_agent.h" | 13 #include "webkit/tools/test_shell/test_shell_devtools_agent.h" |
14 #include "webkit/tools/test_shell/test_shell_devtools_callargs.h" | 14 #include "webkit/tools/test_shell/test_shell_devtools_callargs.h" |
15 #include "webkit/tools/test_shell/test_shell_devtools_client.h" | 15 #include "webkit/tools/test_shell/test_shell_devtools_client.h" |
16 | 16 |
17 #include "base/bind.h" | 17 #include "base/bind.h" |
18 #include "base/command_line.h" | 18 #include "base/command_line.h" |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 web_tools_frontend_->dispatchOnInspectorFrontend(args.data_); | 75 web_tools_frontend_->dispatchOnInspectorFrontend(args.data_); |
76 if (TestShellDevToolsCallArgs::calls_count() == 1) | 76 if (TestShellDevToolsCallArgs::calls_count() == 1) |
77 all_messages_processed(); | 77 all_messages_processed(); |
78 } | 78 } |
79 | 79 |
80 void TestShellDevToolsClient::all_messages_processed() { | 80 void TestShellDevToolsClient::all_messages_processed() { |
81 web_view_->mainFrame()->executeScript(WebKit::WebScriptSource( | 81 web_view_->mainFrame()->executeScript(WebKit::WebScriptSource( |
82 WebString::fromUTF8("if (window.WebInspector && " | 82 WebString::fromUTF8("if (window.WebInspector && " |
83 "WebInspector.queuesAreEmpty) WebInspector.queuesAreEmpty();"))); | 83 "WebInspector.queuesAreEmpty) WebInspector.queuesAreEmpty();"))); |
84 } | 84 } |
OLD | NEW |