diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-10 19:35:52 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-09-10 19:35:52 +0000 |
commit | 81c2122f16c82b52c19b474775d2a15aa065e77a (patch) | |
tree | beee93270b997c49f83ba0233ac1dd12cebaf3a8 /chrome/browser/browser_commands.cc | |
parent | 8fbab00264861b95a99a8232ba75e0994c46c185 (diff) | |
download | chromium_src-81c2122f16c82b52c19b474775d2a15aa065e77a.zip chromium_src-81c2122f16c82b52c19b474775d2a15aa065e77a.tar.gz chromium_src-81c2122f16c82b52c19b474775d2a15aa065e77a.tar.bz2 |
First pass at splitting the AutocompleteEdit into Model and View. This was noticeably harder than with the Popup and I'm not at all sure I've made the right decisions :(. The View code is about 3x larger than the model.
BUG=1343512
Review URL: http://codereview.chromium.org/1872
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2004 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_commands.cc')
-rw-r--r-- | chrome/browser/browser_commands.cc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/chrome/browser/browser_commands.cc b/chrome/browser/browser_commands.cc index 052187d..6fe3593 100644 --- a/chrome/browser/browser_commands.cc +++ b/chrome/browser/browser_commands.cc @@ -280,7 +280,7 @@ void Browser::ExecuteCommand(int id) { { LocationBarView* lbv = GetLocationBarView(); if (lbv) - lbv->location_entry()->AcceptInput(CURRENT_TAB, false); + lbv->location_entry()->model()->AcceptInput(CURRENT_TAB, false); } break; @@ -323,9 +323,9 @@ void Browser::ExecuteCommand(int id) { { LocationBarView* lbv = GetLocationBarView(); if (lbv) { - AutocompleteEdit* ae = lbv->location_entry(); - ae->SetFocus(); - ae->SelectAll(true); + AutocompleteEditView* aev = lbv->location_entry(); + aev->SetFocus(); + aev->SelectAll(true); } } break; @@ -335,9 +335,9 @@ void Browser::ExecuteCommand(int id) { { LocationBarView* lbv = GetLocationBarView(); if (lbv) { - AutocompleteEdit* ae = lbv->location_entry(); - ae->SetUserText(L"?"); - ae->SetFocus(); + AutocompleteEditView* aev = lbv->location_entry(); + aev->model()->SetUserText(L"?"); + aev->SetFocus(); } } break; |