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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 } | 45 } |
46 namespace WTF { template <typename T> class PassRefPtr; } | 46 namespace WTF { template <typename T> class PassRefPtr; } |
47 #endif | 47 #endif |
48 | 48 |
49 namespace v8 { | 49 namespace v8 { |
50 class Value; | 50 class Value; |
51 template <class T> class Handle; | 51 template <class T> class Handle; |
52 } | 52 } |
53 | 53 |
54 namespace WebKit { | 54 namespace WebKit { |
55 class WebAccessibilityObject; | 55 class WebAXObject; |
56 class WebDocumentType; | 56 class WebDocumentType; |
57 class WebElement; | 57 class WebElement; |
58 class WebFormElement; | 58 class WebFormElement; |
59 class WebFrame; | 59 class WebFrame; |
60 class WebNodeCollection; | 60 class WebNodeCollection; |
61 class WebNodeList; | 61 class WebNodeList; |
62 class WebString; | 62 class WebString; |
63 class WebURL; | 63 class WebURL; |
64 | 64 |
65 // Provides readonly access to some properties of a DOM document. | 65 // Provides readonly access to some properties of a DOM document. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 WEBKIT_EXPORT WebElement fullScreenElement() const; | 117 WEBKIT_EXPORT WebElement fullScreenElement() const; |
118 WEBKIT_EXPORT WebDOMEvent createEvent(const WebString& eventType); | 118 WEBKIT_EXPORT WebDOMEvent createEvent(const WebString& eventType); |
119 WEBKIT_EXPORT WebReferrerPolicy referrerPolicy() const; | 119 WEBKIT_EXPORT WebReferrerPolicy referrerPolicy() const; |
120 WEBKIT_EXPORT WebElement createElement(const WebString& tagName); | 120 WEBKIT_EXPORT WebElement createElement(const WebString& tagName); |
121 | 121 |
122 // Accessibility support. These methods should only be called on the | 122 // Accessibility support. These methods should only be called on the |
123 // top-level document, because one accessibility cache spans all of | 123 // top-level document, because one accessibility cache spans all of |
124 // the documents on the page. | 124 // the documents on the page. |
125 | 125 |
126 // Gets the accessibility object for this document. | 126 // Gets the accessibility object for this document. |
127 WEBKIT_EXPORT WebAccessibilityObject accessibilityObject() const; | 127 WEBKIT_EXPORT WebAXObject accessibilityObject() const; |
128 | 128 |
129 // Gets the accessibility object for an object on this page by ID. | 129 // Gets the accessibility object for an object on this page by ID. |
130 WEBKIT_EXPORT WebAccessibilityObject accessibilityObjectFromID(int axID) con
st; | 130 WEBKIT_EXPORT WebAXObject accessibilityObjectFromID(int axID) const; |
131 // Inserts the given CSS source code as a user stylesheet in the document. | 131 // Inserts the given CSS source code as a user stylesheet in the document. |
132 // Meant for programatic/one-off injection, as opposed to | 132 // Meant for programatic/one-off injection, as opposed to |
133 // WebView::addUserStyleSheet which inserts styles for the lifetime of the | 133 // WebView::addUserStyleSheet which inserts styles for the lifetime of the |
134 // WebView. | 134 // WebView. |
135 WEBKIT_EXPORT void insertUserStyleSheet(const WebString& sourceCode, UserSty
leLevel); | 135 WEBKIT_EXPORT void insertUserStyleSheet(const WebString& sourceCode, UserSty
leLevel); |
136 | 136 |
137 WEBKIT_EXPORT WebVector<WebDraggableRegion> draggableRegions() const; | 137 WEBKIT_EXPORT WebVector<WebDraggableRegion> draggableRegions() const; |
138 | 138 |
139 WEBKIT_EXPORT v8::Handle<v8::Value> registerEmbedderCustomElement(const WebS
tring& name, v8::Handle<v8::Value> options, WebExceptionCode&); | 139 WEBKIT_EXPORT v8::Handle<v8::Value> registerEmbedderCustomElement(const WebS
tring& name, v8::Handle<v8::Value> options, WebExceptionCode&); |
140 | 140 |
141 #if WEBKIT_IMPLEMENTATION | 141 #if WEBKIT_IMPLEMENTATION |
142 WebDocument(const WTF::PassRefPtr<WebCore::Document>&); | 142 WebDocument(const WTF::PassRefPtr<WebCore::Document>&); |
143 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); | 143 WebDocument& operator=(const WTF::PassRefPtr<WebCore::Document>&); |
144 operator WTF::PassRefPtr<WebCore::Document>() const; | 144 operator WTF::PassRefPtr<WebCore::Document>() const; |
145 #endif | 145 #endif |
146 }; | 146 }; |
147 | 147 |
148 } // namespace WebKit | 148 } // namespace WebKit |
149 | 149 |
150 #endif | 150 #endif |
OLD | NEW |