OLD | NEW |
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 Loading... |
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 and Linux. | |
141 int writingDirectionDefault; | 140 int writingDirectionDefault; |
142 int writingDirectionLeftToRight; | 141 int writingDirectionLeftToRight; |
143 int writingDirectionRightToLeft; | 142 int writingDirectionRightToLeft; |
144 | 143 |
145 enum EditFlags { | 144 enum EditFlags { |
146 CanDoNone = 0x0, | 145 CanDoNone = 0x0, |
147 CanUndo = 0x1, | 146 CanUndo = 0x1, |
148 CanRedo = 0x2, | 147 CanRedo = 0x2, |
149 CanCut = 0x4, | 148 CanCut = 0x4, |
150 CanCopy = 0x8, | 149 CanCopy = 0x8, |
(...skipping 27 matching lines...) Expand all Loading... |
178 , isEditable(false) | 177 , isEditable(false) |
179 , writingDirectionDefault(CheckableMenuItemDisabled) | 178 , writingDirectionDefault(CheckableMenuItemDisabled) |
180 , writingDirectionLeftToRight(CheckableMenuItemEnabled) | 179 , writingDirectionLeftToRight(CheckableMenuItemEnabled) |
181 , writingDirectionRightToLeft(CheckableMenuItemEnabled) | 180 , writingDirectionRightToLeft(CheckableMenuItemEnabled) |
182 , editFlags(0) { } | 181 , editFlags(0) { } |
183 }; | 182 }; |
184 | 183 |
185 } // namespace blink | 184 } // namespace blink |
186 | 185 |
187 #endif | 186 #endif |
OLD | NEW |