OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 TEST_SHELL_DEVTOOLS_CLIENT_H_ | 5 #ifndef TEST_SHELL_DEVTOOLS_CLIENT_H_ |
6 #define TEST_SHELL_DEVTOOLS_CLIENT_H_ | 6 #define TEST_SHELL_DEVTOOLS_CLIENT_H_ |
7 | 7 |
8 #include "base/scoped_ptr.h" | 8 #include "base/scoped_ptr.h" |
9 #include "base/task.h" | 9 #include "base/task.h" |
10 | 10 |
(...skipping 10 matching lines...) Expand all Loading... |
21 class TestShellDevToolsAgent; | 21 class TestShellDevToolsAgent; |
22 | 22 |
23 class TestShellDevToolsClient: public WebKit::WebDevToolsFrontendClient { | 23 class TestShellDevToolsClient: public WebKit::WebDevToolsFrontendClient { |
24 | 24 |
25 public: | 25 public: |
26 TestShellDevToolsClient(TestShellDevToolsAgent* agent, | 26 TestShellDevToolsClient(TestShellDevToolsAgent* agent, |
27 WebKit::WebView* web_view); | 27 WebKit::WebView* web_view); |
28 virtual ~TestShellDevToolsClient(); | 28 virtual ~TestShellDevToolsClient(); |
29 | 29 |
30 // WebDevToolsFrontendClient implementation | 30 // WebDevToolsFrontendClient implementation |
31 virtual void sendMessageToAgent(const WebKit::WebDevToolsMessageData& data); | 31 virtual void sendMessageToBackend(const WebKit::WebString& data); |
32 virtual void sendDebuggerCommandToAgent(const WebKit::WebString& command); | 32 virtual void sendDebuggerCommandToAgent(const WebKit::WebString& command); |
33 | 33 |
34 virtual void activateWindow(); | 34 virtual void activateWindow(); |
35 virtual void closeWindow(); | 35 virtual void closeWindow(); |
36 virtual void dockWindow(); | 36 virtual void dockWindow(); |
37 virtual void undockWindow(); | 37 virtual void undockWindow(); |
38 | 38 |
39 void AsyncCall(const TestShellDevToolsCallArgs& args); | 39 void AsyncCall(const TestShellDevToolsCallArgs& args); |
40 | 40 |
41 void all_messages_processed(); | 41 void all_messages_processed(); |
42 | 42 |
43 private: | 43 private: |
44 void Call(const TestShellDevToolsCallArgs& args); | 44 void Call(const TestShellDevToolsCallArgs& args); |
45 | 45 |
46 ScopedRunnableMethodFactory<TestShellDevToolsClient> call_method_factory_; | 46 ScopedRunnableMethodFactory<TestShellDevToolsClient> call_method_factory_; |
47 TestShellDevToolsAgent* dev_tools_agent_; | 47 TestShellDevToolsAgent* dev_tools_agent_; |
48 WebKit::WebView* web_view_; | 48 WebKit::WebView* web_view_; |
49 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; | 49 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; |
50 | 50 |
51 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsClient); | 51 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsClient); |
52 }; | 52 }; |
53 | 53 |
54 #endif // TEST_SHELL_DEVTOOLS_CLIENT_H_ | 54 #endif // TEST_SHELL_DEVTOOLS_CLIENT_H_ |
OLD | NEW |