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

Side by Side Diff: fpdfsdk/src/javascript/app.cpp

Issue 1331633002: Change the JS app.viewerType() return value to "pdfium" (Closed) Base URL: https://pdfium.googlesource.com/pdfium@master
Patch Set: app_props.in Created 5 years, 3 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
« no previous file with comments | « no previous file | testing/resources/javascript/app_alert.in » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "../../../third_party/base/nonstd_unique_ptr.h" 7 #include "../../../third_party/base/nonstd_unique_ptr.h"
8 #include "../../include/javascript/JavaScript.h" 8 #include "../../include/javascript/JavaScript.h"
9 #include "../../include/javascript/IJavaScript.h" 9 #include "../../include/javascript/IJavaScript.h"
10 #include "../../include/javascript/JS_Define.h" 10 #include "../../include/javascript/JS_Define.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 return TRUE; 181 return TRUE;
182 } 182 }
183 183
184 return FALSE; 184 return FALSE;
185 } 185 }
186 186
187 FX_BOOL app::viewerType(IFXJS_Context* cc, 187 FX_BOOL app::viewerType(IFXJS_Context* cc,
188 CJS_PropValue& vp, 188 CJS_PropValue& vp,
189 CFX_WideString& sError) { 189 CFX_WideString& sError) {
190 if (vp.IsGetting()) { 190 if (vp.IsGetting()) {
191 vp << L"unknown"; 191 vp << L"pdfium";
192 return TRUE; 192 return TRUE;
193 } 193 }
194 194
195 return FALSE; 195 return FALSE;
196 } 196 }
197 197
198 FX_BOOL app::viewerVariation(IFXJS_Context* cc, 198 FX_BOOL app::viewerVariation(IFXJS_Context* cc,
199 CJS_PropValue& vp, 199 CJS_PropValue& vp,
200 CFX_WideString& sError) { 200 CFX_WideString& sError) {
201 if (vp.IsGetting()) { 201 if (vp.IsGetting()) {
(...skipping 654 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 CFX_WideString& sError) { 856 CFX_WideString& sError) {
857 return FALSE; 857 return FALSE;
858 } 858 }
859 859
860 FX_BOOL app::execDialog(IFXJS_Context* cc, 860 FX_BOOL app::execDialog(IFXJS_Context* cc,
861 const CJS_Parameters& params, 861 const CJS_Parameters& params,
862 CJS_Value& vRet, 862 CJS_Value& vRet,
863 CFX_WideString& sError) { 863 CFX_WideString& sError) {
864 return TRUE; 864 return TRUE;
865 } 865 }
OLDNEW
« no previous file with comments | « no previous file | testing/resources/javascript/app_alert.in » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698