summaryrefslogtreecommitdiffstats
path: root/chrome/browser/autocomplete/autocomplete_controller_delegate.h
diff options
context:
space:
mode:
authorsky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 16:31:27 +0000
committersky@chromium.org <sky@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-02-16 16:31:27 +0000
commit28b6e256ff306cac4d42fce6684cb7329aaef0cc (patch)
treeb163675cd3aec3130d97969de2eaccf1513ba7ef /chrome/browser/autocomplete/autocomplete_controller_delegate.h
parentcb15d15effa70c3052b474437a895b387367520c (diff)
downloadchromium_src-28b6e256ff306cac4d42fce6684cb7329aaef0cc.zip
chromium_src-28b6e256ff306cac4d42fce6684cb7329aaef0cc.tar.gz
chromium_src-28b6e256ff306cac4d42fce6684cb7329aaef0cc.tar.bz2
Autocomplete cleanup patch. Adds AutocompleteControllerDelegate in
addition to the notification. The notification is now only sent out when done. Also makes the editmodel own the controller. BUG=none TEST=none Review URL: http://codereview.chromium.org/6519014 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@75126 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/autocomplete/autocomplete_controller_delegate.h')
-rw-r--r--chrome/browser/autocomplete/autocomplete_controller_delegate.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/chrome/browser/autocomplete/autocomplete_controller_delegate.h b/chrome/browser/autocomplete/autocomplete_controller_delegate.h
new file mode 100644
index 0000000..7446456
--- /dev/null
+++ b/chrome/browser/autocomplete/autocomplete_controller_delegate.h
@@ -0,0 +1,20 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_
+#define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_
+#pragma once
+
+class AutocompleteControllerDelegate {
+ public:
+ // Invoked when the result set of the AutocompleteController changes. If
+ // |default_match_changed| is true, the default match of the result set has
+ // changed.
+ virtual void OnResultChanged(bool default_match_changed) = 0;
+
+ protected:
+ virtual ~AutocompleteControllerDelegate() {}
+};
+
+#endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_