| 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/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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 | 792 |
| 793 // The properties of the screen associated with the view. | 793 // The properties of the screen associated with the view. |
| 794 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) | 794 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) |
| 795 | 795 |
| 796 // The accessibility mode of the renderer. | 796 // The accessibility mode of the renderer. |
| 797 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) | 797 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) |
| 798 IPC_STRUCT_END() | 798 IPC_STRUCT_END() |
| 799 | 799 |
| 800 // Messages sent from the browser to the renderer. | 800 // Messages sent from the browser to the renderer. |
| 801 | 801 |
| 802 // Set the top-level frame to the provided name. |
| 803 IPC_MESSAGE_ROUTED1(ViewMsg_SetName, |
| 804 std::string /* frame_name */) |
| 805 |
| 802 // Sent to the RenderView when a new tab is swapped into an existing | 806 // Sent to the RenderView when a new tab is swapped into an existing |
| 803 // tab and the histories need to be merged. The existing tab has a history of | 807 // tab and the histories need to be merged. The existing tab has a history of |
| 804 // |merged_history_length| which precedes the history of the new tab. All | 808 // |merged_history_length| which precedes the history of the new tab. All |
| 805 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 809 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
| 806 // | 810 // |
| 807 // For example, suppose the history of page_ids in the new tab's RenderView | 811 // For example, suppose the history of page_ids in the new tab's RenderView |
| 808 // is [4 7 8]. This is merged into an existing tab with 3 history items, and | 812 // is [4 7 8]. This is merged into an existing tab with 3 history items, and |
| 809 // all pages in the new tab with page_id >= 7 are to be preserved. | 813 // all pages in the new tab with page_id >= 7 are to be preserved. |
| 810 // The resulting page history is [-1 -1 -1 7 8]. | 814 // The resulting page history is [-1 -1 -1 7 8]. |
| 811 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, | 815 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, |
| (...skipping 1324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2136 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 2140 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
| 2137 int /* minimum_percent */, | 2141 int /* minimum_percent */, |
| 2138 int /* maximum_percent */, | 2142 int /* maximum_percent */, |
| 2139 bool /* remember */) | 2143 bool /* remember */) |
| 2140 | 2144 |
| 2141 // Notify the browser that this render process can or can't be suddenly | 2145 // Notify the browser that this render process can or can't be suddenly |
| 2142 // terminated. | 2146 // terminated. |
| 2143 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 2147 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 2144 bool /* enabled */) | 2148 bool /* enabled */) |
| 2145 | 2149 |
| 2150 // Informs the browser of updated frame names. |
| 2151 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, |
| 2152 int /* frame_id */, |
| 2153 bool /* is_top_level */, |
| 2154 std::string /* name */) |
| 2155 |
| 2146 #if defined(OS_MACOSX) | 2156 #if defined(OS_MACOSX) |
| 2147 // Request that the browser load a font into shared memory for us. | 2157 // Request that the browser load a font into shared memory for us. |
| 2148 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 2158 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
| 2149 FontDescriptor /* font to load */, | 2159 FontDescriptor /* font to load */, |
| 2150 uint32 /* buffer size */, | 2160 uint32 /* buffer size */, |
| 2151 base::SharedMemoryHandle /* font data */, | 2161 base::SharedMemoryHandle /* font data */, |
| 2152 uint32 /* font id */) | 2162 uint32 /* font id */) |
| 2153 | 2163 |
| 2154 // On OSX, we cannot allocated shared memory from within the sandbox, so | 2164 // On OSX, we cannot allocated shared memory from within the sandbox, so |
| 2155 // this call exists for the renderer to ask the browser to allocate memory | 2165 // this call exists for the renderer to ask the browser to allocate memory |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2441 int /* arb_robustness_status_code */) | 2451 int /* arb_robustness_status_code */) |
| 2442 | 2452 |
| 2443 #if defined(OS_WIN) | 2453 #if defined(OS_WIN) |
| 2444 // Request that the given font characters be loaded by the browser so it's | 2454 // Request that the given font characters be loaded by the browser so it's |
| 2445 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2455 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 2446 // for details. | 2456 // for details. |
| 2447 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2457 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 2448 LOGFONT /* font_data */, | 2458 LOGFONT /* font_data */, |
| 2449 string16 /* characters */) | 2459 string16 /* characters */) |
| 2450 #endif | 2460 #endif |
| OLD | NEW |