| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2008, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2008, 2010 Apple 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 | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. 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 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND | 23 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND |
| 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 27 */ | 27 */ |
| 28 | 28 |
| 29 #ifndef SKY_ENGINE_CORE_FRAME_LOCATION_H_ | 29 #ifndef SKY_ENGINE_CORE_FRAME_LOCATION_H_ |
| 30 #define SKY_ENGINE_CORE_FRAME_LOCATION_H_ | 30 #define SKY_ENGINE_CORE_FRAME_LOCATION_H_ |
| 31 | 31 |
| 32 #include "sky/engine/bindings/core/v8/ScriptWrappable.h" | 32 #include "sky/engine/bindings/core/v8/ScriptWrappable.h" |
| 33 #include "sky/engine/core/dom/DOMStringList.h" | |
| 34 #include "sky/engine/core/frame/DOMWindowProperty.h" | 33 #include "sky/engine/core/frame/DOMWindowProperty.h" |
| 35 #include "sky/engine/wtf/PassRefPtr.h" | 34 #include "sky/engine/wtf/PassRefPtr.h" |
| 36 #include "sky/engine/wtf/RefCounted.h" | 35 #include "sky/engine/wtf/RefCounted.h" |
| 37 #include "sky/engine/wtf/text/WTFString.h" | 36 #include "sky/engine/wtf/text/WTFString.h" |
| 38 | 37 |
| 39 namespace blink { | 38 namespace blink { |
| 40 | 39 |
| 41 class LocalDOMWindow; | 40 class LocalDOMWindow; |
| 42 class ExceptionState; | 41 class ExceptionState; |
| 43 class LocalFrame; | 42 class LocalFrame; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 67 void setPort(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c
onst String&); | 66 void setPort(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c
onst String&); |
| 68 String port() const; | 67 String port() const; |
| 69 void setPathname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo
w, const String&); | 68 void setPathname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo
w, const String&); |
| 70 String pathname() const; | 69 String pathname() const; |
| 71 void setSearch(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow,
const String&); | 70 void setSearch(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow,
const String&); |
| 72 String search() const; | 71 String search() const; |
| 73 void setHash(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c
onst String&); | 72 void setHash(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c
onst String&); |
| 74 String hash() const; | 73 String hash() const; |
| 75 String origin() const; | 74 String origin() const; |
| 76 | 75 |
| 77 PassRefPtr<DOMStringList> ancestorOrigins() const; | |
| 78 | |
| 79 private: | 76 private: |
| 80 explicit Location(LocalFrame*); | 77 explicit Location(LocalFrame*); |
| 81 | 78 |
| 82 void setLocation(const String&, LocalDOMWindow* callingWindow, LocalDOMWindo
w* enteredWindow); | 79 void setLocation(const String&, LocalDOMWindow* callingWindow, LocalDOMWindo
w* enteredWindow); |
| 83 | 80 |
| 84 const KURL& url() const; | 81 const KURL& url() const; |
| 85 }; | 82 }; |
| 86 | 83 |
| 87 } // namespace blink | 84 } // namespace blink |
| 88 | 85 |
| 89 #endif // SKY_ENGINE_CORE_FRAME_LOCATION_H_ | 86 #endif // SKY_ENGINE_CORE_FRAME_LOCATION_H_ |
| OLD | NEW |