OLD | NEW |
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/memory/shared_memory.h" | 8 #include "base/memory/shared_memory.h" |
9 #include "base/process/process.h" | 9 #include "base/process/process.h" |
10 #include "base/strings/string16.h" | 10 #include "base/strings/string16.h" |
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1437 bool /* user_gesture */) | 1437 bool /* user_gesture */) |
1438 | 1438 |
1439 // Unregister the registered handler for URL requests with the given scheme. | 1439 // Unregister the registered handler for URL requests with the given scheme. |
1440 IPC_MESSAGE_ROUTED3(ViewHostMsg_UnregisterProtocolHandler, | 1440 IPC_MESSAGE_ROUTED3(ViewHostMsg_UnregisterProtocolHandler, |
1441 std::string /* scheme */, | 1441 std::string /* scheme */, |
1442 GURL /* url */, | 1442 GURL /* url */, |
1443 bool /* user_gesture */) | 1443 bool /* user_gesture */) |
1444 | 1444 |
1445 // Puts the browser into "tab fullscreen" mode for the sending renderer. | 1445 // Puts the browser into "tab fullscreen" mode for the sending renderer. |
1446 // See the comment in chrome/browser/ui/browser.h for more details. | 1446 // See the comment in chrome/browser/ui/browser.h for more details. |
1447 IPC_MESSAGE_ROUTED1(ViewHostMsg_ToggleFullscreen, | 1447 IPC_MESSAGE_ROUTED2(ViewHostMsg_ToggleFullscreen, |
1448 bool /* enter_fullscreen */) | 1448 bool /* enter_fullscreen */, |
| 1449 bool /* is_video */) |
1449 | 1450 |
1450 // Send back a string to be recorded by UserMetrics. | 1451 // Send back a string to be recorded by UserMetrics. |
1451 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, | 1452 IPC_MESSAGE_CONTROL1(ViewHostMsg_UserMetricsRecordAction, |
1452 std::string /* action */) | 1453 std::string /* action */) |
1453 | 1454 |
1454 // Notifies the browser that the page was or was not saved as MHTML. | 1455 // Notifies the browser that the page was or was not saved as MHTML. |
1455 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, | 1456 IPC_MESSAGE_CONTROL2(ViewHostMsg_SavedPageAsMHTML, |
1456 int /* job_id */, | 1457 int /* job_id */, |
1457 int64 /* size of the MHTML file, -1 if error */) | 1458 int64 /* size of the MHTML file, -1 if error */) |
1458 | 1459 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1588 // to be be delivered until the notification is disabled. | 1589 // to be be delivered until the notification is disabled. |
1589 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, | 1590 IPC_MESSAGE_ROUTED1(ViewHostMsg_SetNeedsBeginFrame, |
1590 bool /* enabled */) | 1591 bool /* enabled */) |
1591 | 1592 |
1592 // Reply to the ViewMsg_ExtractSmartClipData message. | 1593 // Reply to the ViewMsg_ExtractSmartClipData message. |
1593 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, | 1594 IPC_MESSAGE_ROUTED3(ViewHostMsg_SmartClipDataExtracted, |
1594 base::string16 /* text */, | 1595 base::string16 /* text */, |
1595 base::string16 /* html */, | 1596 base::string16 /* html */, |
1596 gfx::Rect /* rect */) | 1597 gfx::Rect /* rect */) |
1597 | 1598 |
1598 // Messages sent from the renderer to the browser after the page has been | |
1599 // bound into / out of fullscreen. | |
1600 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidEnterFullscreen) | |
1601 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidExitFullscreen) | |
1602 | |
1603 #elif defined(OS_MACOSX) | 1599 #elif defined(OS_MACOSX) |
1604 // Request that the browser load a font into shared memory for us. | 1600 // Request that the browser load a font into shared memory for us. |
1605 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 1601 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
1606 FontDescriptor /* font to load */, | 1602 FontDescriptor /* font to load */, |
1607 uint32 /* buffer size */, | 1603 uint32 /* buffer size */, |
1608 base::SharedMemoryHandle /* font data */, | 1604 base::SharedMemoryHandle /* font data */, |
1609 uint32 /* font id */) | 1605 uint32 /* font id */) |
1610 | 1606 |
1611 // Informs the browser that a plugin has gained or lost focus. | 1607 // Informs the browser that a plugin has gained or lost focus. |
1612 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, | 1608 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1645 // Since the browser keeps handles to the allocated transport DIBs, this | 1641 // Since the browser keeps handles to the allocated transport DIBs, this |
1646 // message is sent to tell the browser that it may release them when the | 1642 // message is sent to tell the browser that it may release them when the |
1647 // renderer is finished with them. | 1643 // renderer is finished with them. |
1648 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, | 1644 IPC_MESSAGE_CONTROL1(ViewHostMsg_FreeTransportDIB, |
1649 TransportDIB::Id /* DIB id */) | 1645 TransportDIB::Id /* DIB id */) |
1650 #endif | 1646 #endif |
1651 | 1647 |
1652 // Adding a new message? Stick to the sort order above: first platform | 1648 // Adding a new message? Stick to the sort order above: first platform |
1653 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1649 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1654 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1650 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |