Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(209)

Side by Side Diff: chrome/common/render_messages.h

Issue 155787: Make Linux pass users' font settings through to renderer. (Closed)
Patch Set: remove unneeded include Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 #include <map> 10 #include <map>
(...skipping 1453 matching lines...) Expand 10 before | Expand all | Expand 10 after
1464 l->append(L"<ViewHostMsg_DidPrintPage_Params>"); 1464 l->append(L"<ViewHostMsg_DidPrintPage_Params>");
1465 } 1465 }
1466 }; 1466 };
1467 1467
1468 // Traits for RendererPreferences structure to pack/unpack. 1468 // Traits for RendererPreferences structure to pack/unpack.
1469 template <> 1469 template <>
1470 struct ParamTraits<RendererPreferences> { 1470 struct ParamTraits<RendererPreferences> {
1471 typedef RendererPreferences param_type; 1471 typedef RendererPreferences param_type;
1472 static void Write(Message* m, const param_type& p) { 1472 static void Write(Message* m, const param_type& p) {
1473 WriteParam(m, p.can_accept_load_drops); 1473 WriteParam(m, p.can_accept_load_drops);
1474 WriteParam(m, p.should_antialias_text);
1475 WriteParam(m, static_cast<int>(p.hinting));
1476 WriteParam(m, static_cast<int>(p.subpixel_rendering));
1474 } 1477 }
1475 static bool Read(const Message* m, void** iter, param_type* p) { 1478 static bool Read(const Message* m, void** iter, param_type* p) {
1476 return ReadParam(m, iter, &p->can_accept_load_drops); 1479 if (!ReadParam(m, iter, &p->can_accept_load_drops))
1480 return false;
1481 if (!ReadParam(m, iter, &p->should_antialias_text))
1482 return false;
1483
1484 int hinting = 0;
1485 if (!ReadParam(m, iter, &hinting))
1486 return false;
1487 p->hinting = static_cast<RendererPreferencesHintingEnum>(hinting);
1488
1489 int subpixel_rendering = 0;
1490 if (!ReadParam(m, iter, &subpixel_rendering))
1491 return false;
1492 p->subpixel_rendering =
1493 static_cast<RendererPreferencesSubpixelRenderingEnum>(
1494 subpixel_rendering);
1495
1496 return true;
1477 } 1497 }
1478 static void Log(const param_type& p, std::wstring* l) { 1498 static void Log(const param_type& p, std::wstring* l) {
1479 l->append(L"<RendererPreferences>"); 1499 l->append(L"<RendererPreferences>");
1480 } 1500 }
1481 }; 1501 };
1482 1502
1483 // Traits for WebPreferences structure to pack/unpack. 1503 // Traits for WebPreferences structure to pack/unpack.
1484 template <> 1504 template <>
1485 struct ParamTraits<WebPreferences> { 1505 struct ParamTraits<WebPreferences> {
1486 typedef WebPreferences param_type; 1506 typedef WebPreferences param_type;
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
1905 }; 1925 };
1906 1926
1907 1927
1908 } // namespace IPC 1928 } // namespace IPC
1909 1929
1910 1930
1911 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h" 1931 #define MESSAGES_INTERNAL_FILE "chrome/common/render_messages_internal.h"
1912 #include "chrome/common/ipc_message_macros.h" 1932 #include "chrome/common/ipc_message_macros.h"
1913 1933
1914 #endif // CHROME_COMMON_RENDER_MESSAGES_H_ 1934 #endif // CHROME_COMMON_RENDER_MESSAGES_H_
OLDNEW
« no previous file with comments | « chrome/browser/tab_contents/tab_contents_view_gtk.cc ('k') | chrome/common/renderer_preferences.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698