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

Side by Side Diff: content/renderer/menu_item_builder.cc

Issue 63253002: Rename WebKit namespace to blink (part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 | « content/renderer/menu_item_builder.h ('k') | content/renderer/mhtml_generator.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #include "content/renderer/menu_item_builder.h" 5 #include "content/renderer/menu_item_builder.h"
6 6
7 #include "content/public/common/menu_item.h" 7 #include "content/public/common/menu_item.h"
8 8
9 namespace content { 9 namespace content {
10 10
11 MenuItem MenuItemBuilder::Build(const WebKit::WebMenuItemInfo& item) { 11 MenuItem MenuItemBuilder::Build(const blink::WebMenuItemInfo& item) {
12 MenuItem result; 12 MenuItem result;
13 13
14 result.label = item.label; 14 result.label = item.label;
15 result.tool_tip = item.toolTip; 15 result.tool_tip = item.toolTip;
16 result.type = static_cast<MenuItem::Type>(item.type); 16 result.type = static_cast<MenuItem::Type>(item.type);
17 result.action = item.action; 17 result.action = item.action;
18 result.rtl = (item.textDirection == WebKit::WebTextDirectionRightToLeft); 18 result.rtl = (item.textDirection == blink::WebTextDirectionRightToLeft);
19 result.has_directional_override = item.hasTextDirectionOverride; 19 result.has_directional_override = item.hasTextDirectionOverride;
20 result.enabled = item.enabled; 20 result.enabled = item.enabled;
21 result.checked = item.checked; 21 result.checked = item.checked;
22 for (size_t i = 0; i < item.subMenuItems.size(); ++i) 22 for (size_t i = 0; i < item.subMenuItems.size(); ++i)
23 result.submenu.push_back(MenuItemBuilder::Build(item.subMenuItems[i])); 23 result.submenu.push_back(MenuItemBuilder::Build(item.subMenuItems[i]));
24 24
25 return result; 25 return result;
26 } 26 }
27 27
28 } // namespace content 28 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/menu_item_builder.h ('k') | content/renderer/mhtml_generator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698