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

Side by Side Diff: chrome/browser/autocomplete/autocomplete_edit_view_mac.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual void OnTemporaryTextMaybeChanged(const string16& display_text, 76 virtual void OnTemporaryTextMaybeChanged(const string16& display_text,
77 bool save_original_selection); 77 bool save_original_selection);
78 virtual bool OnInlineAutocompleteTextMaybeChanged( 78 virtual bool OnInlineAutocompleteTextMaybeChanged(
79 const string16& display_text, size_t user_text_length); 79 const string16& display_text, size_t user_text_length);
80 virtual void OnStartingIME(); 80 virtual void OnStartingIME();
81 virtual void OnRevertTemporaryText(); 81 virtual void OnRevertTemporaryText();
82 virtual void OnBeforePossibleChange(); 82 virtual void OnBeforePossibleChange();
83 virtual bool OnAfterPossibleChange(); 83 virtual bool OnAfterPossibleChange();
84 virtual gfx::NativeView GetNativeView() const; 84 virtual gfx::NativeView GetNativeView() const;
85 virtual CommandUpdater* GetCommandUpdater(); 85 virtual CommandUpdater* GetCommandUpdater();
86 virtual void SetInstantSuggestion(const string16& input); 86 virtual void SetInstantSuggestion(const string16& input,
87 bool animate_to_complete);
87 virtual string16 GetInstantSuggestion() const; 88 virtual string16 GetInstantSuggestion() const;
88 virtual int TextWidth() const; 89 virtual int TextWidth() const;
89 virtual bool IsImeComposing() const; 90 virtual bool IsImeComposing() const;
90 91
91 // Implement the AutocompleteTextFieldObserver interface. 92 // Implement the AutocompleteTextFieldObserver interface.
92 virtual NSRange SelectionRangeForProposedRange(NSRange proposed_range); 93 virtual NSRange SelectionRangeForProposedRange(NSRange proposed_range);
93 virtual void OnControlKeyChanged(bool pressed); 94 virtual void OnControlKeyChanged(bool pressed);
94 virtual bool CanCopy(); 95 virtual bool CanCopy();
95 virtual void CopyToPasteboard(NSPasteboard* pboard); 96 virtual void CopyToPasteboard(NSPasteboard* pboard);
96 virtual void OnPaste(); 97 virtual void OnPaste();
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 // Was the delete key pressed with an empty selection at the end of the edit? 216 // Was the delete key pressed with an empty selection at the end of the edit?
216 bool delete_at_end_pressed_; 217 bool delete_at_end_pressed_;
217 218
218 // The maximum/standard line height for the displayed text. 219 // The maximum/standard line height for the displayed text.
219 CGFloat line_height_; 220 CGFloat line_height_;
220 221
221 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); 222 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac);
222 }; 223 };
223 224
224 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ 225 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698