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

Unified Diff: webkit/glue/plugins/pepper_device_context_2d.cc

Issue 2900003: Chrome side of converting enums to uppercase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/client/plugin/pepper_entrypoints.cc ('k') | webkit/glue/plugins/pepper_directory_reader.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/plugins/pepper_device_context_2d.cc
===================================================================
--- webkit/glue/plugins/pepper_device_context_2d.cc (revision 51931)
+++ webkit/glue/plugins/pepper_device_context_2d.cc (working copy)
@@ -124,7 +124,7 @@
scoped_refptr<DeviceContext2D> context(
Resource::GetAs<DeviceContext2D>(device_context));
if (!context.get())
- return PP_Error_BadResource;
+ return PP_ERROR_BADRESOURCE;
return context->Flush(callback);
}
@@ -280,12 +280,12 @@
int32_t DeviceContext2D::Flush(const PP_CompletionCallback& callback) {
// Don't allow more than one pending flush at a time.
if (HasPendingFlush())
- return PP_Error_InProgress;
+ return PP_ERROR_INPROGRESS;
// TODO(brettw) check that the current thread is not the main one and
// implement blocking flushes in this case.
if (!callback.func)
- return PP_Error_BadArgument;
+ return PP_ERROR_BADARGUMENT;
gfx::Rect changed_rect;
for (size_t i = 0; i < queued_operations_.size(); i++) {
@@ -328,7 +328,7 @@
// execute in the next round of the message loop.
ScheduleOffscreenCallback(FlushCallbackData(callback));
}
- return PP_Error_WouldBlock;
+ return PP_ERROR_WOULDBLOCK;
}
bool DeviceContext2D::ReadImageData(PP_Resource image, int32_t x, int32_t y) {
« no previous file with comments | « remoting/client/plugin/pepper_entrypoints.cc ('k') | webkit/glue/plugins/pepper_directory_reader.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698