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

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

Issue 194041: Making the focus remembering across tab switch work. (Closed)
Patch Set: Fix for conflicts 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
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.h » ('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) 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 // This file defines the interface class AutocompleteEditView. Each toolkit 5 // This file defines the interface class AutocompleteEditView. Each toolkit
6 // will implement the edit view differently, so that code is inherently 6 // will implement the edit view differently, so that code is inherently
7 // platform specific. However, the AutocompleteEditModel needs to do some 7 // platform specific. However, the AutocompleteEditModel needs to do some
8 // communication with the view. Since the model is shared between platforms, 8 // communication with the view. Since the model is shared between platforms,
9 // we need to define an interface that all view implementations will share. 9 // we need to define an interface that all view implementations will share.
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // showing, popup closed, no user input in progress). 90 // showing, popup closed, no user input in progress).
91 virtual void RevertAll() = 0; 91 virtual void RevertAll() = 0;
92 92
93 // Updates the autocomplete popup and other state after the text has been 93 // Updates the autocomplete popup and other state after the text has been
94 // changed by the user. 94 // changed by the user.
95 virtual void UpdatePopup() = 0; 95 virtual void UpdatePopup() = 0;
96 96
97 // Closes the autocomplete popup, if it's open. 97 // Closes the autocomplete popup, if it's open.
98 virtual void ClosePopup() = 0; 98 virtual void ClosePopup() = 0;
99 99
100 // Sets the focus to the autocomplete view.
101 virtual void SetFocus() = 0;
102
100 // Called when the temporary text in the model may have changed. 103 // Called when the temporary text in the model may have changed.
101 // |display_text| is the new text to show; |save_original_selection| is true 104 // |display_text| is the new text to show; |save_original_selection| is true
102 // when there wasn't previously a temporary text and thus we need to save off 105 // when there wasn't previously a temporary text and thus we need to save off
103 // the user's existing selection. 106 // the user's existing selection.
104 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, 107 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text,
105 bool save_original_selection) = 0; 108 bool save_original_selection) = 0;
106 109
107 // Called when the inline autocomplete text in the model may have changed. 110 // Called when the inline autocomplete text in the model may have changed.
108 // |display_text| is the new text to show; |user_text_length| is the length of 111 // |display_text| is the new text to show; |user_text_length| is the length of
109 // the user input portion of that (so, up to but not including the inline 112 // the user input portion of that (so, up to but not including the inline
(...skipping 11 matching lines...) Expand all
121 virtual void OnBeforePossibleChange() = 0; 124 virtual void OnBeforePossibleChange() = 0;
122 // OnAfterPossibleChange() returns true if there was a change that caused it 125 // OnAfterPossibleChange() returns true if there was a change that caused it
123 // to call UpdatePopup(). 126 // to call UpdatePopup().
124 virtual bool OnAfterPossibleChange() = 0; 127 virtual bool OnAfterPossibleChange() = 0;
125 128
126 // Returns the gfx::NativeView of the edit view. 129 // Returns the gfx::NativeView of the edit view.
127 virtual gfx::NativeView GetNativeView() const = 0; 130 virtual gfx::NativeView GetNativeView() const = 0;
128 }; 131 };
129 132
130 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_ 133 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/autocomplete/autocomplete_edit_view_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698