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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_mac_editcommand_helper.mm

Issue 9600036: Move Render(View|Widget)Host and associated classes to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Respond to review comments. Created 8 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h elper.h" 5 #import "content/browser/renderer_host/render_widget_host_view_mac_editcommand_h elper.h"
6 6
7 #import <objc/runtime.h> 7 #import <objc/runtime.h>
8 8
9 #include "content/browser/renderer_host/render_widget_host_impl.h" 9 #include "content/browser/renderer_host/render_widget_host_impl.h"
10 #import "content/browser/renderer_host/render_widget_host_view_mac.h" 10 #import "content/browser/renderer_host/render_widget_host_view_mac.h"
11 11
12 using content::RenderWidgetHostImpl;
13
12 namespace { 14 namespace {
13 // The names of all the objc selectors w/o ':'s added to an object by 15 // The names of all the objc selectors w/o ':'s added to an object by
14 // AddEditingSelectorsToClass(). 16 // AddEditingSelectorsToClass().
15 // 17 //
16 // This needs to be kept in Sync with WEB_COMMAND list in the WebKit tree at: 18 // This needs to be kept in Sync with WEB_COMMAND list in the WebKit tree at:
17 // WebKit/mac/WebView/WebHTMLView.mm . 19 // WebKit/mac/WebView/WebHTMLView.mm .
18 const char* kEditCommands[] = { 20 const char* kEditCommands[] = {
19 "alignCenter", 21 "alignCenter",
20 "alignJustified", 22 "alignJustified",
21 "alignLeft", 23 "alignLeft",
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 NSArray* RenderWidgetHostViewMacEditCommandHelper::GetEditSelectorNames() { 229 NSArray* RenderWidgetHostViewMacEditCommandHelper::GetEditSelectorNames() {
228 size_t num_edit_commands = arraysize(kEditCommands); 230 size_t num_edit_commands = arraysize(kEditCommands);
229 NSMutableArray* ret = [NSMutableArray arrayWithCapacity:num_edit_commands]; 231 NSMutableArray* ret = [NSMutableArray arrayWithCapacity:num_edit_commands];
230 232
231 for (size_t i = 0; i < num_edit_commands; ++i) { 233 for (size_t i = 0; i < num_edit_commands; ++i) {
232 [ret addObject:[NSString stringWithUTF8String:kEditCommands[i]]]; 234 [ret addObject:[NSString stringWithUTF8String:kEditCommands[i]]];
233 } 235 }
234 236
235 return ret; 237 return ret;
236 } 238 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698