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

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

Issue 2804001: Mac: More pluming for OOP font loading (Closed)
Patch Set: Fix review comments Created 10 years, 6 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) 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 // This header is meant to be included in multiple passes, hence no traditional 5 // This header is meant to be included in multiple passes, hence no traditional
6 // header guard. 6 // header guard.
7 // See ipc_message_macros.h for explanation of the macros and passes. 7 // See ipc_message_macros.h for explanation of the macros and passes.
8 8
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 21 matching lines...) Expand all
32 #include "ipc/ipc_message_macros.h" 32 #include "ipc/ipc_message_macros.h"
33 #include "third_party/skia/include/core/SkBitmap.h" 33 #include "third_party/skia/include/core/SkBitmap.h"
34 #include "webkit/glue/dom_operations.h" 34 #include "webkit/glue/dom_operations.h"
35 #include "webkit/glue/form_field.h" 35 #include "webkit/glue/form_field.h"
36 #include "webkit/glue/webcursor.h" 36 #include "webkit/glue/webcursor.h"
37 37
38 #if defined(OS_POSIX) 38 #if defined(OS_POSIX)
39 #include "base/file_descriptor_posix.h" 39 #include "base/file_descriptor_posix.h"
40 #endif 40 #endif
41 41
42 #if defined(OS_MACOSX)
43 #include "chrome/common/font_descriptor_mac.h"
44 #endif
45
42 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes 46 // TODO(mpcomplete): rename ViewMsg and ViewHostMsg to something that makes
43 // more sense with our current design. 47 // more sense with our current design.
44 48
45 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need 49 // IPC_MESSAGE macros choke on extra , in the std::map, when expanding. We need
46 // to typedef it to avoid that. 50 // to typedef it to avoid that.
47 // Substitution map for l10n messages. 51 // Substitution map for l10n messages.
48 typedef std::map<std::string, std::string> SubstitutionMap; 52 typedef std::map<std::string, std::string> SubstitutionMap;
49 53
50 //----------------------------------------------------------------------------- 54 //-----------------------------------------------------------------------------
51 // RenderView messages 55 // RenderView messages
(...skipping 1374 matching lines...) Expand 10 before | Expand all | Expand 10 after
1426 Clipboard::Buffer /* buffer */, 1430 Clipboard::Buffer /* buffer */,
1427 std::string /* result */) 1431 std::string /* result */)
1428 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ClipboardReadHTML, 1432 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_ClipboardReadHTML,
1429 Clipboard::Buffer /* buffer */, 1433 Clipboard::Buffer /* buffer */,
1430 string16 /* markup */, 1434 string16 /* markup */,
1431 GURL /* url */) 1435 GURL /* url */)
1432 1436
1433 #if defined(OS_MACOSX) 1437 #if defined(OS_MACOSX)
1434 IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardFindPboardWriteStringAsync, 1438 IPC_MESSAGE_CONTROL1(ViewHostMsg_ClipboardFindPboardWriteStringAsync,
1435 string16 /* text */) 1439 string16 /* text */)
1440
1441 // Request that the browser load a font into shared memory for us.
1442 IPC_SYNC_MESSAGE_CONTROL1_2(ViewHostMsg_LoadFont,
agl 2010/06/15 14:10:15 Am I just being dumb, or is the implementation of
jeremy 2010/06/15 14:26:55 Due to the way the WebKit and Chrome code interact
1443 FontDescriptor /* font to load */,
1444 uint32 /* buffer size */,
1445 base::SharedMemoryHandle /* font data */)
1436 #endif 1446 #endif
1437 1447
1438 #if defined(OS_WIN) 1448 #if defined(OS_WIN)
1439 // Request that the given font be loaded by the browser so it's cached by the 1449 // Request that the given font be loaded by the browser so it's cached by the
1440 // OS. Please see ResourceMessageFilter::OnPreCacheFont for details. 1450 // OS. Please see ResourceMessageFilter::OnPreCacheFont for details.
1441 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont, 1451 IPC_SYNC_MESSAGE_CONTROL1_0(ViewHostMsg_PreCacheFont,
1442 LOGFONT /* font data */) 1452 LOGFONT /* font data */)
1443 #endif // defined(OS_WIN) 1453 #endif // defined(OS_WIN)
1444 1454
1445 // Returns WebScreenInfo corresponding to the view. 1455 // Returns WebScreenInfo corresponding to the view.
(...skipping 1038 matching lines...) Expand 10 before | Expand all | Expand 10 after
2484 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume, 2494 IPC_MESSAGE_CONTROL2(ViewHostMsg_Geolocation_Resume,
2485 int /* render_view_id */, 2495 int /* render_view_id */,
2486 int /* bridge_id */) 2496 int /* bridge_id */)
2487 2497
2488 // Send the tree of accessibility data to the browser, where it's cached 2498 // Send the tree of accessibility data to the browser, where it's cached
2489 // in order to respond to OS accessibility queries immediately. 2499 // in order to respond to OS accessibility queries immediately.
2490 IPC_MESSAGE_ROUTED1(ViewHostMsg_AccessibilityTree, 2500 IPC_MESSAGE_ROUTED1(ViewHostMsg_AccessibilityTree,
2491 webkit_glue::WebAccessibility) 2501 webkit_glue::WebAccessibility)
2492 2502
2493 IPC_END_MESSAGES(ViewHost) 2503 IPC_END_MESSAGES(ViewHost)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698