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

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

Issue 7574021: Remove frontend code that allows for dynamic profile setting, and read the profile off the browse... (Closed) Base URL: svn://chrome-svn/chrome/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 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 void set_popup_model(AutocompletePopupModel* popup_model) { 112 void set_popup_model(AutocompletePopupModel* popup_model) {
113 popup_ = popup_model; 113 popup_ = popup_model;
114 } 114 }
115 115
116 // TODO: The edit and popup should be siblings owned by the LocationBarView, 116 // TODO: The edit and popup should be siblings owned by the LocationBarView,
117 // making this accessor unnecessary. 117 // making this accessor unnecessary.
118 AutocompletePopupModel* popup_model() const { return popup_; } 118 AutocompletePopupModel* popup_model() const { return popup_; }
119 119
120 AutocompleteEditController* controller() const { return controller_; } 120 AutocompleteEditController* controller() const { return controller_; }
121 121
122 // Invoked when the profile has changed.
123 void SetProfile(Profile* profile);
124
125 Profile* profile() const { return profile_; } 122 Profile* profile() const { return profile_; }
126 123
127 // Returns the current state. This assumes we are switching tabs, and changes 124 // Returns the current state. This assumes we are switching tabs, and changes
128 // the internal state appropriately. 125 // the internal state appropriately.
129 const State GetStateForTabSwitch(); 126 const State GetStateForTabSwitch();
130 127
131 // Restores local state from the saved |state|. 128 // Restores local state from the saved |state|.
132 void RestoreState(const State& state); 129 void RestoreState(const State& state);
133 130
134 // Returns the match for the current text. If the user has not edited the text 131 // Returns the match for the current text. If the user has not edited the text
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
551 // It has no effect if a keyword is already selected. 548 // It has no effect if a keyword is already selected.
552 bool allow_exact_keyword_match_; 549 bool allow_exact_keyword_match_;
553 550
554 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|. 551 // Last value of InstantCompleteBehavior supplied to |SetSuggestedText|.
555 InstantCompleteBehavior instant_complete_behavior_; 552 InstantCompleteBehavior instant_complete_behavior_;
556 553
557 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 554 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
558 }; 555 };
559 556
560 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 557 #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