Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(591)

Side by Side Diff: content/common/view_messages.h

Issue 6874038: Remove the last Chrome dependencies from renderer, and enforce no more includes through DEPS. I ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 NOTIFICATION_TYPE_LOAD_COMPLETE, 58 NOTIFICATION_TYPE_LOAD_COMPLETE,
59 59
60 // The node value has changed. 60 // The node value has changed.
61 NOTIFICATION_TYPE_VALUE_CHANGED, 61 NOTIFICATION_TYPE_VALUE_CHANGED,
62 62
63 // The text cursor or selection changed. 63 // The text cursor or selection changed.
64 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED, 64 NOTIFICATION_TYPE_SELECTED_TEXT_CHANGED,
65 }; 65 };
66 }; 66 };
67 67
68 // Values that may be OR'd together to form the 'flags' parameter of the
69 // ViewMsg_EnablePreferredSizeChangedMode message.
70 enum ViewHostMsg_EnablePreferredSizeChangedMode_Flags {
71 kPreferredSizeNothing,
72 kPreferredSizeWidth = 1 << 0,
73 // Requesting the height currently requires a polling loop in render_view.cc.
74 kPreferredSizeHeightThisIsSlow = 1 << 1,
75 };
76
68 struct ViewHostMsg_RunFileChooser_Mode { 77 struct ViewHostMsg_RunFileChooser_Mode {
69 public: 78 public:
70 enum Value { 79 enum Value {
71 // Requires that the file exists before allowing the user to pick it. 80 // Requires that the file exists before allowing the user to pick it.
72 Open, 81 Open,
73 82
74 // Like Open, but allows picking multiple files to open. 83 // Like Open, but allows picking multiple files to open.
75 OpenMultiple, 84 OpenMultiple,
76 85
77 // Like Open, but selects a folder. 86 // Like Open, but selects a folder.
(...skipping 1075 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 // Tells the renderer that the channel to the broker has been created. 1162 // Tells the renderer that the channel to the broker has been created.
1154 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated, 1163 IPC_MESSAGE_ROUTED2(ViewMsg_PpapiBrokerChannelCreated,
1155 int /* request_id */, 1164 int /* request_id */,
1156 IPC::ChannelHandle /* handle */) 1165 IPC::ChannelHandle /* handle */)
1157 1166
1158 // Tells the renderer to empty its plugin list cache, optional reloading 1167 // Tells the renderer to empty its plugin list cache, optional reloading
1159 // pages containing plugins. 1168 // pages containing plugins.
1160 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache, 1169 IPC_MESSAGE_CONTROL1(ViewMsg_PurgePluginListCache,
1161 bool /* reload_pages */) 1170 bool /* reload_pages */)
1162 1171
1172 // Install the first missing pluign.
1173 IPC_MESSAGE_ROUTED0(ViewMsg_InstallMissingPlugin)
1174
1175 // Sent to the renderer when a popup window should no longer count against
1176 // the current popup count (either because it's not a popup or because it was
1177 // a generated by a user action or because a constrained popup got turned
1178 // into a full window).
1179 IPC_MESSAGE_ROUTED0(ViewMsg_DisassociateFromPopupCount)
1180
1181 // Tells the render view a prerendered page is about to be displayed.
1182 IPC_MESSAGE_ROUTED0(ViewMsg_DisplayPrerenderedPage)
1183
1163 1184
1164 // Messages sent from the renderer to the browser. 1185 // Messages sent from the renderer to the browser.
1165 1186
1166 // Sent by the renderer when it is creating a new window. The browser creates 1187 // Sent by the renderer when it is creating a new window. The browser creates
1167 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 1188 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1168 // MSG_ROUTING_NONE, the view couldn't be created. 1189 // MSG_ROUTING_NONE, the view couldn't be created.
1169 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow, 1190 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_CreateWindow,
1170 ViewHostMsg_CreateWindow_Params, 1191 ViewHostMsg_CreateWindow_Params,
1171 int /* route_id */, 1192 int /* route_id */,
1172 int64 /* cloned_session_storage_namespace_id */) 1193 int64 /* cloned_session_storage_namespace_id */)
(...skipping 727 matching lines...) Expand 10 before | Expand all | Expand 10 after
1900 // enable or disable spdy. Used for debugging/testing/benchmarking. 1921 // enable or disable spdy. Used for debugging/testing/benchmarking.
1901 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy, 1922 IPC_MESSAGE_CONTROL1(ViewHostMsg_EnableSpdy,
1902 bool /* enable */) 1923 bool /* enable */)
1903 1924
1904 // Message sent from the renderer to the browser to request that the browser 1925 // Message sent from the renderer to the browser to request that the browser
1905 // cache |data| associated with |url|. 1926 // cache |data| associated with |url|.
1906 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata, 1927 IPC_MESSAGE_CONTROL3(ViewHostMsg_DidGenerateCacheableMetadata,
1907 GURL /* url */, 1928 GURL /* url */,
1908 double /* expected_response_time */, 1929 double /* expected_response_time */,
1909 std::vector<char> /* data */) 1930 std::vector<char> /* data */)
1931
1932 // Updates the content restrictions, i.e. to disable print/copy.
1933 IPC_MESSAGE_ROUTED1(ViewHostMsg_UpdateContentRestrictions,
1934 int /* restrictions */)
1935
1936 // The currently displayed PDF has an unsupported feature.
1937 IPC_MESSAGE_ROUTED0(ViewHostMsg_PDFHasUnsupportedFeature)
1938
1939 // Brings up SaveAs... dialog (similar to the wrench->SaveAs...).
1940 IPC_MESSAGE_ROUTED0(ViewHostMsg_SaveAs)
1941
1942 // Notifies when default plugin updates status of the missing plugin.
1943 IPC_MESSAGE_ROUTED1(ViewHostMsg_MissingPluginStatus,
1944 int /* status */)
1945
1946 // Displays a JavaScript out-of-memory message in the infobar.
1947 IPC_MESSAGE_ROUTED0(ViewHostMsg_JSOutOfMemory)
1948
1949 // Register a new handler for URL requests with the given scheme.
1950 IPC_MESSAGE_ROUTED3(ViewHostMsg_RegisterProtocolHandler,
1951 std::string /* scheme */,
1952 GURL /* url */,
1953 string16 /* title */)
1954
1955 // Stores new inspector setting in the profile.
1956 // TODO(jam): this should be in the chrome module
1957 IPC_MESSAGE_ROUTED2(ViewHostMsg_UpdateInspectorSetting,
1958 std::string, /* key */
1959 std::string /* value */)
1960
1961 // Message sent from the renderer to the browser to notify it of events which
1962 // may lead to the cancellation of a prerender. The message is sent only when
1963 // the renderer is in prerender mode.
1964 IPC_MESSAGE_ROUTED0(ViewHostMsg_MaybeCancelPrerenderForHTML5Media)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698