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

Side by Side Diff: fpdfsdk/javascript/JS_Runtime.cpp

Issue 1799773002: Move fpdfsdk/src up to fpdfsdk/. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Rebase to master Created 4 years, 9 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 | « fpdfsdk/javascript/JS_Runtime.h ('k') | fpdfsdk/javascript/JS_Runtime_Stub.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 #include "fpdfsdk/src/javascript/JS_Runtime.h" 7 #include "fpdfsdk/javascript/JS_Runtime.h"
8 8
9 #include "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment. 9 #include "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment.
10 #include "fpdfsdk/include/javascript/IJavaScript.h" 10 #include "fpdfsdk/include/javascript/IJavaScript.h"
11 #include "fpdfsdk/src/javascript/Consts.h" 11 #include "fpdfsdk/javascript/Consts.h"
12 #include "fpdfsdk/src/javascript/Document.h" 12 #include "fpdfsdk/javascript/Document.h"
13 #include "fpdfsdk/src/javascript/Field.h" 13 #include "fpdfsdk/javascript/Field.h"
14 #include "fpdfsdk/src/javascript/Icon.h" 14 #include "fpdfsdk/javascript/Icon.h"
15 #include "fpdfsdk/src/javascript/JS_Context.h" 15 #include "fpdfsdk/javascript/JS_Context.h"
16 #include "fpdfsdk/src/javascript/JS_Define.h" 16 #include "fpdfsdk/javascript/JS_Define.h"
17 #include "fpdfsdk/src/javascript/JS_EventHandler.h" 17 #include "fpdfsdk/javascript/JS_EventHandler.h"
18 #include "fpdfsdk/src/javascript/JS_GlobalData.h" 18 #include "fpdfsdk/javascript/JS_GlobalData.h"
19 #include "fpdfsdk/src/javascript/JS_Object.h" 19 #include "fpdfsdk/javascript/JS_Object.h"
20 #include "fpdfsdk/src/javascript/JS_Value.h" 20 #include "fpdfsdk/javascript/JS_Value.h"
21 #include "fpdfsdk/src/javascript/PublicMethods.h" 21 #include "fpdfsdk/javascript/PublicMethods.h"
22 #include "fpdfsdk/src/javascript/app.h" 22 #include "fpdfsdk/javascript/app.h"
23 #include "fpdfsdk/src/javascript/color.h" 23 #include "fpdfsdk/javascript/color.h"
24 #include "fpdfsdk/src/javascript/console.h" 24 #include "fpdfsdk/javascript/console.h"
25 #include "fpdfsdk/src/javascript/event.h" 25 #include "fpdfsdk/javascript/event.h"
26 #include "fpdfsdk/src/javascript/global.h" 26 #include "fpdfsdk/javascript/global.h"
27 #include "fpdfsdk/src/javascript/report.h" 27 #include "fpdfsdk/javascript/report.h"
28 #include "fpdfsdk/src/javascript/util.h" 28 #include "fpdfsdk/javascript/util.h"
29 #include "third_party/base/stl_util.h" 29 #include "third_party/base/stl_util.h"
30 30
31 #ifdef PDF_ENABLE_XFA 31 #ifdef PDF_ENABLE_XFA
32 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h" 32 #include "fpdfsdk/include/fpdfxfa/fpdfxfa_app.h"
33 #include "xfa/src/fxjse/value.h" 33 #include "xfa/src/fxjse/value.h"
34 #endif // PDF_ENABLE_XFA 34 #endif // PDF_ENABLE_XFA
35 35
36 // static 36 // static
37 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) { 37 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {
38 FXJS_Initialize(slot, reinterpret_cast<v8::Isolate*>(isolate)); 38 FXJS_Initialize(slot, reinterpret_cast<v8::Isolate*>(isolate));
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 #endif 336 #endif
337 void CJS_Runtime::AddObserver(Observer* observer) { 337 void CJS_Runtime::AddObserver(Observer* observer) {
338 ASSERT(!pdfium::ContainsKey(m_observers, observer)); 338 ASSERT(!pdfium::ContainsKey(m_observers, observer));
339 m_observers.insert(observer); 339 m_observers.insert(observer);
340 } 340 }
341 341
342 void CJS_Runtime::RemoveObserver(Observer* observer) { 342 void CJS_Runtime::RemoveObserver(Observer* observer) {
343 ASSERT(pdfium::ContainsKey(m_observers, observer)); 343 ASSERT(pdfium::ContainsKey(m_observers, observer));
344 m_observers.erase(observer); 344 m_observers.erase(observer);
345 } 345 }
OLDNEW
« no previous file with comments | « fpdfsdk/javascript/JS_Runtime.h ('k') | fpdfsdk/javascript/JS_Runtime_Stub.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698