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

Side by Side Diff: fpdfsdk/javascript/Document.h

Issue 2202283002: Introduce ::getPropertyInternal method to avoid duplication (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add support to Document::URL property getter. Created 4 years, 4 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 | fpdfsdk/javascript/Document.cpp » ('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 #ifndef FPDFSDK_JAVASCRIPT_DOCUMENT_H_ 7 #ifndef FPDFSDK_JAVASCRIPT_DOCUMENT_H_
8 #define FPDFSDK_JAVASCRIPT_DOCUMENT_H_ 8 #define FPDFSDK_JAVASCRIPT_DOCUMENT_H_
9 9
10 #include <list> 10 #include <list>
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 CJS_Value& vRet, 252 CJS_Value& vRet,
253 CFX_WideString& sError); 253 CFX_WideString& sError);
254 FX_BOOL mailDoc(IJS_Context* cc, 254 FX_BOOL mailDoc(IJS_Context* cc,
255 const std::vector<CJS_Value>& params, 255 const std::vector<CJS_Value>& params,
256 CJS_Value& vRet, 256 CJS_Value& vRet,
257 CFX_WideString& sError); 257 CFX_WideString& sError);
258 FX_BOOL removeIcon(IJS_Context* cc, 258 FX_BOOL removeIcon(IJS_Context* cc,
259 const std::vector<CJS_Value>& params, 259 const std::vector<CJS_Value>& params,
260 CJS_Value& vRet, 260 CJS_Value& vRet,
261 CFX_WideString& sError); 261 CFX_WideString& sError);
262 FX_BOOL URL(IJS_Context* cc, CJS_PropValue& vp, CFX_WideString& sError);
262 263
263 void AttachDoc(CPDFSDK_Document* pDoc); 264 void AttachDoc(CPDFSDK_Document* pDoc);
264 CPDFSDK_Document* GetReaderDoc(); 265 CPDFSDK_Document* GetReaderDoc();
265 void AddDelayData(CJS_DelayData* pData); 266 void AddDelayData(CJS_DelayData* pData);
266 void DoFieldDelay(const CFX_WideString& sFieldName, int nControlIndex); 267 void DoFieldDelay(const CFX_WideString& sFieldName, int nControlIndex);
267 void SetIsolate(v8::Isolate* isolate) { m_isolate = isolate; } 268 void SetIsolate(v8::Isolate* isolate) { m_isolate = isolate; }
268 CJS_Document* GetCJSDoc() const; 269 CJS_Document* GetCJSDoc() const;
269 270
270 private: 271 private:
271 bool IsEnclosedInRect(CFX_FloatRect rect, CFX_FloatRect LinkRect); 272 bool IsEnclosedInRect(CFX_FloatRect rect, CFX_FloatRect LinkRect);
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
317 JS_STATIC_PROP(mouseX, Document); 318 JS_STATIC_PROP(mouseX, Document);
318 JS_STATIC_PROP(mouseY, Document); 319 JS_STATIC_PROP(mouseY, Document);
319 JS_STATIC_PROP(numFields, Document); 320 JS_STATIC_PROP(numFields, Document);
320 JS_STATIC_PROP(numPages, Document); 321 JS_STATIC_PROP(numPages, Document);
321 JS_STATIC_PROP(pageNum, Document); 322 JS_STATIC_PROP(pageNum, Document);
322 JS_STATIC_PROP(pageWindowRect, Document); 323 JS_STATIC_PROP(pageWindowRect, Document);
323 JS_STATIC_PROP(path, Document); 324 JS_STATIC_PROP(path, Document);
324 JS_STATIC_PROP(producer, Document); 325 JS_STATIC_PROP(producer, Document);
325 JS_STATIC_PROP(subject, Document); 326 JS_STATIC_PROP(subject, Document);
326 JS_STATIC_PROP(title, Document); 327 JS_STATIC_PROP(title, Document);
328 JS_STATIC_PROP(URL, Document);
327 JS_STATIC_PROP(zoom, Document); 329 JS_STATIC_PROP(zoom, Document);
328 JS_STATIC_PROP(zoomType, Document); 330 JS_STATIC_PROP(zoomType, Document);
329 331
330 JS_STATIC_METHOD(addAnnot, Document); 332 JS_STATIC_METHOD(addAnnot, Document);
331 JS_STATIC_METHOD(addField, Document); 333 JS_STATIC_METHOD(addField, Document);
332 JS_STATIC_METHOD(addLink, Document); 334 JS_STATIC_METHOD(addLink, Document);
333 JS_STATIC_METHOD(addIcon, Document); 335 JS_STATIC_METHOD(addIcon, Document);
334 JS_STATIC_METHOD(calculateNow, Document); 336 JS_STATIC_METHOD(calculateNow, Document);
335 JS_STATIC_METHOD(closeDoc, Document); 337 JS_STATIC_METHOD(closeDoc, Document);
336 JS_STATIC_METHOD(createDataObject, Document); 338 JS_STATIC_METHOD(createDataObject, Document);
(...skipping 26 matching lines...) Expand all
363 JS_STATIC_METHOD(removeField, Document); 365 JS_STATIC_METHOD(removeField, Document);
364 JS_STATIC_METHOD(replacePages, Document); 366 JS_STATIC_METHOD(replacePages, Document);
365 JS_STATIC_METHOD(removeIcon, Document); 367 JS_STATIC_METHOD(removeIcon, Document);
366 JS_STATIC_METHOD(resetForm, Document); 368 JS_STATIC_METHOD(resetForm, Document);
367 JS_STATIC_METHOD(saveAs, Document); 369 JS_STATIC_METHOD(saveAs, Document);
368 JS_STATIC_METHOD(submitForm, Document); 370 JS_STATIC_METHOD(submitForm, Document);
369 JS_STATIC_METHOD(mailDoc, Document); 371 JS_STATIC_METHOD(mailDoc, Document);
370 }; 372 };
371 373
372 #endif // FPDFSDK_JAVASCRIPT_DOCUMENT_H_ 374 #endif // FPDFSDK_JAVASCRIPT_DOCUMENT_H_
OLDNEW
« no previous file with comments | « no previous file | fpdfsdk/javascript/Document.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698