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

Side by Side Diff: public/web/WebContextMenuData.h

Issue 66313007: [Blink] Adding Writing direction to the context menu for linux gtk (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
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
« no previous file with comments | « Source/web/ContextMenuClientImpl.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2009, 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 bool isEditable; 130 bool isEditable;
131 131
132 enum CheckableMenuItemFlags { 132 enum CheckableMenuItemFlags {
133 CheckableMenuItemDisabled = 0x0, 133 CheckableMenuItemDisabled = 0x0,
134 CheckableMenuItemEnabled = 0x1, 134 CheckableMenuItemEnabled = 0x1,
135 CheckableMenuItemChecked = 0x2, 135 CheckableMenuItemChecked = 0x2,
136 }; 136 };
137 137
138 // Writing direction menu items - values are unions of 138 // Writing direction menu items - values are unions of
139 // CheckableMenuItemFlags. 139 // CheckableMenuItemFlags.
140 // Currently only used on OS X. 140 // Currently only used on OS X and Linux.
141 int writingDirectionDefault; 141 int writingDirectionDefault;
142 int writingDirectionLeftToRight; 142 int writingDirectionLeftToRight;
143 int writingDirectionRightToLeft; 143 int writingDirectionRightToLeft;
144 144
145 enum EditFlags { 145 enum EditFlags {
146 CanDoNone = 0x0, 146 CanDoNone = 0x0,
147 CanUndo = 0x1, 147 CanUndo = 0x1,
148 CanRedo = 0x2, 148 CanRedo = 0x2,
149 CanCut = 0x4, 149 CanCut = 0x4,
150 CanCopy = 0x8, 150 CanCopy = 0x8,
(...skipping 27 matching lines...) Expand all
178 , isEditable(false) 178 , isEditable(false)
179 , writingDirectionDefault(CheckableMenuItemDisabled) 179 , writingDirectionDefault(CheckableMenuItemDisabled)
180 , writingDirectionLeftToRight(CheckableMenuItemEnabled) 180 , writingDirectionLeftToRight(CheckableMenuItemEnabled)
181 , writingDirectionRightToLeft(CheckableMenuItemEnabled) 181 , writingDirectionRightToLeft(CheckableMenuItemEnabled)
182 , editFlags(0) { } 182 , editFlags(0) { }
183 }; 183 };
184 184
185 } // namespace blink 185 } // namespace blink
186 186
187 #endif 187 #endif
OLDNEW
« no previous file with comments | « Source/web/ContextMenuClientImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698