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

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

Issue 635853002: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/core/frame (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 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 | « Source/core/frame/LocalFrame.h ('k') | Source/core/frame/Navigator.h » ('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 25 matching lines...) Expand all
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 blink { 39 namespace blink {
40 40
41 class LocalDOMWindow; 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 RefCountedWillBeGarbageCollected<Location>, public ScriptWrappable, public DOMWindowProperty { 46 class Location final : public RefCountedWillBeGarbageCollected<Location>, public ScriptWrappable, public DOMWindowProperty {
47 DEFINE_WRAPPERTYPEINFO(); 47 DEFINE_WRAPPERTYPEINFO();
48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Location); 48 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(Location);
49 public: 49 public:
50 static PassRefPtrWillBeRawPtr<Location> create(LocalFrame* frame) 50 static PassRefPtrWillBeRawPtr<Location> create(LocalFrame* frame)
51 { 51 {
52 return adoptRefWillBeNoop(new Location(frame)); 52 return adoptRefWillBeNoop(new Location(frame));
53 } 53 }
54 54
55 void setHref(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&); 55 void setHref(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&);
56 String href() const; 56 String href() const;
(...skipping 13 matching lines...) Expand all
70 void setPathname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo w, const String&); 70 void setPathname(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindo w, const String&);
71 String pathname() const; 71 String pathname() const;
72 void setSearch(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, const String&); 72 void setSearch(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, const String&);
73 String search() const; 73 String search() const;
74 void setHash(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&); 74 void setHash(LocalDOMWindow* callingWindow, LocalDOMWindow* enteredWindow, c onst String&);
75 String hash() const; 75 String hash() const;
76 String origin() const; 76 String origin() const;
77 77
78 PassRefPtrWillBeRawPtr<DOMStringList> ancestorOrigins() const; 78 PassRefPtrWillBeRawPtr<DOMStringList> ancestorOrigins() const;
79 79
80 virtual void trace(Visitor*) OVERRIDE; 80 virtual void trace(Visitor*) override;
81 81
82 private: 82 private:
83 explicit Location(LocalFrame*); 83 explicit Location(LocalFrame*);
84 84
85 void setLocation(const String&, LocalDOMWindow* callingWindow, LocalDOMWindo w* enteredWindow); 85 void setLocation(const String&, LocalDOMWindow* callingWindow, LocalDOMWindo w* enteredWindow);
86 86
87 const KURL& url() const; 87 const KURL& url() const;
88 }; 88 };
89 89
90 } // namespace blink 90 } // namespace blink
91 91
92 #endif // Location_h 92 #endif // Location_h
OLDNEW
« no previous file with comments | « Source/core/frame/LocalFrame.h ('k') | Source/core/frame/Navigator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698