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 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1281 // Notifies that the preferred size of the content changed. | 1281 // Notifies that the preferred size of the content changed. |
1282 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, | 1282 IPC_MESSAGE_ROUTED1(ViewHostMsg_DidContentsPreferredSizeChange, |
1283 gfx::Size /* pref_size */) | 1283 gfx::Size /* pref_size */) |
1284 | 1284 |
1285 // Notifies that the scroll offset changed. | 1285 // Notifies that the scroll offset changed. |
1286 // This is different from ViewHostMsg_UpdateRect in that ViewHostMsg_UpdateRect | 1286 // This is different from ViewHostMsg_UpdateRect in that ViewHostMsg_UpdateRect |
1287 // is not sent at all when threaded compositing is enabled while | 1287 // is not sent at all when threaded compositing is enabled while |
1288 // ViewHostMsg_DidChangeScrollOffset works properly in this case. | 1288 // ViewHostMsg_DidChangeScrollOffset works properly in this case. |
1289 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidChangeScrollOffset) | 1289 IPC_MESSAGE_ROUTED0(ViewHostMsg_DidChangeScrollOffset) |
1290 | 1290 |
1291 // Notifies that the pinned-to-side state of the content changed. | |
1292 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollOffsetPinningForMainFrame, | |
1293 bool /* pinned_to_left */, | |
1294 bool /* pinned_to_right */) | |
1295 | |
1296 // Notifies whether there are JavaScript touch event handlers or not. | 1291 // Notifies whether there are JavaScript touch event handlers or not. |
1297 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, | 1292 IPC_MESSAGE_ROUTED1(ViewHostMsg_HasTouchEventHandlers, |
1298 bool /* has_handlers */) | 1293 bool /* has_handlers */) |
1299 | 1294 |
1300 // A message from HTML-based UI. When (trusted) Javascript calls | 1295 // A message from HTML-based UI. When (trusted) Javascript calls |
1301 // send(message, args), this message is sent to the browser. | 1296 // send(message, args), this message is sent to the browser. |
1302 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, | 1297 IPC_MESSAGE_ROUTED3(ViewHostMsg_WebUISend, |
1303 GURL /* source_url */, | 1298 GURL /* source_url */, |
1304 std::string /* message */, | 1299 std::string /* message */, |
1305 base::ListValue /* args */) | 1300 base::ListValue /* args */) |
(...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1678 uint32 /* font id */) | 1673 uint32 /* font id */) |
1679 | 1674 |
1680 // Informs the browser that a plugin has gained or lost focus. | 1675 // Informs the browser that a plugin has gained or lost focus. |
1681 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, | 1676 IPC_MESSAGE_ROUTED2(ViewHostMsg_PluginFocusChanged, |
1682 bool, /* focused */ | 1677 bool, /* focused */ |
1683 int /* plugin_id */) | 1678 int /* plugin_id */) |
1684 | 1679 |
1685 // Instructs the browser to start plugin IME. | 1680 // Instructs the browser to start plugin IME. |
1686 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) | 1681 IPC_MESSAGE_ROUTED0(ViewHostMsg_StartPluginIme) |
1687 | 1682 |
1688 // Notifies that the scrollbars-visible state of the content changed. | |
1689 IPC_MESSAGE_ROUTED2(ViewHostMsg_DidChangeScrollbarsForMainFrame, | |
1690 bool /* has_horizontal_scrollbar */, | |
1691 bool /* has_vertical_scrollbar */) | |
1692 | |
1693 #elif defined(OS_WIN) | 1683 #elif defined(OS_WIN) |
1694 // Request that the given font characters be loaded by the browser so it's | 1684 // Request that the given font characters be loaded by the browser so it's |
1695 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 1685 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
1696 // for details. | 1686 // for details. |
1697 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 1687 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
1698 LOGFONT /* font_data */, | 1688 LOGFONT /* font_data */, |
1699 base::string16 /* characters */) | 1689 base::string16 /* characters */) |
1700 #endif | 1690 #endif |
1701 | 1691 |
1702 #if defined(OS_POSIX) | 1692 #if defined(OS_POSIX) |
(...skipping 22 matching lines...) Expand all Loading... |
1725 // synchronously (see crbug.com/120597). This IPC message sends the character | 1715 // synchronously (see crbug.com/120597). This IPC message sends the character |
1726 // bounds after every composition change to always have correct bound info. | 1716 // bounds after every composition change to always have correct bound info. |
1727 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 1717 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
1728 gfx::Range /* composition range */, | 1718 gfx::Range /* composition range */, |
1729 std::vector<gfx::Rect> /* character bounds */) | 1719 std::vector<gfx::Rect> /* character bounds */) |
1730 #endif | 1720 #endif |
1731 | 1721 |
1732 // Adding a new message? Stick to the sort order above: first platform | 1722 // Adding a new message? Stick to the sort order above: first platform |
1733 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 1723 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
1734 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 1724 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |