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

Side by Side Diff: Source/core/fileapi/FileReader.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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/fileapi/FileList.cpp ('k') | Source/core/fileapi/FileReaderSync.cpp » ('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 Google Inc. All rights reserved. 2 * Copyright (C) 2010 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 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 } 221 }
222 222
223 FileReader::FileReader(ExecutionContext* context) 223 FileReader::FileReader(ExecutionContext* context)
224 : ActiveDOMObject(context) 224 : ActiveDOMObject(context)
225 , m_state(EMPTY) 225 , m_state(EMPTY)
226 , m_loadingState(LoadingStateNone) 226 , m_loadingState(LoadingStateNone)
227 , m_readType(FileReaderLoader::ReadAsBinaryString) 227 , m_readType(FileReaderLoader::ReadAsBinaryString)
228 , m_lastProgressNotificationTimeMS(0) 228 , m_lastProgressNotificationTimeMS(0)
229 , m_asyncOperationId(0) 229 , m_asyncOperationId(0)
230 { 230 {
231 ScriptWrappable::init(this);
232 } 231 }
233 232
234 FileReader::~FileReader() 233 FileReader::~FileReader()
235 { 234 {
236 terminate(); 235 terminate();
237 } 236 }
238 237
239 const AtomicString& FileReader::interfaceName() const 238 const AtomicString& FileReader::interfaceName() const
240 { 239 {
241 return EventTargetNames::FileReader; 240 return EventTargetNames::FileReader;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
482 return m_loader->stringResult(); 481 return m_loader->stringResult();
483 } 482 }
484 483
485 void FileReader::trace(Visitor* visitor) 484 void FileReader::trace(Visitor* visitor)
486 { 485 {
487 visitor->trace(m_error); 486 visitor->trace(m_error);
488 EventTargetWithInlineData::trace(visitor); 487 EventTargetWithInlineData::trace(visitor);
489 } 488 }
490 489
491 } // namespace blink 490 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/fileapi/FileList.cpp ('k') | Source/core/fileapi/FileReaderSync.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698