| 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/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 Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |