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

Side by Side Diff: content/common/content_message_generator.cc

Issue 9620018: fix win_aura (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // Get basic type definitions. 5 // Get basic type definitions.
6 #define IPC_MESSAGE_IMPL 6 #define IPC_MESSAGE_IMPL
7 #include "content/common/content_message_generator.h" 7 #include "content/common/content_message_generator.h"
8 8
9 // Generate constructors. 9 // Generate constructors.
10 #include "ipc/struct_constructor_macros.h" 10 #include "ipc/struct_constructor_macros.h"
11 #include "content/common/content_message_generator.h" 11 #include "content/common/content_message_generator.h"
12 12
13 // Generate destructors. 13 // Generate destructors.
14 #include "ipc/struct_destructor_macros.h" 14 #include "ipc/struct_destructor_macros.h"
15 #include "content/common/content_message_generator.h" 15 #include "content/common/content_message_generator.h"
16 16
17 #if defined(USE_AURA) && defined(OS_WIN) 17 #if defined(USE_AURA) && defined(OS_WIN)
18 #include "ui/gfx/native_widget_types.h" 18 #include "ui/gfx/native_widget_types.h"
19 19
20 namespace IPC { 20 namespace IPC {
21 // TODO(beng): Figure out why this is needed, fix that issue and remove 21 // TODO(beng): Figure out why this is needed, fix that issue and remove
22 // this. Brett and I were unable to figure out why, but he 22 // this. Brett and I were unable to figure out why, but he
23 // thought this should be harmless. 23 // thought this should be harmless.
24 template <> 24 template <>
25 struct ParamTraits<gfx::PluginWindowHandle> { 25 struct ParamTraits<gfx::PluginWindowHandle> {
26 typedef gfx::PluginWindowHandle param_type; 26 typedef gfx::PluginWindowHandle param_type;
27 static void Write(Message* m, const param_type& p) { 27 static void Write(Message* m, const param_type& p) {
28 m->WriteUInt32(reinterpret_cast<uint32>(p)); 28 m->WriteUInt32(reinterpret_cast<uint32>(p));
29 } 29 }
30 static bool Read(const Message* m, void** iter, param_type* r) { 30 static bool Read(const Message* m, PickleIterator* iter, param_type* r) {
31 DCHECK_EQ(sizeof(param_type), sizeof(uint32)); 31 DCHECK_EQ(sizeof(param_type), sizeof(uint32));
32 return m->ReadUInt32(iter, reinterpret_cast<uint32*>(r)); 32 return m->ReadUInt32(iter, reinterpret_cast<uint32*>(r));
33 } 33 }
34 static void Log(const param_type& p, std::string* l) { 34 static void Log(const param_type& p, std::string* l) {
35 l->append(StringPrintf("0x%X", p)); 35 l->append(StringPrintf("0x%X", p));
36 } 36 }
37 }; 37 };
38 } // namespace IPC 38 } // namespace IPC
39 #endif 39 #endif
40 40
41 // Generate param traits write methods. 41 // Generate param traits write methods.
42 #include "ipc/param_traits_write_macros.h" 42 #include "ipc/param_traits_write_macros.h"
43 namespace IPC { 43 namespace IPC {
44 #include "content/common/content_message_generator.h" 44 #include "content/common/content_message_generator.h"
45 } // namespace IPC 45 } // namespace IPC
46 46
47 // Generate param traits read methods. 47 // Generate param traits read methods.
48 #include "ipc/param_traits_read_macros.h" 48 #include "ipc/param_traits_read_macros.h"
49 namespace IPC { 49 namespace IPC {
50 #include "content/common/content_message_generator.h" 50 #include "content/common/content_message_generator.h"
51 } // namespace IPC 51 } // namespace IPC
52 52
53 // Generate param traits log methods. 53 // Generate param traits log methods.
54 #include "ipc/param_traits_log_macros.h" 54 #include "ipc/param_traits_log_macros.h"
55 namespace IPC { 55 namespace IPC {
56 #include "content/common/content_message_generator.h" 56 #include "content/common/content_message_generator.h"
57 } // namespace IPC 57 } // namespace IPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698