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

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

Issue 6685002: Wires up ability for page to specify instant auto complete (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix unit test and stray char Created 9 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 | 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_VIEWS_H_ 5 #ifndef CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_VIEWS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 virtual void SetFocus(); 106 virtual void SetFocus();
107 virtual void OnTemporaryTextMaybeChanged(const string16& display_text, 107 virtual void OnTemporaryTextMaybeChanged(const string16& display_text,
108 bool save_original_selection); 108 bool save_original_selection);
109 virtual bool OnInlineAutocompleteTextMaybeChanged( 109 virtual bool OnInlineAutocompleteTextMaybeChanged(
110 const string16& display_text, size_t user_text_length); 110 const string16& display_text, size_t user_text_length);
111 virtual void OnRevertTemporaryText(); 111 virtual void OnRevertTemporaryText();
112 virtual void OnBeforePossibleChange(); 112 virtual void OnBeforePossibleChange();
113 virtual bool OnAfterPossibleChange(); 113 virtual bool OnAfterPossibleChange();
114 virtual gfx::NativeView GetNativeView() const; 114 virtual gfx::NativeView GetNativeView() const;
115 virtual CommandUpdater* GetCommandUpdater(); 115 virtual CommandUpdater* GetCommandUpdater();
116 virtual void SetInstantSuggestion(const string16& input); 116 virtual void SetInstantSuggestion(const string16& input,
117 bool animate_to_complete);
117 virtual string16 GetInstantSuggestion() const; 118 virtual string16 GetInstantSuggestion() const;
118 virtual int TextWidth() const; 119 virtual int TextWidth() const;
119 virtual bool IsImeComposing() const; 120 virtual bool IsImeComposing() const;
120 virtual views::View* AddToView(views::View* parent); 121 virtual views::View* AddToView(views::View* parent);
121 virtual int OnPerformDrop(const views::DropTargetEvent& event); 122 virtual int OnPerformDrop(const views::DropTargetEvent& event);
122 123
123 // NotificationObserver: 124 // NotificationObserver:
124 virtual void Observe(NotificationType type, 125 virtual void Observe(NotificationType type,
125 const NotificationSource& source, 126 const NotificationSource& source,
126 const NotificationDetails& details); 127 const NotificationDetails& details);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 // This flag should be set for changes directly caused by a key press event, 203 // This flag should be set for changes directly caused by a key press event,
203 // including changes to content text, selection range and preedit string. 204 // including changes to content text, selection range and preedit string.
204 // Changes caused by function calls like SetUserText() should not affect this 205 // Changes caused by function calls like SetUserText() should not affect this
205 // flag. 206 // flag.
206 bool content_maybe_changed_by_key_press_; 207 bool content_maybe_changed_by_key_press_;
207 208
208 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewViews); 209 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewViews);
209 }; 210 };
210 211
211 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_VIEWS_H_ 212 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_VIEWS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698