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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 class CORE_EXPORT Location final : public GarbageCollected<Location>, | 51 class CORE_EXPORT Location final : public GarbageCollected<Location>, |
52 public ScriptWrappable { | 52 public ScriptWrappable { |
53 DEFINE_WRAPPERTYPEINFO(); | 53 DEFINE_WRAPPERTYPEINFO(); |
54 | 54 |
55 public: | 55 public: |
56 static Location* Create(DOMWindow* dom_window) { | 56 static Location* Create(DOMWindow* dom_window) { |
57 return new Location(dom_window); | 57 return new Location(dom_window); |
58 } | 58 } |
59 | 59 |
60 DOMWindow* DomWindow() const { return dom_window_.Get(); } | 60 DOMWindow* DomWindow() const { return dom_window_.Get(); } |
61 // TODO(dcheng): Deprecated and will be removed. Do not use in new code! | |
62 Frame* GetFrame() const { return dom_window_->GetFrame(); } | |
63 | 61 |
64 void setHref(LocalDOMWindow* current_window, | 62 void setHref(LocalDOMWindow* current_window, |
65 LocalDOMWindow* entered_window, | 63 LocalDOMWindow* entered_window, |
66 const String&, | 64 const String&, |
67 ExceptionState&); | 65 ExceptionState&); |
68 String href() const; | 66 String href() const; |
69 | 67 |
70 void assign(LocalDOMWindow* current_window, | 68 void assign(LocalDOMWindow* current_window, |
71 LocalDOMWindow* entered_window, | 69 LocalDOMWindow* entered_window, |
72 const String&, | 70 const String&, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 SetLocationPolicy = SetLocationPolicy::kNormal); | 140 SetLocationPolicy = SetLocationPolicy::kNormal); |
143 | 141 |
144 const KURL& Url() const; | 142 const KURL& Url() const; |
145 | 143 |
146 const Member<DOMWindow> dom_window_; | 144 const Member<DOMWindow> dom_window_; |
147 }; | 145 }; |
148 | 146 |
149 } // namespace blink | 147 } // namespace blink |
150 | 148 |
151 #endif // Location_h | 149 #endif // Location_h |
OLD | NEW |