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

Side by Side Diff: Source/core/platform/chromium/ChromiumDataObject.cpp

Issue 72363002: Rename es => exceptionState in other than bindings/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Retry Created 7 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2008, 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (c) 2008, 2009, 2012 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 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 if (index >= length()) 89 if (index >= length())
90 return; 90 return;
91 m_itemList.remove(index); 91 m_itemList.remove(index);
92 } 92 }
93 93
94 void ChromiumDataObject::clearAll() 94 void ChromiumDataObject::clearAll()
95 { 95 {
96 m_itemList.clear(); 96 m_itemList.clear();
97 } 97 }
98 98
99 PassRefPtr<ChromiumDataObjectItem> ChromiumDataObject::add(const String& data, c onst String& type, ExceptionState& es) 99 PassRefPtr<ChromiumDataObjectItem> ChromiumDataObject::add(const String& data, c onst String& type, ExceptionState& exceptionState)
100 { 100 {
101 RefPtr<ChromiumDataObjectItem> item = ChromiumDataObjectItem::createFromStri ng(type, data); 101 RefPtr<ChromiumDataObjectItem> item = ChromiumDataObjectItem::createFromStri ng(type, data);
102 if (!internalAddStringItem(item)) { 102 if (!internalAddStringItem(item)) {
103 es.throwDOMException(NotSupportedError, ExceptionMessages::failedToExecu te("add", "DataTransferItemList")); 103 exceptionState.throwDOMException(NotSupportedError, ExceptionMessages::f ailedToExecute("add", "DataTransferItemList"));
104 return 0; 104 return 0;
105 } 105 }
106 return item; 106 return item;
107 } 107 }
108 108
109 PassRefPtr<ChromiumDataObjectItem> ChromiumDataObject::add(PassRefPtr<File> file ) 109 PassRefPtr<ChromiumDataObjectItem> ChromiumDataObject::add(PassRefPtr<File> file )
110 { 110 {
111 if (!file) 111 if (!file)
112 return 0; 112 return 0;
113 113
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 return true; 261 return true;
262 } 262 }
263 263
264 void ChromiumDataObject::internalAddFileItem(PassRefPtr<ChromiumDataObjectItem> item) 264 void ChromiumDataObject::internalAddFileItem(PassRefPtr<ChromiumDataObjectItem> item)
265 { 265 {
266 ASSERT(item->kind() == DataTransferItem::kindFile); 266 ASSERT(item->kind() == DataTransferItem::kindFile);
267 m_itemList.append(item); 267 m_itemList.append(item);
268 } 268 }
269 269
270 } // namespace WebCore 270 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/core/page/EventSource.cpp ('k') | Source/core/platform/image-decoders/gif/GIFImageReader.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698