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

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

Issue 133133006: Update Event classes to use OVERRIDE / FINAL when needed (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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/events/PopStateEvent.h ('k') | Source/core/events/ResourceProgressEvent.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) 2007, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2007, 2008 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 } 50 }
51 static PassRefPtr<ProgressEvent> create(const AtomicString& type, const Prog ressEventInit& initializer) 51 static PassRefPtr<ProgressEvent> create(const AtomicString& type, const Prog ressEventInit& initializer)
52 { 52 {
53 return adoptRef(new ProgressEvent(type, initializer)); 53 return adoptRef(new ProgressEvent(type, initializer));
54 } 54 }
55 55
56 bool lengthComputable() const { return m_lengthComputable; } 56 bool lengthComputable() const { return m_lengthComputable; }
57 unsigned long long loaded() const { return m_loaded; } 57 unsigned long long loaded() const { return m_loaded; }
58 unsigned long long total() const { return m_total; } 58 unsigned long long total() const { return m_total; }
59 59
60 virtual const AtomicString& interfaceName() const; 60 virtual const AtomicString& interfaceName() const OVERRIDE;
61 61
62 protected: 62 protected:
63 ProgressEvent(); 63 ProgressEvent();
64 ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total); 64 ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total);
65 ProgressEvent(const AtomicString&, const ProgressEventInit&); 65 ProgressEvent(const AtomicString&, const ProgressEventInit&);
66 66
67 private: 67 private:
68 bool m_lengthComputable; 68 bool m_lengthComputable;
69 unsigned long long m_loaded; 69 unsigned long long m_loaded;
70 unsigned long long m_total; 70 unsigned long long m_total;
71 }; 71 };
72 } 72 }
73 73
74 #endif // ProgressEvent_h 74 #endif // ProgressEvent_h
OLDNEW
« no previous file with comments | « Source/core/events/PopStateEvent.h ('k') | Source/core/events/ResourceProgressEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698