OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 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 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace blink { | 37 namespace blink { |
38 | 38 |
39 class WebString; | 39 class WebString; |
40 struct WebPoint; | 40 struct WebPoint; |
41 | 41 |
42 class WebDevToolsAgent { | 42 class WebDevToolsAgent { |
43 public: | 43 public: |
44 virtual ~WebDevToolsAgent() {} | 44 virtual ~WebDevToolsAgent() {} |
45 | 45 |
46 virtual void attach(const WebString& hostId) = 0; | 46 virtual void attach(const WebString& hostId, int sessionId) = 0; |
47 virtual void reattach(const WebString& hostId, const WebString& savedState)
= 0; | 47 virtual void reattach(const WebString& hostId, int sessionId, const WebStrin
g& savedState) = 0; |
48 virtual void detach() = 0; | 48 virtual void detach() = 0; |
49 | 49 |
50 virtual void continueProgram() = 0; | 50 virtual void continueProgram() = 0; |
51 | 51 |
52 virtual void dispatchOnInspectorBackend(const WebString& message) = 0; | 52 virtual void dispatchOnInspectorBackend(int sessionId, const WebString& mess
age) = 0; |
53 | 53 |
54 virtual void inspectElementAt(const WebPoint&) = 0; | 54 virtual void inspectElementAt(const WebPoint&) = 0; |
55 | 55 |
56 // Exposed for TestRunner. | 56 // Exposed for TestRunner. |
57 virtual void evaluateInWebInspector(long callId, const WebString& script) =
0; | 57 virtual void evaluateInWebInspector(long callId, const WebString& script) =
0; |
58 virtual WebString evaluateInWebInspectorOverlay(const WebString& script) = 0
; | 58 virtual WebString evaluateInWebInspectorOverlay(const WebString& script) = 0
; |
59 | 59 |
60 class MessageDescriptor { | 60 class MessageDescriptor { |
61 public: | 61 public: |
62 virtual ~MessageDescriptor() { } | 62 virtual ~MessageDescriptor() { } |
63 virtual WebDevToolsAgent* agent() = 0; | 63 virtual WebDevToolsAgent* agent() = 0; |
64 virtual WebString message() = 0; | 64 virtual WebString message() = 0; |
65 }; | 65 }; |
66 // Asynchronously request debugger to pause immediately and run the command. | 66 // Asynchronously request debugger to pause immediately and run the command. |
67 BLINK_EXPORT static void interruptAndDispatch(MessageDescriptor*); | 67 BLINK_EXPORT static void interruptAndDispatch(int sessionId, MessageDescript
or*); |
68 BLINK_EXPORT static bool shouldInterruptForMessage(const WebString&); | 68 BLINK_EXPORT static bool shouldInterruptForMessage(const WebString&); |
69 | 69 |
70 }; | 70 }; |
71 | 71 |
72 } // namespace blink | 72 } // namespace blink |
73 | 73 |
74 #endif | 74 #endif |
OLD | NEW |