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

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

Issue 1413883005: More master side changes for convergence with XFA. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Remove fn. Created 5 years, 2 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
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 "../../include/fsdk_mgr.h" // For CPDFDoc_Environment. 9 #include "../../include/fsdk_mgr.h" // For CPDFDoc_Environment.
10 #include "../../include/javascript/IJavaScript.h" 10 #include "../../include/javascript/IJavaScript.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 207
208 void CJS_Runtime::AddObserver(Observer* observer) { 208 void CJS_Runtime::AddObserver(Observer* observer) {
209 ASSERT(m_observers.find(observer) == m_observers.end()); 209 ASSERT(m_observers.find(observer) == m_observers.end());
210 m_observers.insert(observer); 210 m_observers.insert(observer);
211 } 211 }
212 212
213 void CJS_Runtime::RemoveObserver(Observer* observer) { 213 void CJS_Runtime::RemoveObserver(Observer* observer) {
214 ASSERT(m_observers.find(observer) != m_observers.end()); 214 ASSERT(m_observers.find(observer) != m_observers.end());
215 m_observers.erase(observer); 215 m_observers.erase(observer);
216 } 216 }
217
218 CFX_WideString ChangeObjName(const CFX_WideString& str) {
219 CFX_WideString sRet = str;
220 sRet.Replace(L"_", L".");
221 return sRet;
222 }
OLDNEW
« fpdfsdk/src/javascript/JS_GlobalData.h ('K') | « fpdfsdk/src/javascript/JS_GlobalData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698