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

Unified Diff: extensions/renderer/context_menus_custom_bindings.cc

Issue 235943018: Move extensions bindings code out of //chrome (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « extensions/renderer/context_menus_custom_bindings.h ('k') | extensions/renderer/css_native_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/context_menus_custom_bindings.cc
diff --git a/chrome/renderer/extensions/context_menus_custom_bindings.cc b/extensions/renderer/context_menus_custom_bindings.cc
similarity index 73%
rename from chrome/renderer/extensions/context_menus_custom_bindings.cc
rename to extensions/renderer/context_menus_custom_bindings.cc
index f7a80fd145cb5de632bf9fc9c7a156d726f69581..e9e221fa077435e8811d9b12001af840b99e48e0 100644
--- a/chrome/renderer/extensions/context_menus_custom_bindings.cc
+++ b/extensions/renderer/context_menus_custom_bindings.cc
@@ -2,12 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/renderer/extensions/context_menus_custom_bindings.h"
+#include "extensions/renderer/context_menus_custom_bindings.h"
#include "base/bind.h"
#include "content/public/renderer/render_thread.h"
#include "extensions/common/extension_messages.h"
-#include "grit/renderer_resources.h"
#include "v8/include/v8.h"
namespace {
@@ -23,9 +22,8 @@ void GetNextContextMenuId(const v8::FunctionCallbackInfo<v8::Value>& args) {
namespace extensions {
-ContextMenusCustomBindings::ContextMenusCustomBindings(
- Dispatcher* dispatcher, ChromeV8Context* context)
- : ChromeV8Extension(dispatcher, context) {
+ContextMenusCustomBindings::ContextMenusCustomBindings(ScriptContext* context)
+ : ObjectBackedNativeHandler(context) {
RouteFunction("GetNextContextMenuId", base::Bind(&GetNextContextMenuId));
}
« no previous file with comments | « extensions/renderer/context_menus_custom_bindings.h ('k') | extensions/renderer/css_native_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698