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

Side by Side Diff: webkit/glue/webmenuitem.cc

Issue 6410125: Extend Mac popup to handle more directionality.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 10 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 | « webkit/glue/webmenuitem.h ('k') | webkit/glue/webmenurunner_mac.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "webkit/glue/webmenuitem.h" 5 #include "webkit/glue/webmenuitem.h"
6 6
7 WebMenuItem::WebMenuItem() 7 WebMenuItem::WebMenuItem()
8 : type(OPTION), 8 : type(OPTION),
9 action(0), 9 action(0),
10 rtl(false),
11 directional_override(false),
10 enabled(false), 12 enabled(false),
11 checked(false) { 13 checked(false) {
12 } 14 }
13 15
14 WebMenuItem::WebMenuItem(const WebKit::WebMenuItemInfo& item) 16 WebMenuItem::WebMenuItem(const WebKit::WebMenuItemInfo& item)
15 : label(item.label), 17 : label(item.label),
16 type(static_cast<Type>(item.type)), 18 type(static_cast<Type>(item.type)),
17 action(item.action), 19 action(item.action),
20 rtl(item.textDirection == WebKit::WebTextDirectionRightToLeft),
21 directional_override(item.directionalOverride),
18 enabled(item.enabled), 22 enabled(item.enabled),
19 checked(item.checked) { 23 checked(item.checked) {
20 } 24 }
21 25
22 WebMenuItem::WebMenuItem(const WebMenuItem& item) 26 WebMenuItem::WebMenuItem(const WebMenuItem& item)
23 : label(item.label), 27 : label(item.label),
24 type(item.type), 28 type(item.type),
25 action(item.action), 29 action(item.action),
30 rtl(item.rtl),
31 directional_override(item.directional_override),
26 enabled(item.enabled), 32 enabled(item.enabled),
27 checked(item.checked), 33 checked(item.checked),
28 submenu(item.submenu) { 34 submenu(item.submenu) {
29 } 35 }
30 36
31 WebMenuItem::~WebMenuItem() {} 37 WebMenuItem::~WebMenuItem() {}
OLDNEW
« no previous file with comments | « webkit/glue/webmenuitem.h ('k') | webkit/glue/webmenurunner_mac.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698