| OLD | NEW |
| 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 #ifndef CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ | 5 #ifndef CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
| 6 #define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ | 6 #define CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
| 7 | 7 |
| 8 #include "ipc/ipc_message_macros.h" |
| 9 |
| 8 // Values that may be OR'd together to form the 'flags' parameter of a | 10 // Values that may be OR'd together to form the 'flags' parameter of a |
| 9 // ViewHostMsg_UpdateRect_Params structure. | 11 // ViewHostMsg_UpdateRect_Params structure. |
| 10 struct ViewHostMsg_UpdateRect_Flags { | 12 struct ViewHostMsg_UpdateRect_Flags { |
| 11 enum { | 13 enum { |
| 12 IS_RESIZE_ACK = 1 << 0, | 14 IS_RESIZE_ACK = 1 << 0, |
| 13 IS_RESTORE_ACK = 1 << 1, | 15 IS_RESTORE_ACK = 1 << 1, |
| 14 IS_REPAINT_ACK = 1 << 2, | 16 IS_REPAINT_ACK = 1 << 2, |
| 15 }; | 17 }; |
| 16 static bool is_resize_ack(int flags) { | 18 static bool is_resize_ack(int flags) { |
| 17 return (flags & IS_RESIZE_ACK) != 0; | 19 return (flags & IS_RESIZE_ACK) != 0; |
| (...skipping 23 matching lines...) Expand all Loading... |
| 41 RESTORE, | 43 RESTORE, |
| 42 | 44 |
| 43 // Like RESTORE, except that the navigation contains POST data. | 45 // Like RESTORE, except that the navigation contains POST data. |
| 44 RESTORE_WITH_POST, | 46 RESTORE_WITH_POST, |
| 45 | 47 |
| 46 // Navigation type not categorized by the other types. | 48 // Navigation type not categorized by the other types. |
| 47 NORMAL | 49 NORMAL |
| 48 }; | 50 }; |
| 49 }; | 51 }; |
| 50 | 52 |
| 53 enum AccessibilityMode { |
| 54 // WebKit accessibility is off and no accessibility information is |
| 55 // sent from the renderer to the browser process. |
| 56 AccessibilityModeOff, |
| 57 |
| 58 // WebKit accessibility is on, but only limited information about |
| 59 // editable text nodes is sent to the browser process. Useful for |
| 60 // implementing limited UIA on tablets. |
| 61 AccessibilityModeEditableTextOnly, |
| 62 |
| 63 // WebKit accessibility is on, and the full accessibility tree is synced |
| 64 // to the browser process. Useful for screen readers and magnifiers. |
| 65 AccessibilityModeComplete, |
| 66 }; |
| 67 |
| 51 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ | 68 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
| OLD | NEW |