OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_ |
7 #pragma once | |
8 | 7 |
9 class AutocompleteControllerDelegate { | 8 class AutocompleteControllerDelegate { |
10 public: | 9 public: |
11 // Invoked when the result set of the AutocompleteController changes. If | 10 // Invoked when the result set of the AutocompleteController changes. If |
12 // |default_match_changed| is true, the default match of the result set has | 11 // |default_match_changed| is true, the default match of the result set has |
13 // changed. | 12 // changed. |
14 virtual void OnResultChanged(bool default_match_changed) = 0; | 13 virtual void OnResultChanged(bool default_match_changed) = 0; |
15 | 14 |
16 protected: | 15 protected: |
17 virtual ~AutocompleteControllerDelegate() {} | 16 virtual ~AutocompleteControllerDelegate() {} |
18 }; | 17 }; |
19 | 18 |
20 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_ | 19 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_CONTROLLER_DELEGATE_H_ |
OLD | NEW |