OLD | NEW |
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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 | 71 |
72 virtual bool IsSelectAll() { | 72 virtual bool IsSelectAll() { |
73 NOTIMPLEMENTED(); | 73 NOTIMPLEMENTED(); |
74 return false; | 74 return false; |
75 } | 75 } |
76 | 76 |
77 virtual void SelectAll(bool reversed); | 77 virtual void SelectAll(bool reversed); |
78 virtual void RevertAll(); | 78 virtual void RevertAll(); |
79 virtual void UpdatePopup(); | 79 virtual void UpdatePopup(); |
80 virtual void ClosePopup(); | 80 virtual void ClosePopup(); |
| 81 virtual void SetFocus(); |
81 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, | 82 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, |
82 bool save_original_selection); | 83 bool save_original_selection); |
83 virtual bool OnInlineAutocompleteTextMaybeChanged( | 84 virtual bool OnInlineAutocompleteTextMaybeChanged( |
84 const std::wstring& display_text, size_t user_text_length); | 85 const std::wstring& display_text, size_t user_text_length); |
85 virtual void OnRevertTemporaryText(); | 86 virtual void OnRevertTemporaryText(); |
86 virtual void OnBeforePossibleChange(); | 87 virtual void OnBeforePossibleChange(); |
87 virtual bool OnAfterPossibleChange(); | 88 virtual bool OnAfterPossibleChange(); |
88 virtual gfx::NativeView GetNativeView() const; | 89 virtual gfx::NativeView GetNativeView() const; |
89 | 90 |
90 // Helper functions for use from AutocompleteEditHelper Objective-C | 91 // Helper functions for use from AutocompleteEditHelper Objective-C |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 | 184 |
184 // Tracking state before and after a possible change for reporting | 185 // Tracking state before and after a possible change for reporting |
185 // to model_. | 186 // to model_. |
186 NSRange selection_before_change_; | 187 NSRange selection_before_change_; |
187 std::wstring text_before_change_; | 188 std::wstring text_before_change_; |
188 | 189 |
189 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); | 190 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); |
190 }; | 191 }; |
191 | 192 |
192 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ | 193 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ |
OLD | NEW |