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 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
113 | 113 |
114 // Gets the accessibility object for this document. | 114 // Gets the accessibility object for this document. |
115 BLINK_EXPORT WebAXObject AccessibilityObject() const; | 115 BLINK_EXPORT WebAXObject AccessibilityObject() const; |
116 | 116 |
117 // Gets the accessibility object for an object on this page by ID. | 117 // Gets the accessibility object for an object on this page by ID. |
118 BLINK_EXPORT WebAXObject AccessibilityObjectFromID(int ax_id) const; | 118 BLINK_EXPORT WebAXObject AccessibilityObjectFromID(int ax_id) const; |
119 | 119 |
120 // Gets the accessibility object that has focus. | 120 // Gets the accessibility object that has focus. |
121 BLINK_EXPORT WebAXObject FocusedAccessibilityObject() const; | 121 BLINK_EXPORT WebAXObject FocusedAccessibilityObject() const; |
122 | 122 |
123 // Inserts the given CSS source code as a stylesheet in the document. | 123 // Inserts the given CSS source code as a stylesheet in the document, and |
124 BLINK_EXPORT void InsertStyleSheet(const WebString& source_code); | 124 // return its id. |
125 BLINK_EXPORT int InsertStyleSheet(const WebString& source_code); | |
rune
2017/05/16 09:00:59
Could you use a typedef with a suitable id type na
limasdf
2017/05/18 12:32:53
Done.
| |
126 | |
127 // Removes the CSS which was previously inserted by a call to | |
128 // InsertStyleSheet(). Returns true on success. False means that there's no | |
129 // corresponding stylesheet. | |
130 BLINK_EXPORT bool RemoveInsertedStyleSheet(int id); | |
rune
2017/05/16 09:00:59
Is a return value necessary here?
limasdf
2017/05/18 12:32:53
I was thinking the extension api should return an
| |
125 | 131 |
rune
2017/05/16 09:00:59
These API methods should have a unit test.
limasdf
2017/05/18 12:32:53
Done.
| |
126 // Arranges to call WebFrameClient::didMatchCSS(frame(), ...) when one of | 132 // Arranges to call WebFrameClient::didMatchCSS(frame(), ...) when one of |
127 // the selectors matches or stops matching an element in this document. | 133 // the selectors matches or stops matching an element in this document. |
128 // Each call to this method overrides any previous calls. | 134 // Each call to this method overrides any previous calls. |
129 BLINK_EXPORT void WatchCSSSelectors(const WebVector<WebString>& selectors); | 135 BLINK_EXPORT void WatchCSSSelectors(const WebVector<WebString>& selectors); |
130 | 136 |
131 BLINK_EXPORT WebVector<WebDraggableRegion> DraggableRegions() const; | 137 BLINK_EXPORT WebVector<WebDraggableRegion> DraggableRegions() const; |
132 | 138 |
133 BLINK_EXPORT v8::Local<v8::Value> RegisterEmbedderCustomElement( | 139 BLINK_EXPORT v8::Local<v8::Value> RegisterEmbedderCustomElement( |
134 const WebString& name, | 140 const WebString& name, |
135 v8::Local<v8::Value> options, | 141 v8::Local<v8::Value> options, |
136 WebExceptionCode&); | 142 WebExceptionCode&); |
137 | 143 |
138 BLINK_EXPORT WebURL ManifestURL() const; | 144 BLINK_EXPORT WebURL ManifestURL() const; |
139 BLINK_EXPORT bool ManifestUseCredentials() const; | 145 BLINK_EXPORT bool ManifestUseCredentials() const; |
140 BLINK_EXPORT WebDistillabilityFeatures DistillabilityFeatures(); | 146 BLINK_EXPORT WebDistillabilityFeatures DistillabilityFeatures(); |
141 | 147 |
142 #if BLINK_IMPLEMENTATION | 148 #if BLINK_IMPLEMENTATION |
143 BLINK_EXPORT WebDocument(Document*); | 149 BLINK_EXPORT WebDocument(Document*); |
144 BLINK_EXPORT WebDocument& operator=(Document*); | 150 BLINK_EXPORT WebDocument& operator=(Document*); |
145 BLINK_EXPORT operator Document*() const; | 151 BLINK_EXPORT operator Document*() const; |
146 #endif | 152 #endif |
147 }; | 153 }; |
148 | 154 |
149 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); | 155 DECLARE_WEB_NODE_TYPE_CASTS(WebDocument); |
150 | 156 |
151 } // namespace blink | 157 } // namespace blink |
152 | 158 |
153 #endif | 159 #endif |
OLD | NEW |