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

Side by Side Diff: Source/core/frame/Location.h

Issue 334283004: Rename DOMWindow to LocalDOMWindow (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebase Created 6 years, 6 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 | Annotate | Revision Log
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/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 20 matching lines...) Expand all
31 31
32 #include "bindings/v8/ScriptWrappable.h" 32 #include "bindings/v8/ScriptWrappable.h"
33 #include "core/dom/DOMStringList.h" 33 #include "core/dom/DOMStringList.h"
34 #include "core/frame/DOMWindowProperty.h" 34 #include "core/frame/DOMWindowProperty.h"
35 #include "wtf/PassRefPtr.h" 35 #include "wtf/PassRefPtr.h"
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 LocalDOMWindow;
42 class ExceptionState; 42 class ExceptionState;
43 class LocalFrame; 43 class LocalFrame;
44 class KURL; 44 class KURL;
45 45
46 class Location FINAL : public RefCountedWillBeGarbageCollectedFinalized<Location >, public ScriptWrappable, public DOMWindowProperty { 46 class Location FINAL : public RefCountedWillBeGarbageCollectedFinalized<Location >, public ScriptWrappable, public DOMWindowProperty {
47 public: 47 public:
48 static PassRefPtrWillBeRawPtr<Location> create(LocalFrame* frame) 48 static PassRefPtrWillBeRawPtr<Location> create(LocalFrame* frame)
49 { 49 {
50 return adoptRefWillBeNoop(new Location(frame)); 50 return adoptRefWillBeNoop(new Location(frame));
51 } 51 }
52 52
53 void setHref(DOMWindow* callingWindow, DOMWindow* enteredWindow, const Strin g&); 53 void setHref(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&);
54 String href() const; 54 String href() const;
55 55
56 void assign(DOMWindow* callingWindow, DOMWindow* enteredWindow, const String &); 56 void assign(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, co nst String&);
57 void replace(DOMWindow* callingWindow, DOMWindow* enteredWindow, const Strin g&); 57 void replace(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&);
58 void reload(DOMWindow* callingWindow); 58 void reload(LocalDOMWindow* callingWindow);
59 59
60 void setProtocol(DOMWindow* callingWindow, DOMWindow* enteredWindow, const S tring&, ExceptionState&); 60 void setProtocol(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo w, const String&, ExceptionState&);
61 String protocol() const; 61 String protocol() const;
62 void setHost(DOMWindow* callingWindow, DOMWindow* enteredWindow, const Strin g&); 62 void setHost(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&);
63 String host() const; 63 String host() const;
64 void setHostname(DOMWindow* callingWindow, DOMWindow* enteredWindow, const S tring&); 64 void setHostname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo w, const String&);
65 String hostname() const; 65 String hostname() const;
66 void setPort(DOMWindow* callingWindow, DOMWindow* enteredWindow, const Strin g&); 66 void setPort(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&);
67 String port() const; 67 String port() const;
68 void setPathname(DOMWindow* callingWindow, DOMWindow* enteredWindow, const S tring&); 68 void setPathname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo w, const String&);
69 String pathname() const; 69 String pathname() const;
70 void setSearch(DOMWindow* callingWindow, DOMWindow* enteredWindow, const Str ing&); 70 void setSearch(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, const String&);
71 String search() const; 71 String search() const;
72 void setHash(DOMWindow* callingWindow, DOMWindow* enteredWindow, const Strin g&); 72 void setHash(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&);
73 String hash() const; 73 String hash() const;
74 String origin() const; 74 String origin() const;
75 75
76 PassRefPtrWillBeRawPtr<DOMStringList> ancestorOrigins() const; 76 PassRefPtrWillBeRawPtr<DOMStringList> ancestorOrigins() const;
77 77
78 void trace(Visitor*) { } 78 void trace(Visitor*) { }
79 79
80 private: 80 private:
81 explicit Location(LocalFrame*); 81 explicit Location(LocalFrame*);
82 82
83 void setLocation(const String&, DOMWindow* callingWindow, DOMWindow* entered Window); 83 void setLocation(const String&, LocalDOMWindow* callingWindow, LocalDOMWindo w* enteredWindow);
84 84
85 const KURL& url() const; 85 const KURL& url() const;
86 }; 86 };
87 87
88 } // namespace WebCore 88 } // namespace WebCore
89 89
90 #endif // Location_h 90 #endif // Location_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.cpp ('k') | Source/core/frame/Location.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698