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

Side by Side Diff: components/omnibox/browser/omnibox_edit_model.h

Issue 2763063002: [omnibox] Narrow condition for resetting selection (Closed)
Patch Set: Restored include file Created 3 years, 9 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
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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 COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_
6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ 6 #define COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 // currently selected text. If |is_all_selected| is true all the text in the 137 // currently selected text. If |is_all_selected| is true all the text in the
138 // edit is selected. If the url should be copied to the clipboard |write_url| 138 // edit is selected. If the url should be copied to the clipboard |write_url|
139 // is set to true and |url| set to the url to write. 139 // is set to true and |url| set to the url to write.
140 void AdjustTextForCopy(int sel_min, 140 void AdjustTextForCopy(int sel_min,
141 bool is_all_selected, 141 bool is_all_selected,
142 base::string16* text, 142 base::string16* text,
143 GURL* url, 143 GURL* url,
144 bool* write_url); 144 bool* write_url);
145 145
146 bool user_input_in_progress() const { return user_input_in_progress_; } 146 bool user_input_in_progress() const { return user_input_in_progress_; }
147 bool text_update_in_progress() const;
147 148
148 // Sets the state of user_input_in_progress_, and notifies the observer if 149 // Sets the state of user_input_in_progress_, and notifies the observer if
149 // that state has changed. 150 // that state has changed.
150 void SetInputInProgress(bool in_progress); 151 void SetInputInProgress(bool in_progress);
151 152
152 // Updates permanent_text_ to the current permanent text from the toolbar 153 // Updates permanent_text_ to the current permanent text from the toolbar
153 // model. Returns true if the permanent text changed and the change should be 154 // model. Returns true if the permanent text changed and the change should be
154 // immediately user-visible, because either the user is not editing or the 155 // immediately user-visible, because either the user is not editing or the
155 // edit does not have focus. 156 // edit does not have focus.
156 bool UpdatePermanentText(); 157 bool UpdatePermanentText();
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
561 562
562 // The input that was sent to the AutocompleteController. Since no 563 // The input that was sent to the AutocompleteController. Since no
563 // autocomplete query is started after a tab switch, it is possible for this 564 // autocomplete query is started after a tab switch, it is possible for this
564 // |input_| to differ from the one currently stored in AutocompleteController. 565 // |input_| to differ from the one currently stored in AutocompleteController.
565 AutocompleteInput input_; 566 AutocompleteInput input_;
566 567
567 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel); 568 DISALLOW_COPY_AND_ASSIGN(OmniboxEditModel);
568 }; 569 };
569 570
570 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_ 571 #endif // COMPONENTS_OMNIBOX_BROWSER_OMNIBOX_EDIT_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698