| 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 43 | 43 |
| 44 namespace v8 { | 44 namespace v8 { |
| 45 class Value; | 45 class Value; |
| 46 template <class T> class Handle; | 46 template <class T> class Handle; |
| 47 } | 47 } |
| 48 | 48 |
| 49 namespace blink { | 49 namespace blink { |
| 50 | 50 |
| 51 class Document; | 51 class Document; |
| 52 class DocumentType; | 52 class DocumentType; |
| 53 class WebDocumentType; | |
| 54 class WebElement; | 53 class WebElement; |
| 55 class WebString; | 54 class WebString; |
| 56 class WebURL; | 55 class WebURL; |
| 57 | 56 |
| 58 // Provides readonly access to some properties of a DOM document. | 57 // Provides readonly access to some properties of a DOM document. |
| 59 class WebDocument : public WebNode { | 58 class WebDocument : public WebNode { |
| 60 public: | 59 public: |
| 61 WebDocument() { } | 60 WebDocument() { } |
| 62 WebDocument(const WebDocument& e) : WebNode(e) { } | 61 WebDocument(const WebDocument& e) : WebNode(e) { } |
| 63 | 62 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 78 | 77 |
| 79 // Returns the frame the document belongs to or 0 if the document is framele
ss. | 78 // Returns the frame the document belongs to or 0 if the document is framele
ss. |
| 80 BLINK_EXPORT WebLocalFrame* frame() const; | 79 BLINK_EXPORT WebLocalFrame* frame() const; |
| 81 BLINK_EXPORT bool isHTMLDocument() const; | 80 BLINK_EXPORT bool isHTMLDocument() const; |
| 82 | 81 |
| 83 BLINK_EXPORT WebElement documentElement() const; | 82 BLINK_EXPORT WebElement documentElement() const; |
| 84 BLINK_EXPORT WebString title() const; | 83 BLINK_EXPORT WebString title() const; |
| 85 BLINK_EXPORT WebURL completeURL(const WebString&) const; | 84 BLINK_EXPORT WebURL completeURL(const WebString&) const; |
| 86 BLINK_EXPORT WebElement getElementById(const WebString&) const; | 85 BLINK_EXPORT WebElement getElementById(const WebString&) const; |
| 87 BLINK_EXPORT WebElement focusedElement() const; | 86 BLINK_EXPORT WebElement focusedElement() const; |
| 88 BLINK_EXPORT WebDocumentType doctype() const; | |
| 89 BLINK_EXPORT WebDOMEvent createEvent(const WebString& eventType); | |
| 90 BLINK_EXPORT WebReferrerPolicy referrerPolicy() const; | 87 BLINK_EXPORT WebReferrerPolicy referrerPolicy() const; |
| 91 BLINK_EXPORT WebElement createElement(const WebString& tagName); | 88 BLINK_EXPORT WebElement createElement(const WebString& tagName); |
| 92 | 89 |
| 93 BLINK_EXPORT v8::Handle<v8::Value> registerEmbedderCustomElement(const WebSt
ring& name, v8::Handle<v8::Value> options, WebExceptionCode&); | 90 BLINK_EXPORT v8::Handle<v8::Value> registerEmbedderCustomElement(const WebSt
ring& name, v8::Handle<v8::Value> options, WebExceptionCode&); |
| 94 | 91 |
| 95 #if BLINK_IMPLEMENTATION | 92 #if BLINK_IMPLEMENTATION |
| 96 WebDocument(const PassRefPtr<Document>&); | 93 WebDocument(const PassRefPtr<Document>&); |
| 97 WebDocument& operator=(const PassRefPtr<Document>&); | 94 WebDocument& operator=(const PassRefPtr<Document>&); |
| 98 operator PassRefPtr<Document>() const; | 95 operator PassRefPtr<Document>() const; |
| 99 #endif | 96 #endif |
| 100 }; | 97 }; |
| 101 | 98 |
| 102 } // namespace blink | 99 } // namespace blink |
| 103 | 100 |
| 104 #endif | 101 #endif |
| OLD | NEW |