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 CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_MODEL_H_ | 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_MODEL_H_ |
6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_MODEL_H_ | 6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_MODEL_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
263 // |text| is either the new temporary text from the user manually selecting | 263 // |text| is either the new temporary text from the user manually selecting |
264 // a different match, or the inline autocomplete text. We distinguish by | 264 // a different match, or the inline autocomplete text. We distinguish by |
265 // checking if |destination_for_temporary_text_change| is NULL. | 265 // checking if |destination_for_temporary_text_change| is NULL. |
266 // |destination_for_temporary_text_change| is NULL (if temporary text should | 266 // |destination_for_temporary_text_change| is NULL (if temporary text should |
267 // not change) or the pre-change destination URL (if temporary text should | 267 // not change) or the pre-change destination URL (if temporary text should |
268 // change) so we can save it off to restore later. | 268 // change) so we can save it off to restore later. |
269 // |keyword| is the keyword to show a hint for if |is_keyword_hint| is true, | 269 // |keyword| is the keyword to show a hint for if |is_keyword_hint| is true, |
270 // or the currently selected keyword if |is_keyword_hint| is false (see | 270 // or the currently selected keyword if |is_keyword_hint| is false (see |
271 // comments on keyword_ and is_keyword_hint_). | 271 // comments on keyword_ and is_keyword_hint_). |
272 void OnPopupDataChanged( | 272 void OnPopupDataChanged( |
273 const string16& text, | 273 const string16 text, |
Peter Kasting
2013/07/16 18:09:05
Removing the '&' here seems like a mistake
Mark P
2013/07/16 18:53:23
This is critical. If the & is there, it doesn't w
Peter Kasting
2013/07/16 18:59:55
Hmm. In that case perhaps the affected caller(s)
Mark P
2013/07/16 19:47:12
Are you sure you want me to do this? It requires
| |
274 GURL* destination_for_temporary_text_change, | 274 GURL* destination_for_temporary_text_change, |
275 const string16& keyword, | 275 const string16& keyword, |
276 bool is_keyword_hint); | 276 bool is_keyword_hint); |
277 | 277 |
278 // Called by the OmniboxView after something changes, with details about what | 278 // Called by the OmniboxView after something changes, with details about what |
279 // state changes occured. Updates internal state, updates the popup if | 279 // state changes occured. Updates internal state, updates the popup if |
280 // necessary, and returns true if any significant changes occurred. Note that | 280 // necessary, and returns true if any significant changes occurred. Note that |
281 // |text_differs| may be set even if |old_text| == |new_text|, e.g. if we've | 281 // |text_differs| may be set even if |old_text| == |new_text|, e.g. if we've |
282 // just committed an IME composition. | 282 // just committed an IME composition. |
283 // | 283 // |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
511 // an exact keyword match. If this is true then keyword mode will be | 511 // an exact keyword match. If this is true then keyword mode will be |
512 // triggered automatically if the input is "<keyword> <search string>". We | 512 // triggered automatically if the input is "<keyword> <search string>". We |
513 // allow this when CreatedKeywordSearchByInsertingSpaceInMiddle() is true. | 513 // allow this when CreatedKeywordSearchByInsertingSpaceInMiddle() is true. |
514 // This has no effect if we're already in keyword mode. | 514 // This has no effect if we're already in keyword mode. |
515 bool allow_exact_keyword_match_; | 515 bool allow_exact_keyword_match_; |
516 | 516 |
517 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); | 517 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); |
518 }; | 518 }; |
519 | 519 |
520 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_MODEL_H_ | 520 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_EDIT_MODEL_H_ |
OLD | NEW |