Chromium Code Reviews| 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 "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 685 uint32 /* buffer_size */) | 685 uint32 /* buffer_size */) |
| 686 | 686 |
| 687 // Asks the browser for the default audio input hardware sample-rate. | 687 // Asks the browser for the default audio input hardware sample-rate. |
| 688 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputSampleRate, | 688 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputSampleRate, |
| 689 double /* sample_rate */) | 689 double /* sample_rate */) |
| 690 | 690 |
| 691 // Asks the browser for the default audio hardware sample-rate. | 691 // Asks the browser for the default audio hardware sample-rate. |
| 692 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareSampleRate, | 692 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareSampleRate, |
| 693 double /* sample_rate */) | 693 double /* sample_rate */) |
| 694 | 694 |
| 695 // Asks the browser for the default number of audio input channels. | |
| 696 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetHardwareInputChannelCount, | |
| 697 size_t /* channels */) | |
|
jam
2012/01/18 18:44:38
we avoid size_t in IPC messages by convention, bec
henrika (OOO until Aug 14)
2012/01/19 09:42:24
I will change to int instead.
| |
| 698 | |
| 695 // Asks the browser for CPU usage of the renderer process in percents. | 699 // Asks the browser for CPU usage of the renderer process in percents. |
| 696 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, | 700 IPC_SYNC_MESSAGE_CONTROL0_1(ViewHostMsg_GetCPUUsage, |
| 697 int /* CPU usage in percents */) | 701 int /* CPU usage in percents */) |
| 698 | 702 |
| 699 // Tells the renderer to create a new view. | 703 // Tells the renderer to create a new view. |
| 700 // This message is slightly different, the view it takes (via | 704 // This message is slightly different, the view it takes (via |
| 701 // ViewMsg_New_Params) is the view to create, the message itself is sent as a | 705 // ViewMsg_New_Params) is the view to create, the message itself is sent as a |
| 702 // non-view control message. | 706 // non-view control message. |
| 703 IPC_MESSAGE_CONTROL1(ViewMsg_New, | 707 IPC_MESSAGE_CONTROL1(ViewMsg_New, |
| 704 ViewMsg_New_Params) | 708 ViewMsg_New_Params) |
| (...skipping 1270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1975 media::MediaLogEvent /* event */) | 1979 media::MediaLogEvent /* event */) |
| 1976 | 1980 |
| 1977 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message | 1981 // Requests to lock the mouse. Will result in a ViewMsg_LockMouse_ACK message |
| 1978 // being sent back. | 1982 // being sent back. |
| 1979 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) | 1983 IPC_MESSAGE_ROUTED0(ViewHostMsg_LockMouse) |
| 1980 | 1984 |
| 1981 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent | 1985 // Requests to unlock the mouse. A ViewMsg_MouseLockLost message will be sent |
| 1982 // whenever the mouse is unlocked (which may or may not be caused by | 1986 // whenever the mouse is unlocked (which may or may not be caused by |
| 1983 // ViewHostMsg_UnlockMouse). | 1987 // ViewHostMsg_UnlockMouse). |
| 1984 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) | 1988 IPC_MESSAGE_ROUTED0(ViewHostMsg_UnlockMouse) |
| OLD | NEW |