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

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

Issue 202010: Fixes regression introduced in dnd refactoring. I removed a check for... (Closed) Base URL: svn://chrome-svn/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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 159
160 // Determines whether the user can "paste and go", given the specified text. 160 // Determines whether the user can "paste and go", given the specified text.
161 // This also updates the internal paste-and-go-related state variables as 161 // This also updates the internal paste-and-go-related state variables as
162 // appropriate so that the controller doesn't need to be repeatedly queried 162 // appropriate so that the controller doesn't need to be repeatedly queried
163 // for the same text in every clipboard-related function. 163 // for the same text in every clipboard-related function.
164 bool CanPasteAndGo(const std::wstring& text) const; 164 bool CanPasteAndGo(const std::wstring& text) const;
165 165
166 // Navigates to the destination last supplied to CanPasteAndGo. 166 // Navigates to the destination last supplied to CanPasteAndGo.
167 void PasteAndGo(); 167 void PasteAndGo();
168 168
169 // Returns the url set by way of CanPasteAndGo.
170 const GURL& paste_and_go_url() const { return paste_and_go_url_; }
171
169 // Returns true if this is a paste-and-search rather than paste-and-go (or 172 // Returns true if this is a paste-and-search rather than paste-and-go (or
170 // nothing). 173 // nothing).
171 bool is_paste_and_search() const { 174 bool is_paste_and_search() const {
172 return (paste_and_go_transition_ != PageTransition::TYPED); 175 return (paste_and_go_transition_ != PageTransition::TYPED);
173 } 176 }
174 177
175 // Asks the browser to load the popup's currently selected item, using the 178 // Asks the browser to load the popup's currently selected item, using the
176 // supplied disposition. This may close the popup. If |for_drop| is true, 179 // supplied disposition. This may close the popup. If |for_drop| is true,
177 // it indicates the input is being accepted as part of a drop operation and 180 // it indicates the input is being accepted as part of a drop operation and
178 // the transition should be treated as LINK (so that it won't trigger the 181 // the transition should be treated as LINK (so that it won't trigger the
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after
438 mutable GURL paste_and_go_url_; 441 mutable GURL paste_and_go_url_;
439 mutable PageTransition::Type paste_and_go_transition_; 442 mutable PageTransition::Type paste_and_go_transition_;
440 mutable GURL paste_and_go_alternate_nav_url_; 443 mutable GURL paste_and_go_alternate_nav_url_;
441 444
442 Profile* profile_; 445 Profile* profile_;
443 446
444 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel); 447 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditModel);
445 }; 448 };
446 449
447 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_ 450 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/views/frame/browser_frame_gtk.cc » ('j') | chrome/browser/views/frame/browser_root_view.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698