| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 struct State { | 56 struct State { |
| 57 State(bool user_input_in_progress, | 57 State(bool user_input_in_progress, |
| 58 const base::string16& user_text, | 58 const base::string16& user_text, |
| 59 const base::string16& gray_text, | 59 const base::string16& gray_text, |
| 60 const base::string16& keyword, | 60 const base::string16& keyword, |
| 61 bool is_keyword_hint, | 61 bool is_keyword_hint, |
| 62 bool url_replacement_enabled, | 62 bool url_replacement_enabled, |
| 63 OmniboxFocusState focus_state, | 63 OmniboxFocusState focus_state, |
| 64 FocusSource focus_source, | 64 FocusSource focus_source, |
| 65 const AutocompleteInput& autocomplete_input); | 65 const AutocompleteInput& autocomplete_input); |
| 66 State(const State& other); |
| 66 ~State(); | 67 ~State(); |
| 67 | 68 |
| 68 bool user_input_in_progress; | 69 bool user_input_in_progress; |
| 69 const base::string16 user_text; | 70 const base::string16 user_text; |
| 70 const base::string16 gray_text; | 71 const base::string16 gray_text; |
| 71 const base::string16 keyword; | 72 const base::string16 keyword; |
| 72 const bool is_keyword_hint; | 73 const bool is_keyword_hint; |
| 73 bool url_replacement_enabled; | 74 bool url_replacement_enabled; |
| 74 OmniboxFocusState focus_state; | 75 OmniboxFocusState focus_state; |
| 75 FocusSource focus_source; | 76 FocusSource focus_source; |
| (...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 | 559 |
| 559 // The input that was sent to the AutocompleteController. Since no | 560 // The input that was sent to the AutocompleteController. Since no |
| 560 // autocomplete query is started after a tab switch, it is possible for this | 561 // autocomplete query is started after a tab switch, it is possible for this |
| 561 // |input_| to differ from the one currently stored in AutocompleteController. | 562 // |input_| to differ from the one currently stored in AutocompleteController. |
| 562 AutocompleteInput input_; | 563 AutocompleteInput input_; |
| 563 | 564 |
| 564 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); | 565 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); |
| 565 }; | 566 }; |
| 566 | 567 |
| 567 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ | 568 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ |
| OLD | NEW |