| Index: chrome/renderer/searchbox/searchbox_extension.cc
|
| diff --git a/chrome/renderer/searchbox/searchbox_extension.cc b/chrome/renderer/searchbox/searchbox_extension.cc
|
| index 73372590fd03d204098745be006d68be77a5c76a..be2ceb5cc3cac55f5b5750d48d1708b92ecaaf57 100644
|
| --- a/chrome/renderer/searchbox/searchbox_extension.cc
|
| +++ b/chrome/renderer/searchbox/searchbox_extension.cc
|
| @@ -225,19 +225,15 @@ class SearchBoxExtensionWrapper : public v8::Extension {
|
| static v8::Handle<v8::Value> GetY(const v8::Arguments& args);
|
|
|
| // Gets the width of the region of the search box that overlaps the window.
|
| + // In extended Instant, this gets the width of the location bar instead.
|
| static v8::Handle<v8::Value> GetWidth(const v8::Arguments& args);
|
|
|
| // Gets the height of the region of the search box that overlaps the window.
|
| static v8::Handle<v8::Value> GetHeight(const v8::Arguments& args);
|
|
|
| - // Gets the width of the margin from the start-edge of the page to the start
|
| - // of the suggestions dropdown.
|
| + // Gets the start-edge margin to use with extended Instant.
|
| static v8::Handle<v8::Value> GetStartMargin(const v8::Arguments& args);
|
|
|
| - // Gets the width of the margin from the end-edge of the page to the end of
|
| - // the suggestions dropdown.
|
| - static v8::Handle<v8::Value> GetEndMargin(const v8::Arguments& args);
|
| -
|
| // Returns true if the Searchbox itself is oriented right-to-left.
|
| static v8::Handle<v8::Value> GetRightToLeft(const v8::Arguments& args);
|
|
|
| @@ -334,8 +330,6 @@ v8::Handle<v8::FunctionTemplate> SearchBoxExtensionWrapper::GetNativeFunction(
|
| return v8::FunctionTemplate::New(GetHeight);
|
| if (name->Equals(v8::String::New("GetStartMargin")))
|
| return v8::FunctionTemplate::New(GetStartMargin);
|
| - if (name->Equals(v8::String::New("GetEndMargin")))
|
| - return v8::FunctionTemplate::New(GetEndMargin);
|
| if (name->Equals(v8::String::New("GetRightToLeft")))
|
| return v8::FunctionTemplate::New(GetRightToLeft);
|
| if (name->Equals(v8::String::New("GetAutocompleteResults")))
|
| @@ -449,8 +443,7 @@ v8::Handle<v8::Value> SearchBoxExtensionWrapper::GetWidth(
|
| const v8::Arguments& args) {
|
| content::RenderView* render_view = GetRenderView();
|
| if (!render_view) return v8::Undefined();
|
| -
|
| - return v8::Int32::New(SearchBox::Get(render_view)->GetPopupBounds().width());
|
| + return v8::Int32::New(SearchBox::Get(render_view)->GetWidth());
|
| }
|
|
|
| // static
|
| @@ -471,14 +464,6 @@ v8::Handle<v8::Value> SearchBoxExtensionWrapper::GetStartMargin(
|
| }
|
|
|
| // static
|
| -v8::Handle<v8::Value> SearchBoxExtensionWrapper::GetEndMargin(
|
| - const v8::Arguments& args) {
|
| - content::RenderView* render_view = GetRenderView();
|
| - if (!render_view) return v8::Undefined();
|
| - return v8::Int32::New(SearchBox::Get(render_view)->GetEndMargin());
|
| -}
|
| -
|
| -// static
|
| v8::Handle<v8::Value> SearchBoxExtensionWrapper::GetRightToLeft(
|
| const v8::Arguments& args) {
|
| return v8::Boolean::New(base::i18n::IsRTL());
|
|
|