| Index: chrome/renderer/extensions/app_window_custom_bindings.cc
|
| diff --git a/chrome/renderer/extensions/app_window_custom_bindings.cc b/chrome/renderer/extensions/app_window_custom_bindings.cc
|
| index 65473b75021d042ad89236996efa62a7a84c0725..0815a6782e0477db92fc7723bbd742223dd561fd 100644
|
| --- a/chrome/renderer/extensions/app_window_custom_bindings.cc
|
| +++ b/chrome/renderer/extensions/app_window_custom_bindings.cc
|
| @@ -53,6 +53,9 @@ AppWindowCustomBindings::AppWindowCustomBindings(Dispatcher* dispatcher)
|
| RouteFunction("GetView",
|
| base::Bind(&AppWindowCustomBindings::GetView,
|
| base::Unretained(this)));
|
| + RouteFunction("GetCurrentRoutingID",
|
| + base::Bind(&AppWindowCustomBindings::GetCurrentRoutingID,
|
| + base::Unretained(this)));
|
| }
|
|
|
| namespace {
|
| @@ -78,6 +81,14 @@ class FindViewByID : public content::RenderViewVisitor {
|
| };
|
| } // namespace
|
|
|
| +v8::Handle<v8::Value> AppWindowCustomBindings::GetCurrentRoutingID(
|
| + const v8::Arguments& args) {
|
| + content::RenderView* render_view = GetCurrentRenderView();
|
| + if (!render_view)
|
| + return v8::Undefined();
|
| + return v8::Integer::New(render_view->GetRoutingID());
|
| +}
|
| +
|
| v8::Handle<v8::Value> AppWindowCustomBindings::GetView(
|
| const v8::Arguments& args) {
|
| // TODO(jeremya): convert this to IDL nocompile to get validation, and turn
|
|
|