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

Side by Side Diff: fxjse/include/cfxjse_class.h

Issue 2136213002: Rename fxjse/ to fxjs/ update files to match class names. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Add todo Created 4 years, 5 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 | « fxjse/include/cfxjse_arguments.h ('k') | fxjse/include/cfxjse_value.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6
7 #ifndef FXJSE_INCLUDE_CFXJSE_CLASS_H_
8 #define FXJSE_INCLUDE_CFXJSE_CLASS_H_
9
10 #include "fxjse/include/cfxjse_arguments.h"
11 #include "fxjse/include/fxjse.h"
12 #include "v8/include/v8.h"
13
14 class CFXJSE_Context;
15 class CFXJSE_Value;
16
17 class CFXJSE_Class {
18 public:
19 ~CFXJSE_Class();
20
21 static CFXJSE_Class* Create(CFXJSE_Context* pContext,
22 const FXJSE_CLASS_DESCRIPTOR* lpClassDefintion,
23 FX_BOOL bIsJSGlobal = FALSE);
24 static CFXJSE_Class* GetClassFromContext(CFXJSE_Context* pContext,
25 const CFX_ByteStringC& szName);
26 static void SetUpNamedPropHandler(
27 v8::Isolate* pIsolate,
28 v8::Local<v8::ObjectTemplate>& hObjectTemplate,
29 const FXJSE_CLASS_DESCRIPTOR* lpClassDefinition);
30
31 CFXJSE_Context* GetContext() { return m_pContext; }
32 v8::Global<v8::FunctionTemplate>& GetTemplate() { return m_hTemplate; }
33
34 protected:
35 explicit CFXJSE_Class(CFXJSE_Context* lpContext);
36
37 CFX_ByteString m_szClassName;
38 const FXJSE_CLASS_DESCRIPTOR* m_lpClassDefinition;
39 CFXJSE_Context* m_pContext;
40 v8::Global<v8::FunctionTemplate> m_hTemplate;
41 friend class CFXJSE_Context;
42 friend class CFXJSE_Value;
43 };
44
45 #endif // FXJSE_INCLUDE_CFXJSE_CLASS_H_
OLDNEW
« no previous file with comments | « fxjse/include/cfxjse_arguments.h ('k') | fxjse/include/cfxjse_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698