summaryrefslogtreecommitdiffstats
path: root/chrome/browser/automation/automation_autocomplete_edit_tracker.h
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 19:35:52 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-09-10 19:35:52 +0000
commit81c2122f16c82b52c19b474775d2a15aa065e77a (patch)
treebeee93270b997c49f83ba0233ac1dd12cebaf3a8 /chrome/browser/automation/automation_autocomplete_edit_tracker.h
parent8fbab00264861b95a99a8232ba75e0994c46c185 (diff)
downloadchromium_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/automation/automation_autocomplete_edit_tracker.h')
-rw-r--r--chrome/browser/automation/automation_autocomplete_edit_tracker.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/chrome/browser/automation/automation_autocomplete_edit_tracker.h b/chrome/browser/automation/automation_autocomplete_edit_tracker.h
index b750938..81f0ecd 100644
--- a/chrome/browser/automation/automation_autocomplete_edit_tracker.h
+++ b/chrome/browser/automation/automation_autocomplete_edit_tracker.h
@@ -9,7 +9,7 @@
#include "chrome/browser/automation/automation_resource_tracker.h"
class AutomationAutocompleteEditTracker:
- public AutomationResourceTracker<AutocompleteEdit*> {
+ public AutomationResourceTracker<AutocompleteEditView*> {
public:
explicit AutomationAutocompleteEditTracker(IPC::Message::Sender* automation)
: AutomationResourceTracker(automation) { }
@@ -18,16 +18,16 @@ class AutomationAutocompleteEditTracker:
ClearAllMappings();
}
- virtual void AddObserver(AutocompleteEdit* resource) {
+ virtual void AddObserver(AutocompleteEditView* resource) {
NotificationService::current()->AddObserver(
this, NOTIFY_AUTOCOMPLETE_EDIT_DESTROYED,
- Source<AutocompleteEdit>(resource));
+ Source<AutocompleteEditView>(resource));
}
- virtual void RemoveObserver(AutocompleteEdit* resource) {
+ virtual void RemoveObserver(AutocompleteEditView* resource) {
NotificationService::current()->RemoveObserver(
this, NOTIFY_AUTOCOMPLETE_EDIT_DESTROYED,
- Source<AutocompleteEdit>(resource));
+ Source<AutocompleteEditView>(resource));
}
};