| 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" | 8 #include "ipc/ipc_message_macros.h" |
| 9 | 9 |
| 10 // 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 |
| 11 // ViewHostMsg_UpdateRect_Params structure. | 11 // ViewHostMsg_UpdateRect_Params structure. |
| 12 struct ViewHostMsg_UpdateRect_Flags { | 12 struct ViewHostMsg_UpdateRect_Flags { |
| 13 enum { | 13 enum { |
| 14 IS_RESIZE_ACK = 1 << 0, | 14 IS_RESIZE_ACK = 1 << 0, |
| 15 IS_RESTORE_ACK = 1 << 1, | 15 IS_RESTORE_ACK = 1 << 1, |
| 16 IS_REPAINT_ACK = 1 << 2, | 16 IS_REPAINT_ACK = 1 << 2, |
| 17 }; | 17 }; |
| 18 static bool is_resize_ack(int flags) { | 18 static bool is_resize_ack(int flags) { |
| 19 return (flags & IS_RESIZE_ACK) != 0; | 19 return (flags & IS_RESIZE_ACK) != 0; |
| 20 } | 20 } |
| 21 static bool is_restore_ack(int flags) { | 21 static bool is_restore_ack(int flags) { |
| 22 return (flags & IS_RESTORE_ACK) != 0; | 22 return (flags & IS_RESTORE_ACK) != 0; |
| 23 } | 23 } |
| 24 static bool is_repaint_ack(int flags) { | 24 static bool is_repaint_ack(int flags) { |
| 25 return (flags & IS_REPAINT_ACK) != 0; | 25 return (flags & IS_REPAINT_ACK) != 0; |
| 26 } | 26 } |
| 27 }; | 27 }; |
| 28 | 28 |
| 29 struct ViewMsg_Navigate_Type { | |
| 30 public: | |
| 31 enum Value { | |
| 32 // Reload the page. | |
| 33 RELOAD, | |
| 34 | |
| 35 // Reload the page, ignoring any cache entries. | |
| 36 RELOAD_IGNORING_CACHE, | |
| 37 | |
| 38 // Reload the page using the original request URL. | |
| 39 RELOAD_ORIGINAL_REQUEST_URL, | |
| 40 | |
| 41 // The navigation is the result of session restore and should honor the | |
| 42 // page's cache policy while restoring form state. This is set to true if | |
| 43 // restoring a tab/session from the previous session and the previous | |
| 44 // session did not crash. If this is not set and the page was restored then | |
| 45 // the page's cache policy is ignored and we load from the cache. | |
| 46 RESTORE, | |
| 47 | |
| 48 // Like RESTORE, except that the navigation contains POST data. | |
| 49 RESTORE_WITH_POST, | |
| 50 | |
| 51 // Navigation type not categorized by the other types. | |
| 52 NORMAL | |
| 53 }; | |
| 54 }; | |
| 55 | |
| 56 enum AccessibilityMode { | 29 enum AccessibilityMode { |
| 57 // WebKit accessibility is off and no accessibility information is | 30 // WebKit accessibility is off and no accessibility information is |
| 58 // sent from the renderer to the browser process. | 31 // sent from the renderer to the browser process. |
| 59 AccessibilityModeOff, | 32 AccessibilityModeOff, |
| 60 | 33 |
| 61 // WebKit accessibility is on, but only limited information about | 34 // WebKit accessibility is on, but only limited information about |
| 62 // editable text nodes is sent to the browser process. Useful for | 35 // editable text nodes is sent to the browser process. Useful for |
| 63 // implementing limited UIA on tablets. | 36 // implementing limited UIA on tablets. |
| 64 AccessibilityModeEditableTextOnly, | 37 AccessibilityModeEditableTextOnly, |
| 65 | 38 |
| 66 // WebKit accessibility is on, and the full accessibility tree is synced | 39 // WebKit accessibility is on, and the full accessibility tree is synced |
| 67 // to the browser process. Useful for screen readers and magnifiers. | 40 // to the browser process. Useful for screen readers and magnifiers. |
| 68 AccessibilityModeComplete, | 41 AccessibilityModeComplete, |
| 69 }; | 42 }; |
| 70 | 43 |
| 71 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ | 44 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
| OLD | NEW |