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 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
814 // page_ids >= |minimum_page_id| in the new tab are appended to the history. | 814 // page_ids >= |minimum_page_id| in the new tab are appended to the history. |
815 // | 815 // |
816 // For example, suppose the history of page_ids in the new tab's RenderView | 816 // For example, suppose the history of page_ids in the new tab's RenderView |
817 // is [4 7 8]. This is merged into an existing tab with 3 history items, and | 817 // is [4 7 8]. This is merged into an existing tab with 3 history items, and |
818 // all pages in the new tab with page_id >= 7 are to be preserved. | 818 // all pages in the new tab with page_id >= 7 are to be preserved. |
819 // The resulting page history is [-1 -1 -1 7 8]. | 819 // The resulting page history is [-1 -1 -1 7 8]. |
820 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, | 820 IPC_MESSAGE_ROUTED2(ViewMsg_SetHistoryLengthAndPrune, |
821 int, /* merge_history_length */ | 821 int, /* merge_history_length */ |
822 int32 /* minimum_page_id */) | 822 int32 /* minimum_page_id */) |
823 | 823 |
824 // Tells the renderer the browser's notion of its process ID. | |
825 // Some subsystems, like LatencyInfo, require this to be known to the renderer. | |
826 IPC_MESSAGE_CONTROL1(ViewMsg_SetRendererProcessID, | |
827 base::ProcessId /* process_id */) | |
828 | |
829 // Tells the renderer to create a new view. | 824 // Tells the renderer to create a new view. |
830 // This message is slightly different, the view it takes (via | 825 // This message is slightly different, the view it takes (via |
831 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | 826 // ViewMsg_New_Params) is the view to create, the message itself is sent as a |
832 // non-view control message. | 827 // non-view control message. |
833 IPC_MESSAGE_CONTROL1(ViewMsg_New, | 828 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
834 ViewMsg_New_Params) | 829 ViewMsg_New_Params) |
835 | 830 |
836 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. | 831 // Reply in response to ViewHostMsg_ShowView or ViewHostMsg_ShowWidget. |
837 // similar to the new command, but used when the renderer created a view | 832 // similar to the new command, but used when the renderer created a view |
838 // first, and we need to update it. | 833 // first, and we need to update it. |
(...skipping 1492 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2331 // synchronously (see crbug.com/120597). This IPC message sends the character | 2326 // synchronously (see crbug.com/120597). This IPC message sends the character |
2332 // bounds after every composition change to always have correct bound info. | 2327 // bounds after every composition change to always have correct bound info. |
2333 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, | 2328 IPC_MESSAGE_ROUTED2(ViewHostMsg_ImeCompositionRangeChanged, |
2334 gfx::Range /* composition range */, | 2329 gfx::Range /* composition range */, |
2335 std::vector<gfx::Rect> /* character bounds */) | 2330 std::vector<gfx::Rect> /* character bounds */) |
2336 #endif | 2331 #endif |
2337 | 2332 |
2338 // Adding a new message? Stick to the sort order above: first platform | 2333 // Adding a new message? Stick to the sort order above: first platform |
2339 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform | 2334 // independent ViewMsg, then ifdefs for platform specific ViewMsg, then platform |
2340 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. | 2335 // independent ViewHostMsg, then ifdefs for platform specific ViewHostMsg. |
OLD | NEW |