| OLD | NEW |
| 1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
| 6 | 6 |
| 7 #include "fpdfsdk/javascript/color.h" | 7 #include "fpdfsdk/javascript/color.h" |
| 8 | 8 |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "fpdfsdk/include/javascript/IJavaScript.h" | |
| 12 #include "fpdfsdk/javascript/JS_Context.h" | 11 #include "fpdfsdk/javascript/JS_Context.h" |
| 13 #include "fpdfsdk/javascript/JS_Define.h" | 12 #include "fpdfsdk/javascript/JS_Define.h" |
| 14 #include "fpdfsdk/javascript/JS_EventHandler.h" | 13 #include "fpdfsdk/javascript/JS_EventHandler.h" |
| 15 #include "fpdfsdk/javascript/JS_Object.h" | 14 #include "fpdfsdk/javascript/JS_Object.h" |
| 16 #include "fpdfsdk/javascript/JS_Runtime.h" | 15 #include "fpdfsdk/javascript/JS_Runtime.h" |
| 17 #include "fpdfsdk/javascript/JS_Value.h" | 16 #include "fpdfsdk/javascript/JS_Value.h" |
| 18 | 17 |
| 19 /* -------------------------- color -------------------------- */ | 18 /* -------------------------- color -------------------------- */ |
| 20 | 19 |
| 21 BEGIN_JS_STATIC_CONST(CJS_Color) | 20 BEGIN_JS_STATIC_CONST(CJS_Color) |
| (...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 214 return FALSE; | 213 return FALSE; |
| 215 | 214 |
| 216 CPWL_Color color1; | 215 CPWL_Color color1; |
| 217 CPWL_Color color2; | 216 CPWL_Color color2; |
| 218 ConvertArrayToPWLColor(array1, color1); | 217 ConvertArrayToPWLColor(array1, color1); |
| 219 ConvertArrayToPWLColor(array2, color2); | 218 ConvertArrayToPWLColor(array2, color2); |
| 220 color1.ConvertColorType(color2.nColorType); | 219 color1.ConvertColorType(color2.nColorType); |
| 221 vRet = color1 == color2; | 220 vRet = color1 == color2; |
| 222 return TRUE; | 221 return TRUE; |
| 223 } | 222 } |
| OLD | NEW |