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

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

Issue 11399002: Implemented GetWindowSnapshot on RenderViewImpl (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed aura snapshot circular dependency Created 8 years 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/string16.h" 10 #include "base/string16.h"
(...skipping 1427 matching lines...) Expand 10 before | Expand all | Expand 10 after
1438 // External popup menus. 1438 // External popup menus.
1439 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem, 1439 IPC_MESSAGE_ROUTED1(ViewMsg_SelectPopupMenuItem,
1440 int /* selected index, -1 means no selection */) 1440 int /* selected index, -1 means no selection */)
1441 #endif 1441 #endif
1442 1442
1443 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer 1443 // An acknowledge to ViewHostMsg_MultipleTargetsTouched to notify the renderer
1444 // process to release the magnified image. 1444 // process to release the magnified image.
1445 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB, 1445 IPC_MESSAGE_ROUTED1(ViewMsg_ReleaseDisambiguationPopupDIB,
1446 TransportDIB::Handle /* DIB handle */) 1446 TransportDIB::Handle /* DIB handle */)
1447 1447
1448 // Notifies the renderer that a snapshot has been retrieved.
1449 IPC_MESSAGE_ROUTED3(ViewMsg_WindowSnapshotCompleted,
1450 int /* snapshot_id */,
1451 gfx::Size /* size */,
1452 std::vector<unsigned char> /* png */)
1453
1448 // ----------------------------------------------------------------------------- 1454 // -----------------------------------------------------------------------------
1449 // Messages sent from the renderer to the browser. 1455 // Messages sent from the renderer to the browser.
1450 1456
1451 // Sent by the renderer when it is creating a new window. The browser creates 1457 // Sent by the renderer when it is creating a new window. The browser creates
1452 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is 1458 // a tab for it and responds with a ViewMsg_CreatingNew_ACK. If route_id is
1453 // MSG_ROUTING_NONE, the view couldn't be created. 1459 // MSG_ROUTING_NONE, the view couldn't be created.
1454 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow, 1460 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_CreateWindow,
1455 ViewHostMsg_CreateWindow_Params, 1461 ViewHostMsg_CreateWindow_Params,
1456 int /* route_id */, 1462 int /* route_id */,
1457 int32 /* surface_id */, 1463 int32 /* surface_id */,
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1933 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, 1939 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers,
1934 bool /* has_handlers */) 1940 bool /* has_handlers */)
1935 1941
1936 // A message from HTML-based UI. When (trusted) Javascript calls 1942 // A message from HTML-based UI. When (trusted) Javascript calls
1937 // send(message, args), this message is sent to the browser. 1943 // send(message, args), this message is sent to the browser.
1938 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, 1944 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend,
1939 GURL /* source_url */, 1945 GURL /* source_url */,
1940 std::string /* message */, 1946 std::string /* message */,
1941 base::ListValue /* args */) 1947 base::ListValue /* args */)
1942 1948
1949 // Requests a snapshot of the given window.
1950 IPC_MESSAGE_ROUTED1(ViewHostMsg_GetWindowSnapshot,
1951 int /* message id */)
Ken Russell (switch to Gerrit) 2012/11/30 22:32:54 For clarity, change "message id" to "snapshot_id".
1952
1943 // A renderer sends this to the browser process when it wants to create a ppapi 1953 // A renderer sends this to the browser process when it wants to create a ppapi
1944 // plugin. The browser will create the plugin process if necessary, and will 1954 // plugin. The browser will create the plugin process if necessary, and will
1945 // return a handle to the channel on success. 1955 // return a handle to the channel on success.
1946 // 1956 //
1947 // The plugin_child_id is the ChildProcessHost ID assigned in the browser 1957 // The plugin_child_id is the ChildProcessHost ID assigned in the browser
1948 // process. This ID is valid only in the context of the browser process and is 1958 // process. This ID is valid only in the context of the browser process and is
1949 // used to identify the proper process when the renderer notifies it that the 1959 // used to identify the proper process when the renderer notifies it that the
1950 // plugin is hung. 1960 // plugin is hung.
1951 // 1961 //
1952 // On error an empty string and null handles are returned. 1962 // On error an empty string and null handles are returned.
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after
2432 int /* arb_robustness_status_code */) 2442 int /* arb_robustness_status_code */)
2433 2443
2434 #if defined(OS_WIN) 2444 #if defined(OS_WIN)
2435 // Request that the given font characters be loaded by the browser so it's 2445 // Request that the given font characters be loaded by the browser so it's
2436 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters 2446 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters
2437 // for details. 2447 // for details.
2438 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, 2448 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters,
2439 LOGFONT /* font_data */, 2449 LOGFONT /* font_data */,
2440 string16 /* characters */) 2450 string16 /* characters */)
2441 #endif 2451 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698