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

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

Issue 160565: Adds support for the os x spelling panel to chromium. Users can... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 3 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
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | 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/rwhvm_editcommand_helper.h" 5 #import "chrome/browser/cocoa/rwhvm_editcommand_helper.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 8
9 #include "chrome/browser/renderer_host/render_widget_host.h" 9 #include "chrome/browser/renderer_host/render_widget_host.h"
10 #import "chrome/browser/renderer_host/render_widget_host_view_mac.h" 10 #import "chrome/browser/renderer_host/render_widget_host_view_mac.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 "pageDownAndModifySelection", 88 "pageDownAndModifySelection",
89 "pageUp", 89 "pageUp",
90 "pageUpAndModifySelection", 90 "pageUpAndModifySelection",
91 "selectAll", 91 "selectAll",
92 "selectLine", 92 "selectLine",
93 "selectParagraph", 93 "selectParagraph",
94 "selectSentence", 94 "selectSentence",
95 "selectToMark", 95 "selectToMark",
96 "selectWord", 96 "selectWord",
97 "setMark", 97 "setMark",
98 "showGuessPanel",
98 "subscript", 99 "subscript",
99 "superscript", 100 "superscript",
100 "swapWithMark", 101 "swapWithMark",
101 "transpose", 102 "transpose",
102 "underline", 103 "underline",
103 "unscript", 104 "unscript",
104 "yank", 105 "yank",
105 "yankAndSelect"}; 106 "yankAndSelect"};
106 107
107 // Maps an objc-selector to a core command name. 108 // Maps an objc-selector to a core command name.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
215 NSArray* RWHVMEditCommandHelper::GetEditSelectorNames() { 216 NSArray* RWHVMEditCommandHelper::GetEditSelectorNames() {
216 size_t num_edit_commands = arraysize(kEditCommands); 217 size_t num_edit_commands = arraysize(kEditCommands);
217 NSMutableArray* ret = [NSMutableArray arrayWithCapacity:num_edit_commands]; 218 NSMutableArray* ret = [NSMutableArray arrayWithCapacity:num_edit_commands];
218 219
219 for (size_t i = 0; i < num_edit_commands; ++i) { 220 for (size_t i = 0; i < num_edit_commands; ++i) {
220 [ret addObject:[NSString stringWithUTF8String:kEditCommands[i]]]; 221 [ret addObject:[NSString stringWithUTF8String:kEditCommands[i]]];
221 } 222 }
222 223
223 return ret; 224 return ret;
224 } 225 }
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/renderer_host/render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698