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

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

Issue 177052: Add autocomplete_edit_view_browsertest.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 #include "chrome/browser/autocomplete/autocomplete.h" 8 #include "chrome/browser/autocomplete/autocomplete.h"
9 #include "chrome/common/notification_registrar.h" 9 #include "chrome/common/notification_registrar.h"
10 #include "chrome/common/page_transition_types.h" 10 #include "chrome/common/page_transition_types.h"
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
95 const bool show_search_hint; 95 const bool show_search_hint;
96 }; 96 };
97 97
98 AutocompleteEditModel(AutocompleteEditView* view, 98 AutocompleteEditModel(AutocompleteEditView* view,
99 AutocompleteEditController* controller, 99 AutocompleteEditController* controller,
100 Profile* profile); 100 Profile* profile);
101 ~AutocompleteEditModel(); 101 ~AutocompleteEditModel();
102 102
103 void SetPopupModel(AutocompletePopupModel* popup_model); 103 void SetPopupModel(AutocompletePopupModel* popup_model);
104 104
105 // It should only be used by testing code.
Paweł Hajdan Jr. 2009/09/14 16:48:41 nit: Why not #ifdef UNIT_TEST then?
James Su 2009/09/15 01:13:47 Done.
106 AutocompletePopupModel* popup_model() const { return popup_; }
107
105 // Invoked when the profile has changed. 108 // Invoked when the profile has changed.
106 void SetProfile(Profile* profile); 109 void SetProfile(Profile* profile);
107 110
108 Profile* profile() const { return profile_; } 111 Profile* profile() const { return profile_; }
109 112
110 // Returns the current state. This assumes we are switching tabs, and changes 113 // Returns the current state. This assumes we are switching tabs, and changes
111 // the internal state appropriately. 114 // the internal state appropriately.
112 const State GetStateForTabSwitch(); 115 const State GetStateForTabSwitch();
113 116
114 // Restores local state from the saved |state|. 117 // Restores local state from the saved |state|.
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 mutable GURL paste_and_go_url_; 444 mutable GURL paste_and_go_url_;
442 mutable PageTransition::Type paste_and_go_transition_; 445 mutable PageTransition::Type paste_and_go_transition_;
443 mutable GURL paste_and_go_alternate_nav_url_; 446 mutable GURL paste_and_go_alternate_nav_url_;
444 447
445 Profile* profile_; 448 Profile* profile_;
446 449
447 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 450 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
448 }; 451 };
449 452
450 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 453 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698