| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/memory/scoped_ptr.h" | 9 #include "base/basictypes.h" |
| 10 #include "chrome/browser/autocomplete/autocomplete.h" | 10 #include "chrome/browser/autocomplete/autocomplete.h" |
| 11 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 11 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| 12 | 12 |
| 13 class AutocompletePopupView; | 13 class AutocompletePopupView; |
| 14 class SkBitmap; | 14 class SkBitmap; |
| 15 | 15 |
| 16 class AutocompletePopupModel { | 16 class AutocompletePopupModel { |
| 17 public: | 17 public: |
| 18 // See selected_line_state_ for details. | 18 // See selected_line_state_ for details. |
| 19 enum LineState { | 19 enum LineState { |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 122 // (if KEYWORD) is selected. | 122 // (if KEYWORD) is selected. |
| 123 LineState selected_line_state_; | 123 LineState selected_line_state_; |
| 124 | 124 |
| 125 // The match the user has manually chosen, if any. | 125 // The match the user has manually chosen, if any. |
| 126 AutocompleteResult::Selection manually_selected_match_; | 126 AutocompleteResult::Selection manually_selected_match_; |
| 127 | 127 |
| 128 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupModel); | 128 DISALLOW_COPY_AND_ASSIGN(AutocompletePopupModel); |
| 129 }; | 129 }; |
| 130 | 130 |
| 131 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_MODEL_H_ | 131 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_POPUP_MODEL_H_ |
| OLD | NEW |