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 25 matching lines...) Expand all Loading... |
36 #include "wtf/RefCounted.h" | 36 #include "wtf/RefCounted.h" |
37 #include "wtf/text/WTFString.h" | 37 #include "wtf/text/WTFString.h" |
38 | 38 |
39 namespace WebCore { | 39 namespace WebCore { |
40 | 40 |
41 class DOMWindow; | 41 class DOMWindow; |
42 class ExceptionState; | 42 class ExceptionState; |
43 class Frame; | 43 class Frame; |
44 class KURL; | 44 class KURL; |
45 | 45 |
46 class Location : public ScriptWrappable, public RefCounted<Location>, public DOM
WindowProperty { | 46 class Location FINAL : public ScriptWrappable, public RefCounted<Location>, publ
ic DOMWindowProperty { |
47 public: | 47 public: |
48 static PassRefPtr<Location> create(Frame* frame) { return adoptRef(new Locat
ion(frame)); } | 48 static PassRefPtr<Location> create(Frame* frame) { return adoptRef(new Locat
ion(frame)); } |
49 | 49 |
50 void setHref(DOMWindow* activeWindow, DOMWindow* firstWindow, const String&)
; | 50 void setHref(DOMWindow* activeWindow, DOMWindow* firstWindow, const String&)
; |
51 String href() const; | 51 String href() const; |
52 | 52 |
53 void assign(DOMWindow* activeWindow, DOMWindow* firstWindow, const String&); | 53 void assign(DOMWindow* activeWindow, DOMWindow* firstWindow, const String&); |
54 void replace(DOMWindow* activeWindow, DOMWindow* firstWindow, const String&)
; | 54 void replace(DOMWindow* activeWindow, DOMWindow* firstWindow, const String&)
; |
55 void reload(DOMWindow* activeWindow); | 55 void reload(DOMWindow* activeWindow); |
56 | 56 |
(...skipping 19 matching lines...) Expand all Loading... |
76 explicit Location(Frame*); | 76 explicit Location(Frame*); |
77 | 77 |
78 void setLocation(const String&, DOMWindow* activeWindow, DOMWindow* firstWin
dow); | 78 void setLocation(const String&, DOMWindow* activeWindow, DOMWindow* firstWin
dow); |
79 | 79 |
80 const KURL& url() const; | 80 const KURL& url() const; |
81 }; | 81 }; |
82 | 82 |
83 } // namespace WebCore | 83 } // namespace WebCore |
84 | 84 |
85 #endif // Location_h | 85 #endif // Location_h |
OLD | NEW |