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

Side by Side Diff: content/common/content_param_traits_macros.h

Issue 291443006: Move LatencyInfo ipc traits from content/common/ to ui/events/ipc/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebase Created 6 years, 7 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
« no previous file with comments | « no previous file | content/common/input_messages.h » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // Singly or Multiply-included shared traits file depending on circumstances. 5 // Singly or Multiply-included shared traits file depending on circumstances.
6 // This allows the use of IPC serialization macros in more than one IPC message 6 // This allows the use of IPC serialization macros in more than one IPC message
7 // file. 7 // file.
8 #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ 8 #ifndef CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_
9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ 9 #define CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_
10 10
11 #include "content/common/content_export.h" 11 #include "content/common/content_export.h"
12 #include "ipc/ipc_message_macros.h" 12 #include "ipc/ipc_message_macros.h"
13 #include "third_party/WebKit/public/web/WebCompositionUnderline.h" 13 #include "third_party/WebKit/public/web/WebCompositionUnderline.h"
14 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h" 14 #include "third_party/WebKit/public/web/WebContentSecurityPolicy.h"
15 #include "third_party/WebKit/public/web/WebInputEvent.h" 15 #include "third_party/WebKit/public/web/WebInputEvent.h"
16 #include "third_party/WebKit/public/web/WebPageVisibilityState.h" 16 #include "third_party/WebKit/public/web/WebPageVisibilityState.h"
17 #include "ui/events/latency_info.h"
18 #include "webkit/common/resource_type.h" 17 #include "webkit/common/resource_type.h"
19 18
20 #undef IPC_MESSAGE_EXPORT 19 #undef IPC_MESSAGE_EXPORT
21 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT 20 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT
22 21
23 IPC_ENUM_TRAITS_MAX_VALUE(ResourceType::Type, ResourceType::LAST_TYPE - 1) 22 IPC_ENUM_TRAITS_MAX_VALUE(ResourceType::Type, ResourceType::LAST_TYPE - 1)
24 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType, 23 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebContentSecurityPolicyType,
25 blink::WebContentSecurityPolicyTypeLast) 24 blink::WebContentSecurityPolicyTypeLast)
26 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type, 25 IPC_ENUM_TRAITS_MIN_MAX_VALUE(blink::WebInputEvent::Type,
27 blink::WebInputEvent::TypeFirst, 26 blink::WebInputEvent::TypeFirst,
28 blink::WebInputEvent::TypeLast) 27 blink::WebInputEvent::TypeLast)
29 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState, 28 IPC_ENUM_TRAITS_MAX_VALUE(blink::WebPageVisibilityState,
30 blink::WebPageVisibilityStateLast) 29 blink::WebPageVisibilityStateLast)
31 IPC_ENUM_TRAITS_MAX_VALUE(ui::LatencyComponentType,
32 ui::LATENCY_COMPONENT_TYPE_LAST)
33 30
34 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline) 31 IPC_STRUCT_TRAITS_BEGIN(blink::WebCompositionUnderline)
35 IPC_STRUCT_TRAITS_MEMBER(startOffset) 32 IPC_STRUCT_TRAITS_MEMBER(startOffset)
36 IPC_STRUCT_TRAITS_MEMBER(endOffset) 33 IPC_STRUCT_TRAITS_MEMBER(endOffset)
37 IPC_STRUCT_TRAITS_MEMBER(color) 34 IPC_STRUCT_TRAITS_MEMBER(color)
38 IPC_STRUCT_TRAITS_MEMBER(thick) 35 IPC_STRUCT_TRAITS_MEMBER(thick)
39 IPC_STRUCT_TRAITS_END() 36 IPC_STRUCT_TRAITS_END()
40 37
41 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo::LatencyComponent)
42 IPC_STRUCT_TRAITS_MEMBER(sequence_number)
43 IPC_STRUCT_TRAITS_MEMBER(event_time)
44 IPC_STRUCT_TRAITS_MEMBER(event_count)
45 IPC_STRUCT_TRAITS_END()
46
47 IPC_STRUCT_TRAITS_BEGIN(ui::LatencyInfo)
48 IPC_STRUCT_TRAITS_MEMBER(latency_components)
49 IPC_STRUCT_TRAITS_MEMBER(trace_id)
50 IPC_STRUCT_TRAITS_MEMBER(terminated)
51 IPC_STRUCT_TRAITS_END()
52
53 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_ 38 #endif // CONTENT_COMMON_CONTENT_PARAM_TRAITS_MACROS_H_
OLDNEW
« no previous file with comments | « no previous file | content/common/input_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698