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

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

Issue 2394653003: reflow comments in core/events,core/fileapi (Closed)
Patch Set: Created 4 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 ~ErrorEvent() override; 63 ~ErrorEvent() override;
64 64
65 // As 'message' is exposed to JavaScript, never return unsanitizedMessage. 65 // As 'message' is exposed to JavaScript, never return unsanitizedMessage.
66 const String& message() const { return m_sanitizedMessage; } 66 const String& message() const { return m_sanitizedMessage; }
67 const String& filename() const { return m_location->url(); } 67 const String& filename() const { return m_location->url(); }
68 unsigned lineno() const { return m_location->lineNumber(); } 68 unsigned lineno() const { return m_location->lineNumber(); }
69 unsigned colno() const { return m_location->columnNumber(); } 69 unsigned colno() const { return m_location->columnNumber(); }
70 ScriptValue error(ScriptState*) const; 70 ScriptValue error(ScriptState*) const;
71 71
72 // 'messageForConsole' is not exposed to JavaScript, and prefers 'm_unsanitize dMessage'. 72 // 'messageForConsole' is not exposed to JavaScript, and prefers
73 // 'm_unsanitizedMessage'.
73 const String& messageForConsole() const { 74 const String& messageForConsole() const {
74 return !m_unsanitizedMessage.isEmpty() ? m_unsanitizedMessage 75 return !m_unsanitizedMessage.isEmpty() ? m_unsanitizedMessage
75 : m_sanitizedMessage; 76 : m_sanitizedMessage;
76 } 77 }
77 SourceLocation* location() const { return m_location.get(); } 78 SourceLocation* location() const { return m_location.get(); }
78 79
79 const AtomicString& interfaceName() const override; 80 const AtomicString& interfaceName() const override;
80 81
81 DOMWrapperWorld* world() const { return m_world.get(); } 82 DOMWrapperWorld* world() const { return m_world.get(); }
82 83
(...skipping 12 matching lines...) Expand all
95 String m_sanitizedMessage; 96 String m_sanitizedMessage;
96 std::unique_ptr<SourceLocation> m_location; 97 std::unique_ptr<SourceLocation> m_location;
97 ScriptValue m_error; 98 ScriptValue m_error;
98 99
99 RefPtr<DOMWrapperWorld> m_world; 100 RefPtr<DOMWrapperWorld> m_world;
100 }; 101 };
101 102
102 } // namespace blink 103 } // namespace blink
103 104
104 #endif // ErrorEvent_h 105 #endif // ErrorEvent_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/core/events/ClipboardEvent.h ('k') | third_party/WebKit/Source/core/events/Event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698