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

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

Issue 5966006: Hitting Tab should always move cursor to end of omnibox text. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build. Created 9 years, 11 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_WIN_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_
7 #pragma once 7 #pragma once
8 8
9 #include <atlbase.h> 9 #include <atlbase.h>
10 #include <atlapp.h> 10 #include <atlapp.h>
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 virtual void OnTemporaryTextMaybeChanged(const string16& display_text, 127 virtual void OnTemporaryTextMaybeChanged(const string16& display_text,
128 bool save_original_selection); 128 bool save_original_selection);
129 virtual bool OnInlineAutocompleteTextMaybeChanged( 129 virtual bool OnInlineAutocompleteTextMaybeChanged(
130 const string16& display_text, size_t user_text_length); 130 const string16& display_text, size_t user_text_length);
131 virtual void OnRevertTemporaryText(); 131 virtual void OnRevertTemporaryText();
132 virtual void OnBeforePossibleChange(); 132 virtual void OnBeforePossibleChange();
133 virtual bool OnAfterPossibleChange(); 133 virtual bool OnAfterPossibleChange();
134 virtual gfx::NativeView GetNativeView() const; 134 virtual gfx::NativeView GetNativeView() const;
135 virtual CommandUpdater* GetCommandUpdater(); 135 virtual CommandUpdater* GetCommandUpdater();
136 virtual void SetInstantSuggestion(const string16& suggestion); 136 virtual void SetInstantSuggestion(const string16& suggestion);
137 virtual string16 GetInstantSuggestion() const;
137 virtual int TextWidth() const; 138 virtual int TextWidth() const;
138 virtual bool IsImeComposing() const; 139 virtual bool IsImeComposing() const;
139 140
140 virtual views::View* AddToView(views::View* parent); 141 virtual views::View* AddToView(views::View* parent);
141 virtual bool CommitInstantSuggestion(const string16& typed_text,
142 const string16& suggested_text);
143 142
144 int GetPopupMaxYCoordinate(); 143 int GetPopupMaxYCoordinate();
145 144
146 // Exposes custom IAccessible implementation to the overall MSAA hierarchy. 145 // Exposes custom IAccessible implementation to the overall MSAA hierarchy.
147 IAccessible* GetIAccessible(); 146 IAccessible* GetIAccessible();
148 147
149 void SetDropHighlightPosition(int position); 148 void SetDropHighlightPosition(int position);
150 int drop_highlight_position() const { return drop_highlight_position_; } 149 int drop_highlight_position() const { return drop_highlight_position_; }
151 150
152 // Returns true if a drag a drop session was initiated by this edit. 151 // Returns true if a drag a drop session was initiated by this edit.
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 208
210 // ui::SimpleMenuModel::Delegate 209 // ui::SimpleMenuModel::Delegate
211 virtual bool IsCommandIdChecked(int command_id) const; 210 virtual bool IsCommandIdChecked(int command_id) const;
212 virtual bool IsCommandIdEnabled(int command_id) const; 211 virtual bool IsCommandIdEnabled(int command_id) const;
213 virtual bool GetAcceleratorForCommandId(int command_id, 212 virtual bool GetAcceleratorForCommandId(int command_id,
214 ui::Accelerator* accelerator); 213 ui::Accelerator* accelerator);
215 virtual bool IsItemForCommandIdDynamic(int command_id) const; 214 virtual bool IsItemForCommandIdDynamic(int command_id) const;
216 virtual string16 GetLabelForCommandId(int command_id) const; 215 virtual string16 GetLabelForCommandId(int command_id) const;
217 virtual void ExecuteCommand(int command_id); 216 virtual void ExecuteCommand(int command_id);
218 217
218 // Returns true if the caret is at the end of the content.
219 bool IsCaretAtEnd() const;
220
219 private: 221 private:
220 enum MouseButton { 222 enum MouseButton {
221 kLeft = 0, 223 kLeft = 0,
222 kRight = 1, 224 kRight = 1,
223 }; 225 };
224 226
225 // This object freezes repainting of the edit until the object is destroyed. 227 // This object freezes repainting of the edit until the object is destroyed.
226 // Some methods of the CRichEditCtrl draw synchronously to the screen. If we 228 // Some methods of the CRichEditCtrl draw synchronously to the screen. If we
227 // don't freeze, the user will see a rapid series of calls to these as 229 // don't freeze, the user will see a rapid series of calls to these as
228 // flickers. 230 // flickers.
(...skipping 298 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 // striken-out when displaying an insecure scheme. 529 // striken-out when displaying an insecure scheme.
528 url_parse::Component insecure_scheme_component_; 530 url_parse::Component insecure_scheme_component_;
529 531
530 // Instance of accessibility information and handling. 532 // Instance of accessibility information and handling.
531 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_; 533 mutable ScopedComPtr<IAccessible> autocomplete_accessibility_;
532 534
533 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin); 535 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewWin);
534 }; 536 };
535 537
536 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_ 538 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_WIN_H_
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/autocomplete_edit_view_views.cc ('k') | chrome/browser/autocomplete/autocomplete_edit_view_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698