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

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

Issue 7517001: Switch from WebDocument::insertStyleText to ::insertUserStyleSheet for programatic CSS injection. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 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 937 matching lines...) Expand 10 before | Expand all | Expand 10 after
948 // client can uniquely identify the request. 948 // client can uniquely identify the request.
949 IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest, 949 IPC_MESSAGE_ROUTED4(ViewMsg_ScriptEvalRequest,
950 string16, /* frame_xpath */ 950 string16, /* frame_xpath */
951 string16, /* jscript_url */ 951 string16, /* jscript_url */
952 int, /* ID */ 952 int, /* ID */
953 bool /* If true, result is sent back. */) 953 bool /* If true, result is sent back. */)
954 954
955 // Request for the renderer to evaluate an xpath to a frame and insert css 955 // Request for the renderer to evaluate an xpath to a frame and insert css
956 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on 956 // into that frame's document. See ViewMsg_ScriptEvalRequest for details on
957 // allowed xpath expressions. 957 // allowed xpath expressions.
958 IPC_MESSAGE_ROUTED3(ViewMsg_CSSInsertRequest, 958 IPC_MESSAGE_ROUTED2(ViewMsg_CSSInsertRequest,
959 std::wstring, /* frame_xpath */ 959 std::wstring, /* frame_xpath */
960 std::string, /* css string */ 960 std::string /* css string */)
961 std::string /* element id */)
962 961
963 // External popup menus. 962 // External popup menus.
964 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, 963 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem,
965 int /* selected index, -1 means no selection */) 964 int /* selected index, -1 means no selection */)
966 965
967 // Change the zoom level for the current main frame. If the level actually 966 // Change the zoom level for the current main frame. If the level actually
968 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser 967 // changes, a ViewHostMsg_DidZoomURL message will be sent back to the browser
969 // telling it what url got zoomed and what its current zoom level is. 968 // telling it what url got zoomed and what its current zoom level is.
970 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom, 969 IPC_MESSAGE_ROUTED1(ViewMsg_Zoom,
971 PageZoom::Function /* function */) 970 PageZoom::Function /* function */)
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1974 1973
1975 // Provide the browser process with current renderer framerate. 1974 // Provide the browser process with current renderer framerate.
1976 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS, 1975 IPC_MESSAGE_CONTROL2(ViewHostMsg_FPS,
1977 int /* routing id */, 1976 int /* routing id */,
1978 float /* frames per second */) 1977 float /* frames per second */)
1979 1978
1980 // Notifies the browser that the page was or was not saved as MHTML. 1979 // Notifies the browser that the page was or was not saved as MHTML.
1981 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, 1980 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML,
1982 int /* job_id */, 1981 int /* job_id */,
1983 bool /* success */) 1982 bool /* success */)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698