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

Side by Side Diff: Source/bindings/v8/custom/V8WebGLRenderingContextCustom.cpp

Issue 135843008: Remove V8HiddenPropertyName (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 11 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "V8WebGLFramebuffer.h" 56 #include "V8WebGLFramebuffer.h"
57 #include "V8WebGLLoseContext.h" 57 #include "V8WebGLLoseContext.h"
58 #include "V8WebGLProgram.h" 58 #include "V8WebGLProgram.h"
59 #include "V8WebGLRenderbuffer.h" 59 #include "V8WebGLRenderbuffer.h"
60 #include "V8WebGLShader.h" 60 #include "V8WebGLShader.h"
61 #include "V8WebGLTexture.h" 61 #include "V8WebGLTexture.h"
62 #include "V8WebGLUniformLocation.h" 62 #include "V8WebGLUniformLocation.h"
63 #include "V8WebGLVertexArrayObjectOES.h" 63 #include "V8WebGLVertexArrayObjectOES.h"
64 #include "bindings/v8/ExceptionMessages.h" 64 #include "bindings/v8/ExceptionMessages.h"
65 #include "bindings/v8/V8Binding.h" 65 #include "bindings/v8/V8Binding.h"
66 #include "bindings/v8/V8HiddenPropertyName.h"
67 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h" 66 #include "bindings/v8/custom/V8ArrayBufferViewCustom.h"
68 #include "bindings/v8/custom/V8Float32ArrayCustom.h" 67 #include "bindings/v8/custom/V8Float32ArrayCustom.h"
69 #include "bindings/v8/custom/V8Int16ArrayCustom.h" 68 #include "bindings/v8/custom/V8Int16ArrayCustom.h"
70 #include "bindings/v8/custom/V8Int32ArrayCustom.h" 69 #include "bindings/v8/custom/V8Int32ArrayCustom.h"
71 #include "bindings/v8/custom/V8Int8ArrayCustom.h" 70 #include "bindings/v8/custom/V8Int8ArrayCustom.h"
72 #include "bindings/v8/custom/V8Uint16ArrayCustom.h" 71 #include "bindings/v8/custom/V8Uint16ArrayCustom.h"
73 #include "bindings/v8/custom/V8Uint32ArrayCustom.h" 72 #include "bindings/v8/custom/V8Uint32ArrayCustom.h"
74 #include "bindings/v8/custom/V8Uint8ArrayCustom.h" 73 #include "bindings/v8/custom/V8Uint8ArrayCustom.h"
75 #include "core/dom/ExceptionCode.h" 74 #include "core/dom/ExceptionCode.h"
76 #include "core/html/canvas/WebGLRenderingContext.h" 75 #include "core/html/canvas/WebGLRenderingContext.h"
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 case WebGLExtension::WebGLDrawBuffersName: 249 case WebGLExtension::WebGLDrawBuffersName:
251 extensionObject = toV8(static_cast<WebGLDrawBuffers*>(extension), contex tObject, isolate); 250 extensionObject = toV8(static_cast<WebGLDrawBuffers*>(extension), contex tObject, isolate);
252 referenceName = "webGLDrawBuffersName"; 251 referenceName = "webGLDrawBuffersName";
253 break; 252 break;
254 case WebGLExtension::WebGLLoseContextName: 253 case WebGLExtension::WebGLLoseContextName:
255 extensionObject = toV8(static_cast<WebGLLoseContext*>(extension), contex tObject, isolate); 254 extensionObject = toV8(static_cast<WebGLLoseContext*>(extension), contex tObject, isolate);
256 referenceName = "webGLLoseContextName"; 255 referenceName = "webGLLoseContextName";
257 break; 256 break;
258 } 257 }
259 ASSERT(!extensionObject.IsEmpty()); 258 ASSERT(!extensionObject.IsEmpty());
260 V8HiddenPropertyName::setNamedHiddenReference(contextObject, referenceName, extensionObject); 259 setHiddenValue(isolate, contextObject, referenceName, extensionObject);
261 return extensionObject; 260 return extensionObject;
262 } 261 }
263 262
264 enum ObjectType { 263 enum ObjectType {
265 kBuffer, kRenderbuffer, kTexture, kVertexAttrib 264 kBuffer, kRenderbuffer, kTexture, kVertexAttrib
266 }; 265 };
267 266
268 static void getObjectParameter(const v8::FunctionCallbackInfo<v8::Value>& info, ObjectType objectType, ExceptionState& exceptionState) 267 static void getObjectParameter(const v8::FunctionCallbackInfo<v8::Value>& info, ObjectType objectType, ExceptionState& exceptionState)
269 { 268 {
270 if (info.Length() != 2) { 269 if (info.Length() != 2) {
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after
841 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState); 840 vertexAttribAndUniformHelperf(info, kVertexAttrib3v, exceptionState);
842 } 841 }
843 842
844 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall backInfo<v8::Value>& info) 843 void V8WebGLRenderingContext::vertexAttrib4fvMethodCustom(const v8::FunctionCall backInfo<v8::Value>& info)
845 { 844 {
846 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate()); 845 ExceptionState exceptionState(ExceptionState::ExecutionContext, "vertexAttri b4fv", "WebGLRenderingContext", info.Holder(), info.GetIsolate());
847 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState); 846 vertexAttribAndUniformHelperf(info, kVertexAttrib4v, exceptionState);
848 } 847 }
849 848
850 } // namespace WebCore 849 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/bindings/v8/custom/V8PromiseCustom.cpp ('k') | Source/bindings/v8/custom/V8WindowCustom.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698