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

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

Issue 1439223003: Merge to XFA: Remove relative includes. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@xfa
Patch Set: fix merge Created 5 years, 1 month 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/src/javascript/JS_Runtime.h ('k') | fpdfsdk/src/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 "JS_Runtime.h" 7 #include "JS_Runtime.h"
8 8
9 #include "../../../xfa/src/fxjse/src/value.h" 9 #include "../../../xfa/src/fxjse/src/value.h"
10 #include "../../include/fpdfxfa/fpdfxfa_app.h" 10 #include "../../include/fpdfxfa/fpdfxfa_app.h"
11 #include "../../include/fsdk_mgr.h" // For CPDFDoc_Environment.
12 #include "../../include/javascript/IJavaScript.h"
13 #include "Consts.h" 11 #include "Consts.h"
14 #include "Document.h" 12 #include "Document.h"
15 #include "Field.h" 13 #include "Field.h"
16 #include "Icon.h" 14 #include "Icon.h"
17 #include "JS_Context.h" 15 #include "JS_Context.h"
18 #include "JS_Define.h" 16 #include "JS_Define.h"
19 #include "JS_EventHandler.h" 17 #include "JS_EventHandler.h"
20 #include "JS_GlobalData.h" 18 #include "JS_GlobalData.h"
21 #include "JS_Object.h" 19 #include "JS_Object.h"
22 #include "JS_Value.h" 20 #include "JS_Value.h"
23 #include "PublicMethods.h" 21 #include "PublicMethods.h"
24 #include "app.h" 22 #include "app.h"
25 #include "color.h" 23 #include "color.h"
26 #include "console.h" 24 #include "console.h"
27 #include "event.h" 25 #include "event.h"
26 #include "fpdfsdk/include/fsdk_mgr.h" // For CPDFDoc_Environment.
27 #include "fpdfsdk/include/javascript/IJavaScript.h"
28 #include "global.h" 28 #include "global.h"
29 #include "report.h" 29 #include "report.h"
30 #include "util.h" 30 #include "util.h"
31 31
32 /* ------------------------------ CJS_Runtime ------------------------------ */ 32 /* ------------------------------ CJS_Runtime ------------------------------ */
33 v8::Global<v8::ObjectTemplate>& _getGlobalObjectTemplate(v8::Isolate* pIsolate); 33 v8::Global<v8::ObjectTemplate>& _getGlobalObjectTemplate(v8::Isolate* pIsolate);
34 34
35 // static 35 // static
36 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) { 36 void IJS_Runtime::Initialize(unsigned int slot, void* isolate) {
37 FXJS_Initialize(slot, reinterpret_cast<v8::Isolate*>(isolate)); 37 FXJS_Initialize(slot, reinterpret_cast<v8::Isolate*>(isolate));
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 300
301 void CJS_Runtime::AddObserver(Observer* observer) { 301 void CJS_Runtime::AddObserver(Observer* observer) {
302 ASSERT(m_observers.find(observer) == m_observers.end()); 302 ASSERT(m_observers.find(observer) == m_observers.end());
303 m_observers.insert(observer); 303 m_observers.insert(observer);
304 } 304 }
305 305
306 void CJS_Runtime::RemoveObserver(Observer* observer) { 306 void CJS_Runtime::RemoveObserver(Observer* observer) {
307 ASSERT(m_observers.find(observer) != m_observers.end()); 307 ASSERT(m_observers.find(observer) != m_observers.end());
308 m_observers.erase(observer); 308 m_observers.erase(observer);
309 } 309 }
OLDNEW
« no previous file with comments | « fpdfsdk/src/javascript/JS_Runtime.h ('k') | fpdfsdk/src/javascript/JS_Runtime_Stub.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698