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/src/javascript/color.h" | 7 #include "fpdfsdk/src/javascript/color.h" |
8 | 8 |
| 9 #include <vector> |
| 10 |
9 #include "fpdfsdk/include/javascript/IJavaScript.h" | 11 #include "fpdfsdk/include/javascript/IJavaScript.h" |
10 #include "fpdfsdk/src/javascript/JS_Context.h" | 12 #include "fpdfsdk/src/javascript/JS_Context.h" |
11 #include "fpdfsdk/src/javascript/JS_Define.h" | 13 #include "fpdfsdk/src/javascript/JS_Define.h" |
12 #include "fpdfsdk/src/javascript/JS_EventHandler.h" | 14 #include "fpdfsdk/src/javascript/JS_EventHandler.h" |
13 #include "fpdfsdk/src/javascript/JS_Object.h" | 15 #include "fpdfsdk/src/javascript/JS_Object.h" |
14 #include "fpdfsdk/src/javascript/JS_Runtime.h" | 16 #include "fpdfsdk/src/javascript/JS_Runtime.h" |
15 #include "fpdfsdk/src/javascript/JS_Value.h" | 17 #include "fpdfsdk/src/javascript/JS_Value.h" |
16 | 18 |
17 /* -------------------------- color -------------------------- */ | 19 /* -------------------------- color -------------------------- */ |
18 | 20 |
(...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 return FALSE; | 215 return FALSE; |
214 | 216 |
215 CPWL_Color color1; | 217 CPWL_Color color1; |
216 CPWL_Color color2; | 218 CPWL_Color color2; |
217 ConvertArrayToPWLColor(array1, color1); | 219 ConvertArrayToPWLColor(array1, color1); |
218 ConvertArrayToPWLColor(array2, color2); | 220 ConvertArrayToPWLColor(array2, color2); |
219 color1.ConvertColorType(color2.nColorType); | 221 color1.ConvertColorType(color2.nColorType); |
220 vRet = color1 == color2; | 222 vRet = color1 == color2; |
221 return TRUE; | 223 return TRUE; |
222 } | 224 } |
OLD | NEW |