| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 virtual void ClosePopup(); | 82 virtual void ClosePopup(); |
| 83 virtual void SetFocus(); | 83 virtual void SetFocus(); |
| 84 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, | 84 virtual void OnTemporaryTextMaybeChanged(const std::wstring& display_text, |
| 85 bool save_original_selection); | 85 bool save_original_selection); |
| 86 virtual bool OnInlineAutocompleteTextMaybeChanged( | 86 virtual bool OnInlineAutocompleteTextMaybeChanged( |
| 87 const std::wstring& display_text, size_t user_text_length); | 87 const std::wstring& display_text, size_t user_text_length); |
| 88 virtual void OnRevertTemporaryText(); | 88 virtual void OnRevertTemporaryText(); |
| 89 virtual void OnBeforePossibleChange(); | 89 virtual void OnBeforePossibleChange(); |
| 90 virtual bool OnAfterPossibleChange(); | 90 virtual bool OnAfterPossibleChange(); |
| 91 virtual gfx::NativeView GetNativeView() const; | 91 virtual gfx::NativeView GetNativeView() const; |
| 92 virtual gfx::NativeView GetFocusNativeView() const; | |
| 93 | 92 |
| 94 // Implement the AutocompleteTextFieldObserver interface. | 93 // Implement the AutocompleteTextFieldObserver interface. |
| 95 virtual void OnControlKeyChanged(bool pressed); | 94 virtual void OnControlKeyChanged(bool pressed); |
| 96 virtual void OnPaste(); | 95 virtual void OnPaste(); |
| 97 virtual bool CanPasteAndGo(); | 96 virtual bool CanPasteAndGo(); |
| 98 virtual int GetPasteActionStringId(); | 97 virtual int GetPasteActionStringId(); |
| 99 virtual void OnPasteAndGo(); | 98 virtual void OnPasteAndGo(); |
| 100 | 99 |
| 101 // Helper functions for use from AutocompleteEditHelper Objective-C | 100 // Helper functions for use from AutocompleteEditHelper Objective-C |
| 102 // class. | 101 // class. |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 190 | 189 |
| 191 // Tracking state before and after a possible change for reporting | 190 // Tracking state before and after a possible change for reporting |
| 192 // to model_. | 191 // to model_. |
| 193 NSRange selection_before_change_; | 192 NSRange selection_before_change_; |
| 194 std::wstring text_before_change_; | 193 std::wstring text_before_change_; |
| 195 | 194 |
| 196 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); | 195 DISALLOW_COPY_AND_ASSIGN(AutocompleteEditViewMac); |
| 197 }; | 196 }; |
| 198 | 197 |
| 199 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ | 198 #endif // CHROME_BROWSER_AUTOCOMPLETE_AUTOCOMPLETE_EDIT_VIEW_MAC_H_ |
| OLD | NEW |