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_POPUP_MODEL_H_ | 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_MODEL_H_ |
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_MODEL_H_ | 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_MODEL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
10 #include "chrome/browser/autocomplete/autocomplete.h" | 10 #include "chrome/browser/autocomplete/autocomplete.h" |
| 11 #include "chrome/common/notification_observer.h" |
11 #include "chrome/common/notification_registrar.h" | 12 #include "chrome/common/notification_registrar.h" |
12 | 13 |
13 class AutocompleteEditModel; | 14 class AutocompleteEditModel; |
14 class AutocompleteEditView; | 15 class AutocompleteEditView; |
15 class Profile; | 16 class Profile; |
16 class SkBitmap; | 17 class SkBitmap; |
17 | 18 |
18 class AutocompletePopupView; | 19 class AutocompletePopupView; |
19 | 20 |
20 class AutocompletePopupModel : public NotificationObserver { | 21 class AutocompletePopupModel : public NotificationObserver { |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // which should only be true when the popup is closed. | 147 // which should only be true when the popup is closed. |
147 size_t selected_line_; | 148 size_t selected_line_; |
148 | 149 |
149 // The match the user has manually chosen, if any. | 150 // The match the user has manually chosen, if any. |
150 AutocompleteResult::Selection manually_selected_match_; | 151 AutocompleteResult::Selection manually_selected_match_; |
151 | 152 |
152 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupModel); | 153 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupModel); |
153 }; | 154 }; |
154 | 155 |
155 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_MODEL_H_ | 156 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_MODEL_H_ |
OLD | NEW |