OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_CLIENT_H_ | |
6 #define WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_CLIENT_H_ | |
7 | |
8 #include "base/memory/scoped_ptr.h" | |
9 #include "base/memory/weak_ptr.h" | |
10 | |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDevToolsFrontendCl
ient.h" | |
12 | |
13 namespace WebKit { | |
14 | |
15 class WebDevToolsFrontend; | |
16 | |
17 } // namespace WebKit | |
18 | |
19 class TestShellDevToolsCallArgs; | |
20 class TestShellDevToolsAgent; | |
21 | |
22 class TestShellDevToolsClient: public WebKit::WebDevToolsFrontendClient { | |
23 public: | |
24 TestShellDevToolsClient(TestShellDevToolsAgent* agent, | |
25 WebKit::WebView* web_view); | |
26 virtual ~TestShellDevToolsClient(); | |
27 | |
28 // WebDevToolsFrontendClient implementation | |
29 virtual void sendMessageToBackend(const WebKit::WebString& data); | |
30 | |
31 virtual void activateWindow(); | |
32 virtual void closeWindow(); | |
33 virtual void dockWindow(); | |
34 virtual void undockWindow(); | |
35 | |
36 void AsyncCall(const TestShellDevToolsCallArgs& args); | |
37 | |
38 void all_messages_processed(); | |
39 | |
40 private: | |
41 void Call(const TestShellDevToolsCallArgs& args); | |
42 | |
43 base::WeakPtrFactory<TestShellDevToolsClient> weak_factory_; | |
44 TestShellDevToolsAgent* dev_tools_agent_; | |
45 WebKit::WebView* web_view_; | |
46 scoped_ptr<WebKit::WebDevToolsFrontend> web_tools_frontend_; | |
47 | |
48 DISALLOW_COPY_AND_ASSIGN(TestShellDevToolsClient); | |
49 }; | |
50 | |
51 #endif // WEBKIT_TOOLS_TEST_SHELL_TEST_SHELL_DEVTOOLS_CLIENT_H_ | |
OLD | NEW |