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

Side by Side Diff: chrome/browser/ui/omnibox/omnibox_controller.h

Issue 17426004: Minor cosmetic changes to OmniboxEditModel and OmniboxController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CONTROLLER_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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 void InvalidateCurrentMatch(); 77 void InvalidateCurrentMatch();
78 78
79 void set_popup_model(OmniboxPopupModel* popup_model) { 79 void set_popup_model(OmniboxPopupModel* popup_model) {
80 popup_ = popup_model; 80 popup_ = popup_model;
81 } 81 }
82 82
83 // TODO(beaudoin): The edit and popup model should be siblings owned by the 83 // TODO(beaudoin): The edit and popup model should be siblings owned by the
84 // LocationBarView, making this accessor unnecessary. 84 // LocationBarView, making this accessor unnecessary.
85 OmniboxPopupModel* popup_model() const { return popup_; } 85 OmniboxPopupModel* popup_model() const { return popup_; }
86 86
87 const AutocompleteMatch& current_match() const { return current_match_; }
88
87 const string16& gray_suggestion() const { return gray_suggestion_; } 89 const string16& gray_suggestion() const { return gray_suggestion_; }
88 90
89 const AutocompleteMatch& CurrentMatch(GURL* alternate_nav_url) const;
90
91 // Turns off keyword mode for the current match. 91 // Turns off keyword mode for the current match.
92 void ClearPopupKeywordMode() const; 92 void ClearPopupKeywordMode() const;
93 93
94 const AutocompleteResult& result() const { 94 const AutocompleteResult& result() const {
95 return autocomplete_controller_->result(); 95 return autocomplete_controller_->result();
96 } 96 }
97 97
98 // TODO(beaudoin): Make private once OmniboxEditModel no longer refers to it. 98 // TODO(beaudoin): Make private once OmniboxEditModel no longer refers to it.
99 void DoPreconnect(const AutocompleteMatch& match); 99 void DoPreconnect(const AutocompleteMatch& match);
100 100
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 AutocompleteMatch current_match_; 139 AutocompleteMatch current_match_;
140 140
141 // The completion suggested by instant, displayed in gray text besides 141 // The completion suggested by instant, displayed in gray text besides
142 // |fill_into_edit|. 142 // |fill_into_edit|.
143 string16 gray_suggestion_; 143 string16 gray_suggestion_;
144 144
145 DISALLOW_COPY_AND_ASSIGN(OmniboxController); 145 DISALLOW_COPY_AND_ASSIGN(OmniboxController);
146 }; 146 };
147 147
148 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CONTROLLER_H_ 148 #endif // CHROME_BROWSER_UI_OMNIBOX_OMNIBOX_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698