Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: sky/engine/core/frame/Location.h

Issue 922893002: Merge the Sky Engine changes from the SkyDart branch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/engine/core/frame/LocalFrame.cpp ('k') | sky/engine/core/frame/Location.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 11 matching lines...) Expand all
22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 22 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
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/tonic/dart_wrappable.h"
33 #include "sky/engine/core/frame/DOMWindowProperty.h" 33 #include "sky/engine/core/frame/DOMWindowProperty.h"
34 #include "sky/engine/wtf/PassRefPtr.h" 34 #include "sky/engine/wtf/PassRefPtr.h"
35 #include "sky/engine/wtf/RefCounted.h" 35 #include "sky/engine/wtf/RefCounted.h"
36 #include "sky/engine/wtf/text/WTFString.h" 36 #include "sky/engine/wtf/text/WTFString.h"
37 37
38 namespace blink { 38 namespace blink {
39 39
40 class LocalDOMWindow; 40 class LocalDOMWindow;
41 class ExceptionState; 41 class ExceptionState;
42 class LocalFrame; 42 class LocalFrame;
43 class KURL; 43 class KURL;
44 44
45 class Location final : public RefCounted<Location>, public ScriptWrappable, publ ic DOMWindowProperty { 45 class Location final : public RefCounted<Location>, public DartWrappable, public DOMWindowProperty {
46 DEFINE_WRAPPERTYPEINFO(); 46 DEFINE_WRAPPERTYPEINFO();
47 public: 47 public:
48 static PassRefPtr<Location> create(LocalFrame* frame) 48 static PassRefPtr<Location> create(LocalFrame* frame)
49 { 49 {
50 return adoptRef(new Location(frame)); 50 return adoptRef(new Location(frame));
51 } 51 }
52 52
53 void setHref(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&); 53 void setHref(const String&);
54 String href() const; 54 String href() const;
55 55
56 void assign(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, co nst String&); 56 void assign(const String&);
57 void replace(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&); 57 void replace(const String&);
58 void reload(LocalDOMWindow* callingWindow); 58 void reload();
59 59
60 void setProtocol(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo w, const String&, ExceptionState&); 60 void setProtocol(const String&, ExceptionState&);
61 String protocol() const; 61 String protocol() const;
62 void setHost(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&); 62 void setHost(const String&);
63 String host() const; 63 String host() const;
64 void setHostname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo w, const String&); 64 void setHostname(const String&);
65 String hostname() const; 65 String hostname() const;
66 void setPort(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&); 66 void setPort(const String&);
67 String port() const; 67 String port() const;
68 void setPathname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo w, const String&); 68 void setPathname(const String&);
69 String pathname() const; 69 String pathname() const;
70 void setSearch(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, const String&); 70 void setSearch(const String&);
71 String search() const; 71 String search() const;
72 void setHash(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&); 72 void setHash(const String&);
73 String hash() const; 73 String hash() const;
74 String origin() const; 74 String origin() const;
75 75
76 private: 76 private:
77 explicit Location(LocalFrame*); 77 explicit Location(LocalFrame*);
78 78
79 void setLocation(const String&, LocalDOMWindow* callingWindow, LocalDOMWindo w* enteredWindow); 79 void setLocation(const String&);
80 80
81 const KURL& url() const; 81 const KURL& url() const;
82 }; 82 };
83 83
84 } // namespace blink 84 } // namespace blink
85 85
86 #endif // SKY_ENGINE_CORE_FRAME_LOCATION_H_ 86 #endif // SKY_ENGINE_CORE_FRAME_LOCATION_H_
OLDNEW
« no previous file with comments | « sky/engine/core/frame/LocalFrame.cpp ('k') | sky/engine/core/frame/Location.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698