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 // IPC messages for page rendering. | 5 // IPC messages for page rendering. |
| 6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
| 7 | 7 |
| 8 #include "base/process.h" | 8 #include "base/process.h" |
| 9 #include "base/shared_memory.h" | 9 #include "base/shared_memory.h" |
| 10 #include "content/common/common_param_traits.h" | 10 #include "content/common/common_param_traits.h" |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 102 | 102 |
| 103 // Text was inserted in a node with text content. | 103 // Text was inserted in a node with text content. |
| 104 TEXT_INSERTED, | 104 TEXT_INSERTED, |
| 105 | 105 |
| 106 // Text was removed in a node with text content. | 106 // Text was removed in a node with text content. |
| 107 TEXT_REMOVED, | 107 TEXT_REMOVED, |
| 108 | 108 |
| 109 // The node value has changed. | 109 // The node value has changed. |
| 110 VALUE_CHANGED, | 110 VALUE_CHANGED, |
| 111 }; | 111 }; |
| 112 | |
| 113 #ifndef NDEBUG | |
| 114 static const std::string DebugString(Value value) { | |
| 115 switch (value) { | |
| 116 case ACTIVE_DESCENDANT_CHANGED: return "active descendant changed"; | |
| 117 case ALERT: return "alert"; | |
| 118 case CHECK_STATE_CHANGED: return "checked state changed"; | |
| 119 case CHILDREN_CHANGED: return "children changed"; | |
| 120 case FOCUS_CHANGED: return "focus changed"; | |
| 121 case LAYOUT_COMPLETE: return "layout complete"; | |
| 122 case LIVE_REGION_CHANGED: return "live region changed"; | |
| 123 case LOAD_COMPLETE: return "load complete"; | |
| 124 case MENU_LIST_VALUE_CHANGED: return "menu list changed"; | |
| 125 case OBJECT_SHOW: return "object show"; | |
| 126 case OBJECT_HIDE: return "object hide"; | |
| 127 case ROW_COUNT_CHANGED: return "row count changed"; | |
| 128 case ROW_COLLAPSED: return "row collapsed"; | |
| 129 case ROW_EXPANDED: return "row expanded"; | |
| 130 case SCROLLED_TO_ANCHOR: return "scrolled to anchor"; | |
| 131 case SELECTED_CHILDREN_CHANGED: return "selected children changed"; | |
| 132 case SELECTED_TEXT_CHANGED: return "selected text changed"; | |
| 133 case TEXT_INSERTED: return "text inserted"; | |
| 134 case TEXT_REMOVED: return "text removed"; | |
|
tony
2011/09/13 23:22:21
Nit: indent seems off here
| |
| 135 case VALUE_CHANGED: return "value changed"; | |
| 136 } | |
| 137 return ""; | |
|
tony
2011/09/13 23:22:21
Nit: NOT_REACHED()
| |
| 138 } | |
| 139 #endif // NDEBUG | |
| 112 }; | 140 }; |
| 113 | 141 |
| 114 // Values that may be OR'd together to form the 'flags' parameter of the | 142 // Values that may be OR'd together to form the 'flags' parameter of the |
| 115 // ViewMsg_EnablePreferredSizeChangedMode message. | 143 // ViewMsg_EnablePreferredSizeChangedMode message. |
| 116 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { | 144 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags { |
| 117 kPreferredSizeNothing, | 145 kPreferredSizeNothing, |
| 118 kPreferredSizeWidth = 1 << 0, | 146 kPreferredSizeWidth = 1 << 0, |
| 119 // Requesting the height currently requires a polling loop in render_view.cc. | 147 // Requesting the height currently requires a polling loop in render_view.cc. |
| 120 kPreferredSizeHeightThisIsSlow = 1 << 1, | 148 kPreferredSizeHeightThisIsSlow = 1 << 1, |
| 121 }; | 149 }; |
| (...skipping 2003 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2125 int32 /* complete status */) | 2153 int32 /* complete status */) |
| 2126 | 2154 |
| 2127 // Request updated information about the client firewall traversal policy. | 2155 // Request updated information about the client firewall traversal policy. |
| 2128 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message | 2156 // Will result in a ViewMsg_UpdateRemoteAccessClientFirewallTraversal message |
| 2129 // being sent back. | 2157 // being sent back. |
| 2130 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) | 2158 IPC_MESSAGE_ROUTED0(ViewHostMsg_RequestRemoteAccessClientFirewallTraversal) |
| 2131 | 2159 |
| 2132 // Notifies the browser of an event occurring in the media pipeline. | 2160 // Notifies the browser of an event occurring in the media pipeline. |
| 2133 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, | 2161 IPC_MESSAGE_CONTROL1(ViewHostMsg_MediaLogEvent, |
| 2134 media::MediaLogEvent /* event */) | 2162 media::MediaLogEvent /* event */) |
| OLD | NEW |