Commit 3296da4a authored by kmadhusu@chromium.org's avatar kmadhusu@chromium.org

Remove unused param "width_" from SearchBox::OnMarginChange().

This is a prep CL to fix crbug.com/247517 and crbug.com/272583.

BUG=none
TEST=none
TBR=cevans@chromium.org

Review URL: https://codereview.chromium.org/148683002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@247828 0039d316-1c4b-4281-b951-d872f2087c98
parent c5e1aca9
......@@ -16,8 +16,7 @@ class InstantIPCSenderImpl : public InstantIPCSender {
private:
virtual void SetOmniboxBounds(const gfx::Rect& bounds) OVERRIDE {
Send(new ChromeViewMsg_SearchBoxMarginChange(
routing_id(), bounds.x(), bounds.width()));
Send(new ChromeViewMsg_SearchBoxMarginChange(routing_id(), bounds.x()));
}
virtual void FocusChanged(OmniboxFocusState state,
......@@ -41,8 +40,7 @@ class IncognitoInstantIPCSenderImpl : public InstantIPCSender {
private:
virtual void SetOmniboxBounds(const gfx::Rect& bounds) OVERRIDE {
Send(new ChromeViewMsg_SearchBoxMarginChange(
routing_id(), bounds.x(), bounds.width()));
Send(new ChromeViewMsg_SearchBoxMarginChange(routing_id(), bounds.x()));
}
DISALLOW_COPY_AND_ASSIGN(IncognitoInstantIPCSenderImpl);
......
......@@ -307,9 +307,7 @@ IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxFocusChanged,
OmniboxFocusState /* new_focus_state */,
OmniboxFocusChangeReason /* reason */)
IPC_MESSAGE_ROUTED2(ChromeViewMsg_SearchBoxMarginChange,
int /* start */,
int /* width */)
IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMarginChange, int /* start */)
IPC_MESSAGE_ROUTED1(ChromeViewMsg_SearchBoxMostVisitedItemsChanged,
std::vector<InstantMostVisitedItem> /* items */)
......
......@@ -150,8 +150,7 @@ SearchBox::SearchBox(content::RenderView* render_view)
display_instant_results_(false),
most_visited_items_cache_(kMaxInstantMostVisitedItemCacheSize),
query_(),
start_margin_(0),
width_(0) {
start_margin_(0) {
}
SearchBox::~SearchBox() {
......@@ -361,9 +360,8 @@ void SearchBox::OnFocusChanged(OmniboxFocusState new_focus_state,
}
}
void SearchBox::OnMarginChange(int margin, int width) {
void SearchBox::OnMarginChange(int margin) {
start_margin_ = margin;
width_ = width;
if (render_view()->GetWebView() && render_view()->GetWebView()->mainFrame()) {
extensions_v8::SearchBoxExtension::DispatchMarginChange(
render_view()->GetWebView()->mainFrame());
......@@ -458,7 +456,6 @@ void SearchBox::Reset() {
query_.clear();
suggestion_ = InstantSuggestion();
start_margin_ = 0;
width_ = 0;
is_focused_ = false;
is_key_capture_enabled_ = false;
theme_info_ = ThemeBackgroundInfo();
......
......@@ -118,7 +118,7 @@ class SearchBox : public content::RenderViewObserver,
void OnDetermineIfPageSupportsInstant();
void OnFocusChanged(OmniboxFocusState new_focus_state,
OmniboxFocusChangeReason reason);
void OnMarginChange(int margin, int width);
void OnMarginChange(int margin);
void OnMostVisitedChanged(
const std::vector<InstantMostVisitedItem>& items);
void OnPromoInformationReceived(bool is_app_launcher_enabled);
......@@ -148,7 +148,6 @@ class SearchBox : public content::RenderViewObserver,
base::string16 query_;
int start_margin_;
InstantSuggestion suggestion_;
int width_;
DISALLOW_COPY_AND_ASSIGN(SearchBox);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment