summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 18:44:10 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-12 18:44:10 +0000
commit928b4088744cfb820c674106ed1d58d2067fc386 (patch)
tree1b0e0b537fe83c7efd3ec14d7f7f43aac1cf1e5b /webkit
parentd961508014c7d95571a3a7c1a65a0dbac17a3191 (diff)
downloadchromium_src-928b4088744cfb820c674106ed1d58d2067fc386.zip
chromium_src-928b4088744cfb820c674106ed1d58d2067fc386.tar.gz
chromium_src-928b4088744cfb820c674106ed1d58d2067fc386.tar.bz2
Fix test_shell_devtools_agent.cc to not depend on WebKit/chromium/src!
TBR=pfeldman Review URL: http://codereview.chromium.org/895004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@41454 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit')
-rw-r--r--webkit/tools/test_shell/test_shell_devtools_agent.cc13
-rw-r--r--webkit/tools/test_shell/test_shell_devtools_agent.h5
2 files changed, 8 insertions, 10 deletions
diff --git a/webkit/tools/test_shell/test_shell_devtools_agent.cc b/webkit/tools/test_shell/test_shell_devtools_agent.cc
index d517709..eeec750 100644
--- a/webkit/tools/test_shell/test_shell_devtools_agent.cc
+++ b/webkit/tools/test_shell/test_shell_devtools_agent.cc
@@ -2,24 +2,21 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h"
-#include "third_party/WebKit/WebKit/chromium/src/WebViewImpl.h"
+#include "webkit/tools/test_shell/test_shell_devtools_agent.h"
-#undef LOG
+#include "base/message_loop.h"
#include "grit/webkit_chromium_resources.h"
-#include "webkit/tools/test_shell/test_shell_devtools_agent.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebDevToolsAgent.h"
+#include "third_party/WebKit/WebKit/chromium/public/WebView.h"
#include "webkit/tools/test_shell/test_shell_devtools_callargs.h"
#include "webkit/tools/test_shell/test_shell_devtools_client.h"
#include "webkit/glue/webkit_glue.h"
-#include "base/message_loop.h"
-
using WebKit::WebCString;
using WebKit::WebDevToolsAgent;
using WebKit::WebDevToolsMessageData;
using WebKit::WebString;
using WebKit::WebView;
-using WebKit::WebViewImpl;
// static
void TestShellDevToolsAgent::DispatchMessageLoop() {
@@ -39,7 +36,7 @@ void TestShellDevToolsAgent::DispatchMessageLoop() {
TestShellDevToolsAgent::TestShellDevToolsAgent(WebView* web_view)
: call_method_factory_(this),
dev_tools_client_(NULL),
- web_view_(static_cast<WebViewImpl*>(web_view)) {
+ web_view_(web_view) {
static int dev_tools_agent_counter;
routing_id_ = ++dev_tools_agent_counter;
if (routing_id_ == 1)
diff --git a/webkit/tools/test_shell/test_shell_devtools_agent.h b/webkit/tools/test_shell/test_shell_devtools_agent.h
index 9ce2498..6bde4ca 100644
--- a/webkit/tools/test_shell/test_shell_devtools_agent.h
+++ b/webkit/tools/test_shell/test_shell_devtools_agent.h
@@ -11,7 +11,8 @@
namespace WebKit {
-class WebViewImpl;
+class WebDevToolsAgent;
+class WebView;
struct WebDevToolsMessageData;
} // namespace WebKit
@@ -52,7 +53,7 @@ class TestShellDevToolsAgent : public WebKit::WebDevToolsAgentClient {
TestShellDevToolsClient* dev_tools_client_;
int routing_id_;
WebKit::WebDevToolsAgent* web_dev_tools_agent_;
- WebKit::WebViewImpl* web_view_;
+ WebKit::WebView* web_view_;
DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsAgent);
};