Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(296)

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit.h

Issue 9419043: Revert 122412 - Enabled pressing TAB to traverse through the Omnibox results (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_EDIT_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 // AutocompleteController but resides here for now. This method is used by 374 // AutocompleteController but resides here for now. This method is used by
375 // AutomationProvider::AutocompleteEditIsQueryInProgress. 375 // AutomationProvider::AutocompleteEditIsQueryInProgress.
376 bool query_in_progress() const; 376 bool query_in_progress() const;
377 377
378 // Called whenever user_text_ should change. 378 // Called whenever user_text_ should change.
379 void InternalSetUserText(const string16& text); 379 void InternalSetUserText(const string16& text);
380 380
381 // Returns true if a keyword is selected. 381 // Returns true if a keyword is selected.
382 bool KeywordIsSelected() const; 382 bool KeywordIsSelected() const;
383 383
384 // Turns off keyword mode for the current match.
385 void ClearPopupKeywordMode() const;
386
387 // Conversion between user text and display text. User text is the text the 384 // Conversion between user text and display text. User text is the text the
388 // user has input. Display text is the text being shown in the edit. The 385 // user has input. Display text is the text being shown in the edit. The
389 // two are different if a keyword is selected. 386 // two are different if a keyword is selected.
390 string16 DisplayTextFromUserText(const string16& text) const; 387 string16 DisplayTextFromUserText(const string16& text) const;
391 string16 UserTextFromDisplayText(const string16& text) const; 388 string16 UserTextFromDisplayText(const string16& text) const;
392 389
393 // Copies the selected match into |match|. If an update is in progress, 390 // Copies the selected match into |match|. If an update is in progress,
394 // "selected" means "default in the latest matches". If there are no matches, 391 // "selected" means "default in the latest matches". If there are no matches,
395 // does not update |match|. 392 // does not update |match|.
396 // 393 //
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 // It has no effect if a keyword is already selected. 558 // It has no effect if a keyword is already selected.
562 bool allow_exact_keyword_match_; 559 bool allow_exact_keyword_match_;
563 560
564 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|. 561 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|.
565 InstantCompleteBehavior instant_complete_behavior_; 562 InstantCompleteBehavior instant_complete_behavior_;
566 563
567 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 564 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
568 }; 565 };
569 566
570 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 567 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete.cc ('k') | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698