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

Side by Side Diff: third_party/WebKit/Source/core/events/ErrorEvent.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) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 24 matching lines...) Expand all
35 #include "core/events/ErrorEventInit.h" 35 #include "core/events/ErrorEventInit.h"
36 #include "core/events/Event.h" 36 #include "core/events/Event.h"
37 #include "wtf/RefPtr.h" 37 #include "wtf/RefPtr.h"
38 #include "wtf/text/WTFString.h" 38 #include "wtf/text/WTFString.h"
39 39
40 namespace blink { 40 namespace blink {
41 41
42 class ErrorEvent final : public Event { 42 class ErrorEvent final : public Event {
43 DEFINE_WRAPPERTYPEINFO(); 43 DEFINE_WRAPPERTYPEINFO();
44 public: 44 public:
45 static PassRefPtrWillBeRawPtr<ErrorEvent> create() 45 static RawPtr<ErrorEvent> create()
46 { 46 {
47 return adoptRefWillBeNoop(new ErrorEvent); 47 return adoptRefWillBeNoop(new ErrorEvent);
48 } 48 }
49 static PassRefPtrWillBeRawPtr<ErrorEvent> create(const String& message, cons t String& fileName, unsigned lineNumber, unsigned columnNumber, DOMWrapperWorld* world) 49 static RawPtr<ErrorEvent> create(const String& message, const String& fileNa me, unsigned lineNumber, unsigned columnNumber, DOMWrapperWorld* world)
50 { 50 {
51 return adoptRefWillBeNoop(new ErrorEvent(message, fileName, lineNumber, columnNumber, world)); 51 return new ErrorEvent(message, fileName, lineNumber, columnNumber, world );
52 } 52 }
53 static PassRefPtrWillBeRawPtr<ErrorEvent> create(const AtomicString& type, c onst ErrorEventInit& initializer) 53 static RawPtr<ErrorEvent> create(const AtomicString& type, const ErrorEventI nit& initializer)
54 { 54 {
55 return adoptRefWillBeNoop(new ErrorEvent(type, initializer)); 55 return new ErrorEvent(type, initializer);
56 } 56 }
57 static PassRefPtrWillBeRawPtr<ErrorEvent> createSanitizedError(DOMWrapperWor ld* world) 57 static RawPtr<ErrorEvent> createSanitizedError(DOMWrapperWorld* world)
58 { 58 {
59 return adoptRefWillBeNoop(new ErrorEvent("Script error.", String(), 0, 0 , world)); 59 return new ErrorEvent("Script error.", String(), 0, 0, world);
60 } 60 }
61 ~ErrorEvent() override; 61 ~ErrorEvent() override;
62 62
63 // As 'message' is exposed to JavaScript, never return unsanitizedMessage. 63 // As 'message' is exposed to JavaScript, never return unsanitizedMessage.
64 const String& message() const { return m_sanitizedMessage; } 64 const String& message() const { return m_sanitizedMessage; }
65 const String& filename() const { return m_fileName; } 65 const String& filename() const { return m_fileName; }
66 unsigned lineno() const { return m_lineNumber; } 66 unsigned lineno() const { return m_lineNumber; }
67 unsigned colno() const { return m_columnNumber; } 67 unsigned colno() const { return m_columnNumber; }
68 ScriptValue error(ScriptState*) const; 68 ScriptValue error(ScriptState*) const;
69 69
(...skipping 19 matching lines...) Expand all
89 unsigned m_lineNumber; 89 unsigned m_lineNumber;
90 unsigned m_columnNumber; 90 unsigned m_columnNumber;
91 ScriptValue m_error; 91 ScriptValue m_error;
92 92
93 RefPtr<DOMWrapperWorld> m_world; 93 RefPtr<DOMWrapperWorld> m_world;
94 }; 94 };
95 95
96 } // namespace blink 96 } // namespace blink
97 97
98 #endif // ErrorEvent_h 98 #endif // ErrorEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/DragEvent.cpp ('k') | third_party/WebKit/Source/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698