OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 559 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
570 | 570 |
571 // True if the page has visible overlays. | 571 // True if the page has visible overlays. |
572 bool has_visible_overlays; | 572 bool has_visible_overlays; |
573 }; | 573 }; |
574 | 574 |
575 // Parameters for creating an audio output stream. | 575 // Parameters for creating an audio output stream. |
576 struct ViewHostMsg_Audio_CreateStream_Params { | 576 struct ViewHostMsg_Audio_CreateStream_Params { |
577 ViewHostMsg_Audio_CreateStream_Params(); | 577 ViewHostMsg_Audio_CreateStream_Params(); |
578 ~ViewHostMsg_Audio_CreateStream_Params(); | 578 ~ViewHostMsg_Audio_CreateStream_Params(); |
579 | 579 |
580 // Format request for the stream. | 580 // Parameters for the new audio stream. |
| 581 // If |samples_per_packet| is set 0, the audio packet size is selected |
| 582 // automatically by the browser process. |
581 AudioParameters params; | 583 AudioParameters params; |
582 | |
583 // Number of bytes per packet. Determines the maximum number of bytes | |
584 // transported for each audio packet request. | |
585 // A value of 0 means that the audio packet size is selected automatically | |
586 // by the browser process. | |
587 uint32 packet_size; | |
588 }; | 584 }; |
589 | 585 |
590 // This message is used for supporting popup menus on Mac OS X using native | 586 // This message is used for supporting popup menus on Mac OS X using native |
591 // Cocoa controls. The renderer sends us this message which we use to populate | 587 // Cocoa controls. The renderer sends us this message which we use to populate |
592 // the popup menu. | 588 // the popup menu. |
593 struct ViewHostMsg_ShowPopup_Params { | 589 struct ViewHostMsg_ShowPopup_Params { |
594 ViewHostMsg_ShowPopup_Params(); | 590 ViewHostMsg_ShowPopup_Params(); |
595 ~ViewHostMsg_ShowPopup_Params(); | 591 ~ViewHostMsg_ShowPopup_Params(); |
596 | 592 |
597 // Position on the screen. | 593 // Position on the screen. |
(...skipping 728 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1326 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { | 1322 struct ParamTraits<ViewHostMsg_AccessibilityNotification_Params> { |
1327 typedef ViewHostMsg_AccessibilityNotification_Params param_type; | 1323 typedef ViewHostMsg_AccessibilityNotification_Params param_type; |
1328 static void Write(Message* m, const param_type& p); | 1324 static void Write(Message* m, const param_type& p); |
1329 static bool Read(const Message* m, void** iter, param_type* p); | 1325 static bool Read(const Message* m, void** iter, param_type* p); |
1330 static void Log(const param_type& p, std::string* l); | 1326 static void Log(const param_type& p, std::string* l); |
1331 }; | 1327 }; |
1332 | 1328 |
1333 } // namespace IPC | 1329 } // namespace IPC |
1334 | 1330 |
1335 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ | 1331 #endif // CHROME_COMMON_RENDER_MESSAGES_PARAMS_H_ |
OLD | NEW |