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_H_ | 5 #ifndef CHROME_COMMON_RENDER_MESSAGES_H_ |
6 #define CHROME_COMMON_RENDER_MESSAGES_H_ | 6 #define CHROME_COMMON_RENDER_MESSAGES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 443 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 int page_number; | 454 int page_number; |
455 | 455 |
456 // Shrink factor used to render this page. | 456 // Shrink factor used to render this page. |
457 double actual_shrink; | 457 double actual_shrink; |
458 | 458 |
459 // The size of the page the page author specified. | 459 // The size of the page the page author specified. |
460 gfx::Size page_size; | 460 gfx::Size page_size; |
461 | 461 |
462 // The printable area the page author specified. | 462 // The printable area the page author specified. |
463 gfx::Rect content_area; | 463 gfx::Rect content_area; |
| 464 |
| 465 // True if the page has visible overlays. |
| 466 bool has_visible_overlays; |
464 }; | 467 }; |
465 | 468 |
466 // Parameters for creating an audio output stream. | 469 // Parameters for creating an audio output stream. |
467 struct ViewHostMsg_Audio_CreateStream_Params { | 470 struct ViewHostMsg_Audio_CreateStream_Params { |
468 // Format request for the stream. | 471 // Format request for the stream. |
469 AudioManager::Format format; | 472 AudioManager::Format format; |
470 | 473 |
471 // Number of channels. | 474 // Number of channels. |
472 int channels; | 475 int channels; |
473 | 476 |
(...skipping 1103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1577 struct ParamTraits<ViewHostMsg_DidPrintPage_Params> { | 1580 struct ParamTraits<ViewHostMsg_DidPrintPage_Params> { |
1578 typedef ViewHostMsg_DidPrintPage_Params param_type; | 1581 typedef ViewHostMsg_DidPrintPage_Params param_type; |
1579 static void Write(Message* m, const param_type& p) { | 1582 static void Write(Message* m, const param_type& p) { |
1580 WriteParam(m, p.metafile_data_handle); | 1583 WriteParam(m, p.metafile_data_handle); |
1581 WriteParam(m, p.data_size); | 1584 WriteParam(m, p.data_size); |
1582 WriteParam(m, p.document_cookie); | 1585 WriteParam(m, p.document_cookie); |
1583 WriteParam(m, p.page_number); | 1586 WriteParam(m, p.page_number); |
1584 WriteParam(m, p.actual_shrink); | 1587 WriteParam(m, p.actual_shrink); |
1585 WriteParam(m, p.page_size); | 1588 WriteParam(m, p.page_size); |
1586 WriteParam(m, p.content_area); | 1589 WriteParam(m, p.content_area); |
| 1590 WriteParam(m, p.has_visible_overlays); |
1587 } | 1591 } |
1588 static bool Read(const Message* m, void** iter, param_type* p) { | 1592 static bool Read(const Message* m, void** iter, param_type* p) { |
1589 return ReadParam(m, iter, &p->metafile_data_handle) && | 1593 return ReadParam(m, iter, &p->metafile_data_handle) && |
1590 ReadParam(m, iter, &p->data_size) && | 1594 ReadParam(m, iter, &p->data_size) && |
1591 ReadParam(m, iter, &p->document_cookie) && | 1595 ReadParam(m, iter, &p->document_cookie) && |
1592 ReadParam(m, iter, &p->page_number) && | 1596 ReadParam(m, iter, &p->page_number) && |
1593 ReadParam(m, iter, &p->actual_shrink) && | 1597 ReadParam(m, iter, &p->actual_shrink) && |
1594 ReadParam(m, iter, &p->page_size) && | 1598 ReadParam(m, iter, &p->page_size) && |
1595 ReadParam(m, iter, &p->content_area); | 1599 ReadParam(m, iter, &p->content_area) && |
| 1600 ReadParam(m, iter, &p->has_visible_overlays); |
1596 } | 1601 } |
1597 static void Log(const param_type& p, std::wstring* l) { | 1602 static void Log(const param_type& p, std::wstring* l) { |
1598 l->append(L"<ViewHostMsg_DidPrintPage_Params>"); | 1603 l->append(L"<ViewHostMsg_DidPrintPage_Params>"); |
1599 } | 1604 } |
1600 }; | 1605 }; |
1601 | 1606 |
1602 // Traits for reading/writing CSS Colors | 1607 // Traits for reading/writing CSS Colors |
1603 template <> | 1608 template <> |
1604 struct ParamTraits<CSSColors::CSSColorName> { | 1609 struct ParamTraits<CSSColors::CSSColorName> { |
1605 typedef CSSColors::CSSColorName param_type; | 1610 typedef CSSColors::CSSColorName param_type; |
(...skipping 1244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2850 l->append(L")"); | 2855 l->append(L")"); |
2851 } | 2856 } |
2852 }; | 2857 }; |
2853 | 2858 |
2854 } // namespace IPC | 2859 } // namespace IPC |
2855 | 2860 |
2856 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" | 2861 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" |
2857 #include "ipc/ipc_message_macros.h" | 2862 #include "ipc/ipc_message_macros.h" |
2858 | 2863 |
2859 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ | 2864 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ |
OLD | NEW |