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

Side by Side Diff: chrome/renderer/extensions/bindings_utils.h

Issue 164225: Switch to WebFrame from the WebKit API.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_ 5 #ifndef CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_
6 #define CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_ 6 #define CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_
7 7
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/linked_ptr.h" 9 #include "base/linked_ptr.h"
10 #include "base/singleton.h" 10 #include "base/singleton.h"
11 #include "base/string_piece.h" 11 #include "base/string_piece.h"
12 #include "v8/include/v8.h" 12 #include "v8/include/v8.h"
13 13
14 #include <list> 14 #include <list>
15 #include <string> 15 #include <string>
16 16
17 class RenderView; 17 class RenderView;
18 class WebFrame;
19 18
20 namespace bindings_utils { 19 namespace bindings_utils {
21 20
22 // This is a base class for chrome extension bindings. Common features that 21 // This is a base class for chrome extension bindings. Common features that
23 // are shared by different modules go here. 22 // are shared by different modules go here.
24 class ExtensionBase : public v8::Extension { 23 class ExtensionBase : public v8::Extension {
25 public: 24 public:
26 ExtensionBase(const char* name, 25 ExtensionBase(const char* name,
27 const char* source, 26 const char* source,
28 int dep_count, 27 int dep_count,
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 // Call the named javascript function with the given arguments in a context. 107 // Call the named javascript function with the given arguments in a context.
109 // The function name should be reachable from the chromeHidden object, and can 108 // The function name should be reachable from the chromeHidden object, and can
110 // be a sub-property like "Port.dispatchOnMessage". 109 // be a sub-property like "Port.dispatchOnMessage".
111 void CallFunctionInContext(v8::Handle<v8::Context> context, 110 void CallFunctionInContext(v8::Handle<v8::Context> context,
112 const std::string& function_name, int argc, 111 const std::string& function_name, int argc,
113 v8::Handle<v8::Value>* argv); 112 v8::Handle<v8::Value>* argv);
114 113
115 } // namespace bindings_utils 114 } // namespace bindings_utils
116 115
117 #endif // CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_ 116 #endif // CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/common/resource_dispatcher_unittest.cc ('k') | chrome/renderer/extensions/bindings_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698