| 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 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 686 | 686 |
| 687 // The properties of the screen associated with the view. | 687 // The properties of the screen associated with the view. |
| 688 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) | 688 IPC_STRUCT_MEMBER(WebKit::WebScreenInfo, screen_info) |
| 689 | 689 |
| 690 // The accessibility mode of the renderer. | 690 // The accessibility mode of the renderer. |
| 691 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) | 691 IPC_STRUCT_MEMBER(AccessibilityMode, accessibility_mode) |
| 692 IPC_STRUCT_END() | 692 IPC_STRUCT_END() |
| 693 | 693 |
| 694 // Messages sent from the browser to the renderer. | 694 // Messages sent from the browser to the renderer. |
| 695 | 695 |
| 696 // Set the top-level frame to the provided name. |
| 697 IPC_MESSAGE_ROUTED1(ViewMsg_SetName, |
| 698 std::string /* frame_name */) |
| 699 |
| 696 // Sent to the RenderView when a new tab is swapped into an existing | 700 // Sent to the RenderView when a new tab is swapped into an existing |
| 697 // tab and the histories need to be merged. The existing tab has a history of | 701 // tab and the histories need to be merged. The existing tab has a history of |
| 698 // |merged_history_length| which precedes the history of the new tab. All | 702 // |merged_history_length| which precedes the history of the new tab. All |
| 699 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 703 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
| 700 // | 704 // |
| 701 // For example, suppose the history of page_ids in the new tab's RenderView | 705 // For example, suppose the history of page_ids in the new tab's RenderView |
| 702 // is [4 7 8]. This is merged into an existing tab with 3 history items, and | 706 // is [4 7 8]. This is merged into an existing tab with 3 history items, and |
| 703 // all pages in the new tab with page_id >= 7 are to be preserved. | 707 // all pages in the new tab with page_id >= 7 are to be preserved. |
| 704 // The resulting page history is [-1 -1 -1 7 8]. | 708 // The resulting page history is [-1 -1 -1 7 8]. |
| 705 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, | 709 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, |
| (...skipping 1336 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2042 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, | 2046 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateZoomLimits, |
| 2043 int /* minimum_percent */, | 2047 int /* minimum_percent */, |
| 2044 int /* maximum_percent */, | 2048 int /* maximum_percent */, |
| 2045 bool /* remember */) | 2049 bool /* remember */) |
| 2046 | 2050 |
| 2047 // Notify the browser that this render process can or can't be suddenly | 2051 // Notify the browser that this render process can or can't be suddenly |
| 2048 // terminated. | 2052 // terminated. |
| 2049 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, | 2053 IPC_MESSAGE_CONTROL1(ViewHostMsg_SuddenTerminationChanged, |
| 2050 bool /* enabled */) | 2054 bool /* enabled */) |
| 2051 | 2055 |
| 2056 // Informs the browser of updated frame names. |
| 2057 IPC_MESSAGE_ROUTED3(ViewHostMsg_UpdateFrameName, |
| 2058 int /* frame_id */, |
| 2059 bool /* is_top_level */, |
| 2060 std::string /* name */) |
| 2061 |
| 2052 #if defined(OS_MACOSX) | 2062 #if defined(OS_MACOSX) |
| 2053 // Request that the browser load a font into shared memory for us. | 2063 // Request that the browser load a font into shared memory for us. |
| 2054 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, | 2064 IPC_SYNC_MESSAGE_CONTROL1_3(ViewHostMsg_LoadFont, |
| 2055 FontDescriptor /* font to load */, | 2065 FontDescriptor /* font to load */, |
| 2056 uint32 /* buffer size */, | 2066 uint32 /* buffer size */, |
| 2057 base::SharedMemoryHandle /* font data */, | 2067 base::SharedMemoryHandle /* font data */, |
| 2058 uint32 /* font id */) | 2068 uint32 /* font id */) |
| 2059 | 2069 |
| 2060 // On OSX, we cannot allocated shared memory from within the sandbox, so | 2070 // On OSX, we cannot allocated shared memory from within the sandbox, so |
| 2061 // this call exists for the renderer to ask the browser to allocate memory | 2071 // this call exists for the renderer to ask the browser to allocate memory |
| (...skipping 290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2352 int /* arb_robustness_status_code */) | 2362 int /* arb_robustness_status_code */) |
| 2353 | 2363 |
| 2354 #if defined(OS_WIN) | 2364 #if defined(OS_WIN) |
| 2355 // Request that the given font characters be loaded by the browser so it's | 2365 // Request that the given font characters be loaded by the browser so it's |
| 2356 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters | 2366 // cached by the OS. Please see RenderMessageFilter::OnPreCacheFontCharacters |
| 2357 // for details. | 2367 // for details. |
| 2358 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, | 2368 IPC_SYNC_MESSAGE_CONTROL2_0(ViewHostMsg_PreCacheFontCharacters, |
| 2359 LOGFONT /* font_data */, | 2369 LOGFONT /* font_data */, |
| 2360 string16 /* characters */) | 2370 string16 /* characters */) |
| 2361 #endif | 2371 #endif |
| OLD | NEW |