summaryrefslogtreecommitdiffstats
path: root/WebKitTools/MiniBrowser/mac/BrowserStatisticsWindowController.m
diff options
context:
space:
mode:
authorBen Murdoch <benm@google.com>2011-05-05 14:36:32 +0100
committerBen Murdoch <benm@google.com>2011-05-10 15:38:30 +0100
commitf05b935882198ccf7d81675736e3aeb089c5113a (patch)
tree4ea0ca838d9ef1b15cf17ddb3928efb427c7e5a1 /WebKitTools/MiniBrowser/mac/BrowserStatisticsWindowController.m
parent60fbdcc62bced8db2cb1fd233cc4d1e4ea17db1b (diff)
downloadexternal_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.zip
external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.gz
external_webkit-f05b935882198ccf7d81675736e3aeb089c5113a.tar.bz2
Merge WebKit at r74534: Initial merge by git.
Change-Id: I6ccd1154fa1b19c2ec2a66878eb675738735f1eb
Diffstat (limited to 'WebKitTools/MiniBrowser/mac/BrowserStatisticsWindowController.m')
-rw-r--r--WebKitTools/MiniBrowser/mac/BrowserStatisticsWindowController.m58
1 files changed, 0 insertions, 58 deletions
diff --git a/WebKitTools/MiniBrowser/mac/BrowserStatisticsWindowController.m b/WebKitTools/MiniBrowser/mac/BrowserStatisticsWindowController.m
deleted file mode 100644
index 28ddb7a..0000000
--- a/WebKitTools/MiniBrowser/mac/BrowserStatisticsWindowController.m
+++ /dev/null
@@ -1,58 +0,0 @@
-//
-// BrowserStatisticsWindowController.m
-// MiniBrowser
-//
-// Created by Sam Weinig on 4/21/10.
-// Copyright 2010 Apple Inc. All rights reserved.
-//
-
-#import "BrowserStatisticsWindowController.h"
-
-#import <WebKit2/WKContextPrivate.h>
-
-@implementation BrowserStatisticsWindowController
-
-- (id)initWithThreadedWKContextRef:(WKContextRef)threadContext processWKContextRef:(WKContextRef)processContext
-{
- if ((self = [super initWithWindowNibName:@"BrowserStatisticsWindow"])) {
- _threadContext = WKRetain(threadContext);
- _processContext = WKRetain(processContext);
- }
-
- return self;
-}
-
-- (void)dealloc
-{
- WKRelease(_threadContext);
- _threadContext = 0;
-
- WKRelease(_processContext);
- _processContext = 0;
-
- [super dealloc];
-}
-
-- (void)windowDidLoad
-{
- [super windowDidLoad];
- [self refreshStatistics:nil];
-}
-
-- (IBAction)refreshStatistics:(id)sender
-{
- WKContextStatistics threadStats;
- WKContextGetStatistics(_threadContext, &threadStats);
-
- WKContextStatistics processStats;
- WKContextGetStatistics(_processContext, &processStats);
-
- [[_basicStatsMatrix cellWithTag:11] setIntValue:processStats.numberOfWKPages];
- [[_basicStatsMatrix cellWithTag:12] setIntValue:processStats.numberOfWKFrames];
-
- [[_basicStatsMatrix cellWithTag:21] setIntValue:threadStats.numberOfWKPages];
- [[_basicStatsMatrix cellWithTag:22] setIntValue:threadStats.numberOfWKFrames];
-
-}
-
-@end