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

Side by Side Diff: webkit/glue/cpp_bound_class.h

Issue 10382059: Quote CppBoundClass/CppVariant in namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix a long line Created 8 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium 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 /* 5 /*
6 CppBoundClass class: 6 CppBoundClass class:
7 This base class serves as a parent for C++ classes designed to be bound to 7 This base class serves as a parent for C++ classes designed to be bound to
8 JavaScript objects. 8 JavaScript objects.
9 9
10 Subclasses should define the constructor to build the property and method 10 Subclasses should define the constructor to build the property and method
11 lists needed to bind this class to a JS object. They should also declare 11 lists needed to bind this class to a JS object. They should also declare
(...skipping 12 matching lines...) Expand all
24 #include "webkit/glue/cpp_variant.h" 24 #include "webkit/glue/cpp_variant.h"
25 25
26 #include "base/callback.h" 26 #include "base/callback.h"
27 #include "base/memory/scoped_ptr.h" 27 #include "base/memory/scoped_ptr.h"
28 #include "webkit/glue/webkit_glue_export.h" 28 #include "webkit/glue/webkit_glue_export.h"
29 29
30 namespace WebKit { 30 namespace WebKit {
31 class WebFrame; 31 class WebFrame;
32 } 32 }
33 33
34 namespace webkit_glue {
35
34 typedef std::vector<CppVariant> CppArgumentList; 36 typedef std::vector<CppVariant> CppArgumentList;
35 37
36 // CppBoundClass lets you map Javascript method calls and property accesses 38 // CppBoundClass lets you map Javascript method calls and property accesses
37 // directly to C++ method calls and CppVariant* variable access. 39 // directly to C++ method calls and CppVariant* variable access.
38 class WEBKIT_GLUE_EXPORT CppBoundClass { 40 class WEBKIT_GLUE_EXPORT CppBoundClass {
39 public: 41 public:
40 class PropertyCallback { 42 class PropertyCallback {
41 public: 43 public:
42 virtual ~PropertyCallback() { } 44 virtual ~PropertyCallback() { }
43 45
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 // reference to this object, and it is released on deletion. 135 // reference to this object, and it is released on deletion.
134 CppVariant self_variant_; 136 CppVariant self_variant_;
135 137
136 // True if our np_object has been bound to a WebFrame, in which case it must 138 // True if our np_object has been bound to a WebFrame, in which case it must
137 // be unregistered with V8 when we delete it. 139 // be unregistered with V8 when we delete it.
138 bool bound_to_frame_; 140 bool bound_to_frame_;
139 141
140 DISALLOW_COPY_AND_ASSIGN(CppBoundClass); 142 DISALLOW_COPY_AND_ASSIGN(CppBoundClass);
141 }; 143 };
142 144
145 } // namespace webkit_glue
146
143 #endif // CPP_BOUNDCLASS_H__ 147 #endif // CPP_BOUNDCLASS_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698