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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 TEXT_INSERTED, | 62 TEXT_INSERTED, |
63 | 63 |
64 // Text was removed in a node with text content. | 64 // Text was removed in a node with text content. |
65 TEXT_REMOVED, | 65 TEXT_REMOVED, |
66 | 66 |
67 // The node value has changed. | 67 // The node value has changed. |
68 VALUE_CHANGED, | 68 VALUE_CHANGED, |
69 }; | 69 }; |
70 }; | 70 }; |
71 | 71 |
72 struct ViewHostMsg_RunFileChooser_Mode { | |
73 public: | |
74 enum Value { | |
75 // Requires that the file exists before allowing the user to pick it. | |
76 Open, | |
77 | |
78 // Like Open, but allows picking multiple files to open. | |
79 OpenMultiple, | |
80 | |
81 // Like Open, but selects a folder. | |
82 OpenFolder, | |
83 | |
84 // Allows picking a nonexistent file, and prompts to overwrite if the file | |
85 // already exists. | |
86 Save, | |
87 }; | |
88 }; | |
89 | |
90 // Values that may be OR'd together to form the 'flags' parameter of a | 72 // Values that may be OR'd together to form the 'flags' parameter of a |
91 // ViewHostMsg_UpdateRect_Params structure. | 73 // ViewHostMsg_UpdateRect_Params structure. |
92 struct ViewHostMsg_UpdateRect_Flags { | 74 struct ViewHostMsg_UpdateRect_Flags { |
93 enum { | 75 enum { |
94 IS_RESIZE_ACK = 1 << 0, | 76 IS_RESIZE_ACK = 1 << 0, |
95 IS_RESTORE_ACK = 1 << 1, | 77 IS_RESTORE_ACK = 1 << 1, |
96 IS_REPAINT_ACK = 1 << 2, | 78 IS_REPAINT_ACK = 1 << 2, |
97 }; | 79 }; |
98 static bool is_resize_ack(int flags) { | 80 static bool is_resize_ack(int flags) { |
99 return (flags & IS_RESIZE_ACK) != 0; | 81 return (flags & IS_RESIZE_ACK) != 0; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 kActivateSelection | 118 kActivateSelection |
137 }; | 119 }; |
138 | 120 |
139 ViewMsg_StopFinding_Params() : action(kClearSelection) {} | 121 ViewMsg_StopFinding_Params() : action(kClearSelection) {} |
140 | 122 |
141 // The action that should be taken when the find is completed. | 123 // The action that should be taken when the find is completed. |
142 Action action; | 124 Action action; |
143 }; | 125 }; |
144 | 126 |
145 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ | 127 #endif // CONTENT_COMMON_VIEW_MESSAGES_ENUMS_H_ |
OLD | NEW |