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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/FileWriter.h

Issue 2068053002: Rename Blink constants generated from IDL files. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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) 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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 , public ActiveScriptWrappable 52 , public ActiveScriptWrappable
53 , public ActiveDOMObject 53 , public ActiveDOMObject
54 , public WebFileWriterClient { 54 , public WebFileWriterClient {
55 DEFINE_WRAPPERTYPEINFO(); 55 DEFINE_WRAPPERTYPEINFO();
56 USING_GARBAGE_COLLECTED_MIXIN(FileWriter); 56 USING_GARBAGE_COLLECTED_MIXIN(FileWriter);
57 public: 57 public:
58 static FileWriter* create(ExecutionContext*); 58 static FileWriter* create(ExecutionContext*);
59 ~FileWriter() override; 59 ~FileWriter() override;
60 60
61 enum ReadyState { 61 enum ReadyState {
62 INIT = 0, 62 kInit = 0,
63 WRITING = 1, 63 kWriting = 1,
64 DONE = 2 64 kDone = 2
65 }; 65 };
66 66
67 void write(Blob*, ExceptionState&); 67 void write(Blob*, ExceptionState&);
68 void seek(long long position, ExceptionState&); 68 void seek(long long position, ExceptionState&);
69 void truncate(long long length, ExceptionState&); 69 void truncate(long long length, ExceptionState&);
70 void abort(ExceptionState&); 70 void abort(ExceptionState&);
71 ReadyState getReadyState() const { return m_readyState; } 71 ReadyState getReadyState() const { return m_readyState; }
72 DOMException* error() const { return m_error.get(); } 72 DOMException* error() const { return m_error.get(); }
73 73
74 // WebFileWriterClient 74 // WebFileWriterClient
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 long long m_truncateLength; 124 long long m_truncateLength;
125 long long m_numAborts; 125 long long m_numAborts;
126 long long m_recursionDepth; 126 long long m_recursionDepth;
127 double m_lastProgressNotificationTimeMS; 127 double m_lastProgressNotificationTimeMS;
128 Member<Blob> m_blobBeingWritten; 128 Member<Blob> m_blobBeingWritten;
129 }; 129 };
130 130
131 } // namespace blink 131 } // namespace blink
132 132
133 #endif // FileWriter_h 133 #endif // FileWriter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698