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

Side by Side Diff: Source/core/timing/PerformanceEntry.cpp

Issue 540283003: bindings: Retires ScriptWrappable::init, etc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed a review comment. Created 6 years, 3 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 | « Source/core/timing/Performance.cpp ('k') | Source/core/timing/PerformanceMark.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) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 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 are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * 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 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 21 matching lines...) Expand all
32 #include "core/timing/PerformanceEntry.h" 32 #include "core/timing/PerformanceEntry.h"
33 33
34 namespace blink { 34 namespace blink {
35 35
36 PerformanceEntry::PerformanceEntry(const String& name, const String& entryType, double startTime, double finishTime) 36 PerformanceEntry::PerformanceEntry(const String& name, const String& entryType, double startTime, double finishTime)
37 : m_name(name) 37 : m_name(name)
38 , m_entryType(entryType) 38 , m_entryType(entryType)
39 , m_startTime(startTime) 39 , m_startTime(startTime)
40 , m_duration(finishTime - startTime) 40 , m_duration(finishTime - startTime)
41 { 41 {
42 ScriptWrappable::init(this);
43 } 42 }
44 43
45 PerformanceEntry::~PerformanceEntry() 44 PerformanceEntry::~PerformanceEntry()
46 { 45 {
47 } 46 }
48 47
49 String PerformanceEntry::name() const 48 String PerformanceEntry::name() const
50 { 49 {
51 return m_name; 50 return m_name;
52 } 51 }
53 52
54 String PerformanceEntry::entryType() const 53 String PerformanceEntry::entryType() const
55 { 54 {
56 return m_entryType; 55 return m_entryType;
57 } 56 }
58 57
59 double PerformanceEntry::startTime() const 58 double PerformanceEntry::startTime() const
60 { 59 {
61 return m_startTime; 60 return m_startTime;
62 } 61 }
63 62
64 double PerformanceEntry::duration() const 63 double PerformanceEntry::duration() const
65 { 64 {
66 return m_duration; 65 return m_duration;
67 } 66 }
68 67
69 } // namespace blink 68 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/timing/Performance.cpp ('k') | Source/core/timing/PerformanceMark.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698