| OLD | NEW |
| 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 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 75 | 75 |
| 76 ReadyState getReadyState() const { return m_state; } | 76 ReadyState getReadyState() const { return m_state; } |
| 77 FileError* error() { return m_error; } | 77 FileError* error() { return m_error; } |
| 78 void result(StringOrArrayBuffer& resultAttribute) const; | 78 void result(StringOrArrayBuffer& resultAttribute) const; |
| 79 | 79 |
| 80 void contextDestroyed() override; | 80 void contextDestroyed() override; |
| 81 bool hasPendingActivity() const override; | 81 bool hasPendingActivity() const override; |
| 82 | 82 |
| 83 // EventTarget | 83 // EventTarget |
| 84 const AtomicString& interfaceName() const override; | 84 const AtomicString& interfaceName() const override; |
| 85 ExecutionContext* executionContext() const override { return ContextLifecycl
eObserver::executionContext(); } | 85 ExecutionContext* getExecutionContext() const override { return ContextLifec
ycleObserver::getExecutionContext(); } |
| 86 | 86 |
| 87 // FileReaderLoaderClient | 87 // FileReaderLoaderClient |
| 88 void didStartLoading() override; | 88 void didStartLoading() override; |
| 89 void didReceiveData() override; | 89 void didReceiveData() override; |
| 90 void didFinishLoading() override; | 90 void didFinishLoading() override; |
| 91 void didFail(FileError::ErrorCode) override; | 91 void didFail(FileError::ErrorCode) override; |
| 92 | 92 |
| 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart); | 93 DEFINE_ATTRIBUTE_EVENT_LISTENER(loadstart); |
| 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress); | 94 DEFINE_ATTRIBUTE_EVENT_LISTENER(progress); |
| 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(load); | 95 DEFINE_ATTRIBUTE_EVENT_LISTENER(load); |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 | 129 |
| 130 OwnPtr<FileReaderLoader> m_loader; | 130 OwnPtr<FileReaderLoader> m_loader; |
| 131 Member<FileError> m_error; | 131 Member<FileError> m_error; |
| 132 double m_lastProgressNotificationTimeMS; | 132 double m_lastProgressNotificationTimeMS; |
| 133 int m_asyncOperationId; | 133 int m_asyncOperationId; |
| 134 }; | 134 }; |
| 135 | 135 |
| 136 } // namespace blink | 136 } // namespace blink |
| 137 | 137 |
| 138 #endif // FileReader_h | 138 #endif // FileReader_h |
| OLD | NEW |