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 #import "chrome/browser/cocoa/autocomplete_text_field_editor.h" | 5 #import "chrome/browser/cocoa/autocomplete_text_field_editor.h" |
6 | 6 |
7 #include "base/string_util.h" | 7 #include "base/string_util.h" |
8 #include "base/sys_string_conversions.h" | 8 #include "base/sys_string_conversions.h" |
9 | 9 |
10 @implementation AutocompleteTextFieldEditor | 10 @implementation AutocompleteTextFieldEditor |
(...skipping 27 matching lines...) Expand all Loading... |
38 } | 38 } |
39 return NO; | 39 return NO; |
40 } | 40 } |
41 | 41 |
42 - (void)paste:(id)sender { | 42 - (void)paste:(id)sender { |
43 if ([self shouldPaste]) { | 43 if ([self shouldPaste]) { |
44 [super paste:sender]; | 44 [super paste:sender]; |
45 } | 45 } |
46 } | 46 } |
47 | 47 |
| 48 // We have rich text, but it shouldn't be modified by the user, so |
| 49 // don't update the font panel. In theory, -setUsesFontPanel: should |
| 50 // accomplish this, but that gets called frequently with YES when |
| 51 // NSTextField and NSTextView synchronize their contents. That is |
| 52 // probably unavoidable because in most cases having rich text in the |
| 53 // field you probably would expect it to update the font panel. |
| 54 - (void)updateFontPanel { |
| 55 } |
| 56 |
| 57 // No ruler bar, so don't update any of that state, either. |
| 58 - (void)updateRuler { |
| 59 } |
| 60 |
48 @end | 61 @end |
OLD | NEW |