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

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

Issue 3332022: Bunch of match preview tweaks: (Closed)
Patch Set: Add string16 include Created 10 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
« no previous file with comments | « base/string_util.h ('k') | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "chrome/browser/autocomplete/autocomplete.h" 9 #include "chrome/browser/autocomplete/autocomplete.h"
10 #include "chrome/common/notification_observer.h" 10 #include "chrome/common/notification_observer.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 Profile* profile() const { return profile_; } 128 Profile* profile() const { return profile_; }
129 129
130 // Returns the current state. This assumes we are switching tabs, and changes 130 // Returns the current state. This assumes we are switching tabs, and changes
131 // the internal state appropriately. 131 // the internal state appropriately.
132 const State GetStateForTabSwitch(); 132 const State GetStateForTabSwitch();
133 133
134 // Restores local state from the saved |state|. 134 // Restores local state from the saved |state|.
135 void RestoreState(const State& state); 135 void RestoreState(const State& state);
136 136
137 // Returns the url and transition type for the current text. If the user has 137 // Returns the match for the current text. If the user has not edited the text
138 // not edited the text this is the permanent url, otherwise it is the url the 138 // this is the match corresponding to the permanent text.
139 // user would navigate to if they accept the current edit. 139 AutocompleteMatch CurrentMatch();
140 GURL CurrentURL(PageTransition::Type* transition_type);
141 140
142 // Called when the user wants to export the entire current text as a URL. 141 // Called when the user wants to export the entire current text as a URL.
143 // Sets the url, and if known, the title and favicon. 142 // Sets the url, and if known, the title and favicon.
144 void GetDataForURLExport(GURL* url, std::wstring* title, SkBitmap* favicon); 143 void GetDataForURLExport(GURL* url, std::wstring* title, SkBitmap* favicon);
145 144
146 // If the user presses ctrl-enter, it means "add .com to the the end". The 145 // If the user presses ctrl-enter, it means "add .com to the the end". The
147 // desired TLD is the TLD the user desires to add to the end of the current 146 // desired TLD is the TLD the user desires to add to the end of the current
148 // input, if any, based on their control key state and any other actions 147 // input, if any, based on their control key state and any other actions
149 // they've taken. 148 // they've taken.
150 std::wstring GetDesiredTLD() const; 149 std::wstring GetDesiredTLD() const;
(...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 mutable GURL paste_and_go_url_; 456 mutable GURL paste_and_go_url_;
458 mutable PageTransition::Type paste_and_go_transition_; 457 mutable PageTransition::Type paste_and_go_transition_;
459 mutable GURL paste_and_go_alternate_nav_url_; 458 mutable GURL paste_and_go_alternate_nav_url_;
460 459
461 Profile* profile_; 460 Profile* profile_;
462 461
463 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 462 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
464 }; 463 };
465 464
466 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 465 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW
« no previous file with comments | « base/string_util.h ('k') | chrome/browser/autocomplete/autocomplete_edit.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698