OLD | NEW |
---|---|
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #include "base/logging.h" | 5 #include "base/logging.h" |
6 #include "base/mac/bundle_locations.h" | 6 #include "base/mac/bundle_locations.h" |
7 #include "base/mac/mac_util.h" | 7 #include "base/mac/mac_util.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/sys_string_conversions.h" | 9 #include "base/sys_string_conversions.h" |
10 #include "base/time.h" | 10 #include "base/time.h" |
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
178 - (void)log:(CocoaLogData*)data { | 178 - (void)log:(CocoaLogData*)data { |
179 if ([self filterOut:data]) { | 179 if ([self filterOut:data]) { |
180 [filteredEventCount_ setStringValue:[NSString stringWithFormat:@"%d", | 180 [filteredEventCount_ setStringValue:[NSString stringWithFormat:@"%d", |
181 ++filteredEventCounter_]]; | 181 ++filteredEventCounter_]]; |
182 return; | 182 return; |
183 } | 183 } |
184 [dataController_ addObject:data]; | 184 [dataController_ addObject:data]; |
185 NSUInteger count = [[dataController_ arrangedObjects] count]; | 185 NSUInteger count = [[dataController_ arrangedObjects] count]; |
186 // Uncomment if you want scroll-to-end behavior... but seems expensive. | 186 // Uncomment if you want scroll-to-end behavior... but seems expensive. |
187 // [tableView_ scrollRowToVisible:count-1]; | 187 // [tableView_ scrollRowToVisible:count-1]; |
188 [eventCount_ setStringValue:[NSString stringWithFormat:@"%d", count]]; | 188 [eventCount_ setStringValue:[NSString stringWithFormat:@"%d", |
Mark Mentovai
2012/08/20 13:25:58
Same.
| |
189 static_cast<int32_t>(count)]]; | |
189 } | 190 } |
190 | 191 |
191 - (void)setDisplayViewMessages:(BOOL)display { | 192 - (void)setDisplayViewMessages:(BOOL)display { |
192 view_ = display; | 193 view_ = display; |
193 } | 194 } |
194 | 195 |
195 @end | 196 @end |
196 | 197 |
197 #endif // IPC_MESSAGE_LOG_ENABLED | 198 #endif // IPC_MESSAGE_LOG_ENABLED |
198 | 199 |
OLD | NEW |