OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 virtual ~DRTDevToolsClient(); | 53 virtual ~DRTDevToolsClient(); |
54 void reset(); | 54 void reset(); |
55 | 55 |
56 // WebDevToolsFrontendClient implementation | 56 // WebDevToolsFrontendClient implementation |
57 virtual void sendMessageToBackend(const WebKit::WebString&); | 57 virtual void sendMessageToBackend(const WebKit::WebString&); |
58 | 58 |
59 virtual void activateWindow(); | 59 virtual void activateWindow(); |
60 virtual void closeWindow(); | 60 virtual void closeWindow(); |
61 virtual void dockWindow(); | 61 virtual void dockWindow(); |
62 virtual void undockWindow(); | 62 virtual void undockWindow(); |
| 63 virtual bool isUnderTest(); |
63 | 64 |
64 void asyncCall(const WebKit::WebString& args); | 65 void asyncCall(const WebKit::WebString& args); |
65 | 66 |
66 void allMessagesProcessed(); | 67 void allMessagesProcessed(); |
67 WebTestRunner::WebTaskList* taskList() { return &m_taskList; } | 68 WebTestRunner::WebTaskList* taskList() { return &m_taskList; } |
68 | 69 |
69 private: | 70 private: |
70 void call(const WebKit::WebString& args); | 71 void call(const WebKit::WebString& args); |
71 class AsyncCallTask: public WebTestRunner::WebMethodTask<DRTDevToolsClient>
{ | 72 class AsyncCallTask: public WebTestRunner::WebMethodTask<DRTDevToolsClient>
{ |
72 public: | 73 public: |
73 AsyncCallTask(DRTDevToolsClient* object, const WebKit::WebString& args) | 74 AsyncCallTask(DRTDevToolsClient* object, const WebKit::WebString& args) |
74 : WebTestRunner::WebMethodTask<DRTDevToolsClient>(object), m_args(ar
gs) { } | 75 : WebTestRunner::WebMethodTask<DRTDevToolsClient>(object), m_args(ar
gs) { } |
75 virtual void runIfValid() { m_object->call(m_args); } | 76 virtual void runIfValid() { m_object->call(m_args); } |
76 | 77 |
77 private: | 78 private: |
78 WebKit::WebString m_args; | 79 WebKit::WebString m_args; |
79 }; | 80 }; |
80 | 81 |
81 WebTestRunner::WebTaskList m_taskList; | 82 WebTestRunner::WebTaskList m_taskList; |
82 WebKit::WebView* m_webView; | 83 WebKit::WebView* m_webView; |
83 DRTDevToolsAgent* m_drtDevToolsAgent; | 84 DRTDevToolsAgent* m_drtDevToolsAgent; |
84 WTF::OwnPtr<WebKit::WebDevToolsFrontend> m_webDevToolsFrontend; | 85 WTF::OwnPtr<WebKit::WebDevToolsFrontend> m_webDevToolsFrontend; |
85 }; | 86 }; |
86 | 87 |
87 #endif // DRTDevToolsClient_h | 88 #endif // DRTDevToolsClient_h |
OLD | NEW |