OLD | NEW |
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 Loading... |
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 } | |
OLD | NEW |