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

Side by Side Diff: Source/core/events/HashChangeEvent.h

Issue 1232333002: Fix virtual/override/final usage in the rest of Source/core/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 5 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/events/GestureEvent.h ('k') | Source/core/events/KeyboardEvent.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) 2010 Apple Inc. All rights reserved. 2 * Copyright (C) 2010 Apple Inc. All rights reserved.
3 * 3 *
4 * This library is free software; you can redistribute it and/or 4 * This library is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU Library General Public 5 * modify it under the terms of the GNU Library General Public
6 * License as published by the Free Software Foundation; either 6 * License as published by the Free Software Foundation; either
7 * version 2 of the License, or (at your option) any later version. 7 * version 2 of the License, or (at your option) any later version.
8 * 8 *
9 * This library is distributed in the hope that it will be useful, 9 * This library is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 51
52 initEvent(eventType, canBubble, cancelable); 52 initEvent(eventType, canBubble, cancelable);
53 53
54 m_oldURL = oldURL; 54 m_oldURL = oldURL;
55 m_newURL = newURL; 55 m_newURL = newURL;
56 } 56 }
57 57
58 const String& oldURL() const { return m_oldURL; } 58 const String& oldURL() const { return m_oldURL; }
59 const String& newURL() const { return m_newURL; } 59 const String& newURL() const { return m_newURL; }
60 60
61 virtual const AtomicString& interfaceName() const override { return EventNam es::HashChangeEvent; } 61 const AtomicString& interfaceName() const override { return EventNames::Hash ChangeEvent; }
62 62
63 DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); } 63 DEFINE_INLINE_VIRTUAL_TRACE() { Event::trace(visitor); }
64 64
65 private: 65 private:
66 HashChangeEvent() { } 66 HashChangeEvent() { }
67 67
68 HashChangeEvent(const String& oldURL, const String& newURL) 68 HashChangeEvent(const String& oldURL, const String& newURL)
69 : Event(EventTypeNames::hashchange, false, false) 69 : Event(EventTypeNames::hashchange, false, false)
70 , m_oldURL(oldURL) 70 , m_oldURL(oldURL)
71 , m_newURL(newURL) { } 71 , m_newURL(newURL) { }
72 72
73 HashChangeEvent(const AtomicString& type, const HashChangeEventInit& initial izer) 73 HashChangeEvent(const AtomicString& type, const HashChangeEventInit& initial izer)
74 : Event(type, initializer) 74 : Event(type, initializer)
75 { 75 {
76 if (initializer.hasOldURL()) 76 if (initializer.hasOldURL())
77 m_oldURL = initializer.oldURL(); 77 m_oldURL = initializer.oldURL();
78 if (initializer.hasNewURL()) 78 if (initializer.hasNewURL())
79 m_newURL = initializer.newURL(); 79 m_newURL = initializer.newURL();
80 } 80 }
81 81
82 String m_oldURL; 82 String m_oldURL;
83 String m_newURL; 83 String m_newURL;
84 }; 84 };
85 85
86 } // namespace blink 86 } // namespace blink
87 87
88 #endif // HashChangeEvent_h 88 #endif // HashChangeEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/GestureEvent.h ('k') | Source/core/events/KeyboardEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698