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

Side by Side Diff: chrome/browser/cocoa/autocomplete_text_field_editor.mm

Issue 155816: [Mac] Prevent the field from updating the font panel and any ruler state. (Closed)
Patch Set: Update comments around -setUsesFontPanel: research. Created 11 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698