| OLD | NEW |
| 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "app/resource_bundle.h" | |
| 10 #include "base/linked_ptr.h" | 9 #include "base/linked_ptr.h" |
| 11 #include "base/singleton.h" | 10 #include "base/singleton.h" |
| 12 #include "base/string_piece.h" | 11 #include "base/string_piece.h" |
| 12 #include "ui/base/resource/resource_bundle.h" |
| 13 #include "v8/include/v8.h" | 13 #include "v8/include/v8.h" |
| 14 | 14 |
| 15 #include <list> | 15 #include <list> |
| 16 #include <string> | 16 #include <string> |
| 17 | 17 |
| 18 class RenderView; | 18 class RenderView; |
| 19 | 19 |
| 20 namespace WebKit { | 20 namespace WebKit { |
| 21 class WebFrame; | 21 class WebFrame; |
| 22 } | 22 } |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // be a sub-property like "Port.dispatchOnMessage". Returns the result of | 114 // be a sub-property like "Port.dispatchOnMessage". Returns the result of |
| 115 // the function call. If an exception is thrown an empty Handle will be | 115 // the function call. If an exception is thrown an empty Handle will be |
| 116 // returned. | 116 // returned. |
| 117 v8::Handle<v8::Value> CallFunctionInContext(v8::Handle<v8::Context> context, | 117 v8::Handle<v8::Value> CallFunctionInContext(v8::Handle<v8::Context> context, |
| 118 const std::string& function_name, int argc, | 118 const std::string& function_name, int argc, |
| 119 v8::Handle<v8::Value>* argv); | 119 v8::Handle<v8::Value>* argv); |
| 120 | 120 |
| 121 } // namespace bindings_utils | 121 } // namespace bindings_utils |
| 122 | 122 |
| 123 #endif // CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_ | 123 #endif // CHROME_RENDERER_EXTENSIONS_BINDINGS_UTILS_H_ |
| OLD | NEW |