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

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

Issue 1852663002: Oilpan: Remove WillBe types (part 9) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
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 17 matching lines...) Expand all
28 28
29 #include "core/CoreExport.h" 29 #include "core/CoreExport.h"
30 #include "core/events/Event.h" 30 #include "core/events/Event.h"
31 #include "core/events/ProgressEventInit.h" 31 #include "core/events/ProgressEventInit.h"
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class CORE_EXPORT ProgressEvent : public Event { 35 class CORE_EXPORT ProgressEvent : public Event {
36 DEFINE_WRAPPERTYPEINFO(); 36 DEFINE_WRAPPERTYPEINFO();
37 public: 37 public:
38 static PassRefPtrWillBeRawPtr<ProgressEvent> create() 38 static RawPtr<ProgressEvent> create()
39 { 39 {
40 return adoptRefWillBeNoop(new ProgressEvent); 40 return adoptRefWillBeNoop(new ProgressEvent);
41 } 41 }
42 static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type , bool lengthComputable, unsigned long long loaded, unsigned long long total) 42 static RawPtr<ProgressEvent> create(const AtomicString& type, bool lengthCom putable, unsigned long long loaded, unsigned long long total)
43 { 43 {
44 return adoptRefWillBeNoop(new ProgressEvent(type, lengthComputable, load ed, total)); 44 return new ProgressEvent(type, lengthComputable, loaded, total);
45 } 45 }
46 static PassRefPtrWillBeRawPtr<ProgressEvent> create(const AtomicString& type , const ProgressEventInit& initializer) 46 static RawPtr<ProgressEvent> create(const AtomicString& type, const Progress EventInit& initializer)
47 { 47 {
48 return adoptRefWillBeNoop(new ProgressEvent(type, initializer)); 48 return new ProgressEvent(type, initializer);
49 } 49 }
50 50
51 bool lengthComputable() const { return m_lengthComputable; } 51 bool lengthComputable() const { return m_lengthComputable; }
52 unsigned long long loaded() const { return m_loaded; } 52 unsigned long long loaded() const { return m_loaded; }
53 unsigned long long total() const { return m_total; } 53 unsigned long long total() const { return m_total; }
54 54
55 const AtomicString& interfaceName() const override; 55 const AtomicString& interfaceName() const override;
56 56
57 DECLARE_VIRTUAL_TRACE(); 57 DECLARE_VIRTUAL_TRACE();
58 58
59 protected: 59 protected:
60 ProgressEvent(); 60 ProgressEvent();
61 ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total); 61 ProgressEvent(const AtomicString& type, bool lengthComputable, unsigned long long loaded, unsigned long long total);
62 ProgressEvent(const AtomicString&, const ProgressEventInit&); 62 ProgressEvent(const AtomicString&, const ProgressEventInit&);
63 63
64 private: 64 private:
65 bool m_lengthComputable; 65 bool m_lengthComputable;
66 unsigned long long m_loaded; 66 unsigned long long m_loaded;
67 unsigned long long m_total; 67 unsigned long long m_total;
68 }; 68 };
69 69
70 } // namespace blink 70 } // namespace blink
71 71
72 #endif // ProgressEvent_h 72 #endif // ProgressEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/PopStateEvent.cpp ('k') | third_party/WebKit/Source/core/events/PromiseRejectionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698