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 WEBKIT_GLUE_DEVTOOLS_DOM_AGENT_H_ | 5 #ifndef WEBKIT_GLUE_DEVTOOLS_DOM_AGENT_H_ |
6 #define WEBKIT_GLUE_DEVTOOLS_DOM_AGENT_H_ | 6 #define WEBKIT_GLUE_DEVTOOLS_DOM_AGENT_H_ |
7 | 7 |
8 #include "webkit/glue/devtools/devtools_rpc.h" | 8 #include "webkit/glue/devtools/devtools_rpc.h" |
9 | 9 |
10 // DomAgent is a utility object that covers DOM-related functionality of the | 10 // DomAgent is a utility object that covers DOM-related functionality of the |
(...skipping 15 matching lines...) Expand all Loading... |
26 METHOD3(RemoveAttribute, int /* call_id */, int /* id */, \ | 26 METHOD3(RemoveAttribute, int /* call_id */, int /* id */, \ |
27 String /* name */) \ | 27 String /* name */) \ |
28 \ | 28 \ |
29 /* Sets text node value in the node with given id. */ \ | 29 /* Sets text node value in the node with given id. */ \ |
30 METHOD3(SetTextNodeValue, int /* call_id */, int /* id */, \ | 30 METHOD3(SetTextNodeValue, int /* call_id */, int /* id */, \ |
31 String /* text */) \ | 31 String /* text */) \ |
32 \ | 32 \ |
33 /* Perform search. */ \ | 33 /* Perform search. */ \ |
34 METHOD2(PerformSearch, int /* call_id */, String /* query */) \ | 34 METHOD2(PerformSearch, int /* call_id */, String /* query */) \ |
35 \ | 35 \ |
| 36 /* Requests that the element's style information is sent to the client. */ \ |
| 37 METHOD3(GetNodeStyles, int /* call_id */, int /* id */,\ |
| 38 bool /* author_only */) \ |
| 39 \ |
36 /* Tells dom agent that the client has lost all of the dom-related | 40 /* Tells dom agent that the client has lost all of the dom-related |
37 information and is no longer interested in the notifications related to the | 41 information and is no longer interested in the notifications related to the |
38 nodes issued earlier. */ \ | 42 nodes issued earlier. */ \ |
39 METHOD0(DiscardBindings) | 43 METHOD0(DiscardBindings) |
40 | 44 |
41 DEFINE_RPC_CLASS(DomAgent, DOM_AGENT_STRUCT) | 45 DEFINE_RPC_CLASS(DomAgent, DOM_AGENT_STRUCT) |
42 | 46 |
43 #define DOM_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ | 47 #define DOM_AGENT_DELEGATE_STRUCT(METHOD0, METHOD1, METHOD2, METHOD3, \ |
44 METHOD4) \ | 48 METHOD4) \ |
45 /* Response to GetChildNodes. */ \ | 49 /* Response to GetChildNodes. */ \ |
46 METHOD1(DidGetChildNodes, int /* call_id */) \ | 50 METHOD1(DidGetChildNodes, int /* call_id */) \ |
47 \ | 51 \ |
48 /* Perform search. */ \ | 52 /* Perform search. */ \ |
49 METHOD2(DidPerformSearch, int /* call_id */, Value /* results */) \ | 53 METHOD2(DidPerformSearch, int /* call_id */, Value /* results */) \ |
50 \ | 54 \ |
| 55 /* Response to GetNodeStyles. */ \ |
| 56 METHOD2(DidGetNodeStyles, int /* call_id */, Value /* styles */) \ |
| 57 \ |
51 /* Ack for the Set/RemoveAttribute, SetTextNodeValue. */ \ | 58 /* Ack for the Set/RemoveAttribute, SetTextNodeValue. */ \ |
52 METHOD2(DidApplyDomChange, int /* call_id */, bool /* success */) \ | 59 METHOD2(DidApplyDomChange, int /* call_id */, bool /* success */) \ |
53 \ | 60 \ |
54 /* Notifies the delegate that element's attributes are updated. */ \ | 61 /* Notifies the delegate that element's attributes are updated. */ \ |
55 METHOD2(AttributesUpdated, int /* id */, Value /* attributes */) \ | 62 METHOD2(AttributesUpdated, int /* id */, Value /* attributes */) \ |
56 \ | 63 \ |
57 /* Sends document element to the delegate. */ \ | 64 /* Sends document element to the delegate. */ \ |
58 METHOD1(SetDocumentElement, Value /* root */) \ | 65 METHOD1(SetDocumentElement, Value /* root */) \ |
59 \ | 66 \ |
60 /* Notifies the delegate that element's child nodes have been updated. */ \ | 67 /* Notifies the delegate that element's child nodes have been updated. */ \ |
61 METHOD2(SetChildNodes, int /* parent_id */, Value /* nodes */) \ | 68 METHOD2(SetChildNodes, int /* parent_id */, Value /* nodes */) \ |
62 \ | 69 \ |
63 /* Notifies the delegate that element's 'has children' state has been | 70 /* Notifies the delegate that element's 'has children' state has been |
64 updated */ \ | 71 updated */ \ |
65 METHOD2(HasChildrenUpdated, int /* id */, bool /* new_value */) \ | 72 METHOD2(HasChildrenUpdated, int /* id */, bool /* new_value */) \ |
66 \ | 73 \ |
67 /* Notifies the delegate that child node has been inserted. */ \ | 74 /* Notifies the delegate that child node has been inserted. */ \ |
68 METHOD3(ChildNodeInserted, int /* parent_id */ , int /* prev_id */, \ | 75 METHOD3(ChildNodeInserted, int /* parent_id */ , int /* prev_id */, \ |
69 Value /* node */) \ | 76 Value /* node */) \ |
70 \ | 77 \ |
71 /* Notifies the delegate that child node has been deleted. */ \ | 78 /* Notifies the delegate that child node has been deleted. */ \ |
72 METHOD2(ChildNodeRemoved, int /* parent_id */, int /* id */) | 79 METHOD2(ChildNodeRemoved, int /* parent_id */, int /* id */) |
73 | 80 |
74 DEFINE_RPC_CLASS(DomAgentDelegate, DOM_AGENT_DELEGATE_STRUCT) | 81 DEFINE_RPC_CLASS(DomAgentDelegate, DOM_AGENT_DELEGATE_STRUCT) |
75 | 82 |
76 #endif // WEBKIT_GLUE_DEVTOOLS_DOM_AGENT_H_ | 83 #endif // WEBKIT_GLUE_DEVTOOLS_DOM_AGENT_H_ |
OLD | NEW |