Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 #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 struct ViewHostMsg_AccEvent { | 8 struct ViewHostMsg_AccEvent { |
| 9 enum Value { | 9 enum Value { |
| 10 // The active descendant of a node has changed. | 10 // The active descendant of a node has changed. |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 96 }; | 96 }; |
| 97 }; | 97 }; |
| 98 | 98 |
| 99 // Values that may be OR'd together to form the 'flags' parameter of a | 99 // Values that may be OR'd together to form the 'flags' parameter of a |
| 100 // ViewHostMsg_UpdateRect_Params structure. | 100 // ViewHostMsg_UpdateRect_Params structure. |
| 101 struct ViewHostMsg_UpdateRect_Flags { | 101 struct ViewHostMsg_UpdateRect_Flags { |
| 102 enum { | 102 enum { |
| 103 IS_RESIZE_ACK = 1 << 0, | 103 IS_RESIZE_ACK = 1 << 0, |
| 104 IS_RESTORE_ACK = 1 << 1, | 104 IS_RESTORE_ACK = 1 << 1, |
| 105 IS_REPAINT_ACK = 1 << 2, | 105 IS_REPAINT_ACK = 1 << 2, |
| 106 NEEDS_ACK = 1 << 3, | |
| 106 }; | 107 }; |
| 107 static bool is_resize_ack(int flags) { | 108 static bool is_resize_ack(int flags) { |
| 108 return (flags & IS_RESIZE_ACK) != 0; | 109 return (flags & IS_RESIZE_ACK) != 0; |
| 109 } | 110 } |
| 110 static bool is_restore_ack(int flags) { | 111 static bool is_restore_ack(int flags) { |
| 111 return (flags & IS_RESTORE_ACK) != 0; | 112 return (flags & IS_RESTORE_ACK) != 0; |
| 112 } | 113 } |
| 113 static bool is_repaint_ack(int flags) { | 114 static bool is_repaint_ack(int flags) { |
| 114 return (flags & IS_REPAINT_ACK) != 0; | 115 return (flags & IS_REPAINT_ACK) != 0; |
| 115 } | 116 } |
| 117 static bool needs_ack(int flags) { | |
|
darin (slow to review)
2011/11/15 08:06:04
it seems a bit awkward to put this flag here. the
piman
2011/11/16 01:00:55
Done.
| |
| 118 return (flags & NEEDS_ACK) != 0; | |
| 119 } | |
| 116 }; | 120 }; |
| 117 | 121 |
| 118 struct ViewMsg_Navigate_Type { | 122 struct ViewMsg_Navigate_Type { |
| 119 public: | 123 public: |
| 120 enum Value { | 124 enum Value { |
| 121 // Reload the page. | 125 // Reload the page. |
| 122 RELOAD, | 126 RELOAD, |
| 123 | 127 |
| 124 // Reload the page, ignoring any cache entries. | 128 // Reload the page, ignoring any cache entries. |
| 125 RELOAD_IGNORING_CACHE, | 129 RELOAD_IGNORING_CACHE, |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 145 kActivateSelection | 149 kActivateSelection |
| 146 }; | 150 }; |
| 147 | 151 |
| 148 ViewMsg_StopFinding_Params() : action(kClearSelection) {} | 152 ViewMsg_StopFinding_Params() : action(kClearSelection) {} |
| 149 | 153 |
| 150 // The action that should be taken when the find is completed. | 154 // The action that should be taken when the find is completed. |
| 151 Action action; | 155 Action action; |
| 152 }; | 156 }; |
| 153 | 157 |
| 154 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ | 158 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
| OLD | NEW |