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

Side by Side Diff: Source/platform/TraceEvent.h

Issue 858663002: Fix template angle bracket syntax in platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 11 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 | « Source/platform/Supplementable.h ('k') | Source/platform/TracedValue.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 /* 1 /*
2 * Copyright (C) 2011 Google Inc. All rights reserved. 2 * Copyright (C) 2011 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 924 matching lines...) Expand 10 before | Expand all | Expand 10 after
935 static void assignIfConvertable(ConvertableToTraceFormat*& left, ...) 935 static void assignIfConvertable(ConvertableToTraceFormat*& left, ...)
936 { 936 {
937 left = 0; 937 left = 0;
938 } 938 }
939 static void assignIfConvertable(ConvertableToTraceFormat*& left, Convertable ToTraceFormat* const& right) 939 static void assignIfConvertable(ConvertableToTraceFormat*& left, Convertable ToTraceFormat* const& right)
940 { 940 {
941 left = right; 941 left = right;
942 } 942 }
943 }; 943 };
944 944
945 template<typename T> struct ConvertableToTraceFormatTraits<PassRefPtr<T> > { 945 template<typename T> struct ConvertableToTraceFormatTraits<PassRefPtr<T>> {
946 static const bool isConvertable = WTF::IsSubclass<T, TraceEvent::Convertable ToTraceFormat>::value; 946 static const bool isConvertable = WTF::IsSubclass<T, TraceEvent::Convertable ToTraceFormat>::value;
947 static void assignIfConvertable(ConvertableToTraceFormat*& left, const PassR efPtr<T>& right) 947 static void assignIfConvertable(ConvertableToTraceFormat*& left, const PassR efPtr<T>& right)
948 { 948 {
949 ConvertableToTraceFormatTraits<T*>::assignIfConvertable(left, right.get( )); 949 ConvertableToTraceFormatTraits<T*>::assignIfConvertable(left, right.get( ));
950 } 950 }
951 }; 951 };
952 952
953 template<typename T> bool isConvertableToTraceFormat(const T&) 953 template<typename T> bool isConvertableToTraceFormat(const T&)
954 { 954 {
955 return ConvertableToTraceFormatTraits<T>::isConvertable; 955 return ConvertableToTraceFormatTraits<T>::isConvertable;
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
1125 const char* m_categoryGroup; 1125 const char* m_categoryGroup;
1126 const char* m_name; 1126 const char* m_name;
1127 IDType m_id; 1127 IDType m_id;
1128 }; 1128 };
1129 1129
1130 } // namespace TraceEvent 1130 } // namespace TraceEvent
1131 1131
1132 } // namespace blink 1132 } // namespace blink
1133 1133
1134 #endif 1134 #endif
OLDNEW
« no previous file with comments | « Source/platform/Supplementable.h ('k') | Source/platform/TracedValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698