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

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

Issue 6731036: Enabled pressing TAB to cycle through the Omnibox results. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
373 // AutocompleteController but resides here for now. This method is used by 373 // AutocompleteController but resides here for now. This method is used by
374 // AutomationProvider::AutocompleteEditIsQueryInProgress. 374 // AutomationProvider::AutocompleteEditIsQueryInProgress.
375 bool query_in_progress() const; 375 bool query_in_progress() const;
376 376
377 // Called whenever user_text_ should change. 377 // Called whenever user_text_ should change.
378 void InternalSetUserText(const string16& text); 378 void InternalSetUserText(const string16& text);
379 379
380 // Returns true if a keyword is selected. 380 // Returns true if a keyword is selected.
381 bool KeywordIsSelected() const; 381 bool KeywordIsSelected() const;
382 382
383 // Turns off keyword mode for the current match.
384 void ClearPopupKeywordMode() const;
385
383 // Conversion between user text and display text. User text is the text the 386 // Conversion between user text and display text. User text is the text the
384 // user has input. Display text is the text being shown in the edit. The 387 // user has input. Display text is the text being shown in the edit. The
385 // two are different if a keyword is selected. 388 // two are different if a keyword is selected.
386 string16 DisplayTextFromUserText(const string16& text) const; 389 string16 DisplayTextFromUserText(const string16& text) const;
387 string16 UserTextFromDisplayText(const string16& text) const; 390 string16 UserTextFromDisplayText(const string16& text) const;
388 391
389 // Copies the selected match into |match|. If an update is in progress, 392 // Copies the selected match into |match|. If an update is in progress,
390 // "selected" means "default in the latest matches". If there are no matches, 393 // "selected" means "default in the latest matches". If there are no matches,
391 // does not update |match|. 394 // does not update |match|.
392 // 395 //
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // It has no effect if a keyword is already selected. 554 // It has no effect if a keyword is already selected.
552 bool allow_exact_keyword_match_; 555 bool allow_exact_keyword_match_;
553 556
554 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|. 557 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|.
555 InstantCompleteBehavior instant_complete_behavior_; 558 InstantCompleteBehavior instant_complete_behavior_;
556 559
557 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 560 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
558 }; 561 };
559 562
560 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 563 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698