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

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

Issue 194056: Fix text and selection's save/restore issue of omnibox when displaying tempor... (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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_VIEW_MAC_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 // The object that handles additional command functionality exposed on the 171 // The object that handles additional command functionality exposed on the
172 // edit, such as invoking the keyword editor. 172 // edit, such as invoking the keyword editor.
173 CommandUpdater* command_updater_; 173 CommandUpdater* command_updater_;
174 174
175 AutocompleteTextField* field_; // owned by tab controller 175 AutocompleteTextField* field_; // owned by tab controller
176 176
177 // Objective-C object to bridge field_ delegate calls to C++. 177 // Objective-C object to bridge field_ delegate calls to C++.
178 scoped_nsobject<AutocompleteEditHelper> edit_helper_; 178 scoped_nsobject<AutocompleteEditHelper> edit_helper_;
179 179
180 // Text and selection at the point where the user started using the 180 // Selection at the point where the user started using the
181 // arrows to move around in the popup. 181 // arrows to move around in the popup.
182 NSRange saved_temporary_selection_; 182 NSRange saved_temporary_selection_;
183 std::wstring saved_temporary_text_;
184 183
185 // Tracking state before and after a possible change for reporting 184 // Tracking state before and after a possible change for reporting
186 // to model_. 185 // to model_.
187 NSRange selection_before_change_; 186 NSRange selection_before_change_;
188 std::wstring text_before_change_; 187 std::wstring text_before_change_;
189 188
190 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); 189 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac);
191 }; 190 };
192 191
193 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 192 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698