projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 5.34.104.0
[platform/framework/web/crosswalk.git]
/
src
/
third_party
/
trace-viewer
/
src
/
cc
/
picture_ops_chart_view.js
diff --git
a/src/third_party/trace-viewer/src/cc/picture_ops_chart_view.js
b/src/third_party/trace-viewer/src/cc/picture_ops_chart_view.js
index
7d4552d
..
25b971b
100644
(file)
--- a/
src/third_party/trace-viewer/src/cc/picture_ops_chart_view.js
+++ b/
src/third_party/trace-viewer/src/cc/picture_ops_chart_view.js
@@
-4,10
+4,10
@@
'use strict';
'use strict';
-
base
.requireStylesheet('cc.picture_ops_chart_view');
-
base.require('
ui.dom_helpers');
+
tvcm
.requireStylesheet('cc.picture_ops_chart_view');
+
tvcm.require('tvcm.
ui.dom_helpers');
-
base
.exportTo('cc', function() {
+
tvcm
.exportTo('cc', function() {
var BAR_PADDING = 1;
var BAR_WIDTH = 5;
var BAR_PADDING = 1;
var BAR_WIDTH = 5;
@@
-30,7
+30,7
@@
base.exportTo('cc', function() {
*
* @constructor
*/
*
* @constructor
*/
- var PictureOpsChartView = ui.define('picture-ops-chart-view');
+ var PictureOpsChartView =
tvcm.
ui.define('picture-ops-chart-view');
PictureOpsChartView.prototype = {
__proto__: HTMLUnknownElement.prototype,
PictureOpsChartView.prototype = {
__proto__: HTMLUnknownElement.prototype,
@@
-60,7
+60,7
@@
base.exportTo('cc', function() {
this.chart_.addEventListener('mousemove', this.onMouseMove_.bind(this));
this.usePercentileScale_ = false;
this.chart_.addEventListener('mousemove', this.onMouseMove_.bind(this));
this.usePercentileScale_ = false;
- this.usePercentileScaleCheckbox_ = ui.createCheckBox(
+ this.usePercentileScaleCheckbox_ =
tvcm.
ui.createCheckBox(
this, 'usePercentileScale',
'PictureOpsChartView.usePercentileScale', false,
'Limit to 95%-ile');
this, 'usePercentileScale',
'PictureOpsChartView.usePercentileScale', false,
'Limit to 95%-ile');
@@
-157,7
+157,7
@@
base.exportTo('cc', function() {
index = Math.floor((x - chartLeft) / totalBarWidth *
this.pictureOps_.length);
index = Math.floor((x - chartLeft) / totalBarWidth *
this.pictureOps_.length);
- index =
base
.clamp(index, 0, this.pictureOps_.length - 1);
+ index =
tvcm
.clamp(index, 0, this.pictureOps_.length - 1);
return index;
},
return index;
},
@@
-177,7
+177,7
@@
base.exportTo('cc', function() {
e.preventDefault();
e.preventDefault();
-
base
.dispatchSimpleEvent(this, 'selection-changed', false);
+
tvcm
.dispatchSimpleEvent(this, 'selection-changed', false);
},
onMouseMove_: function(e) {
},
onMouseMove_: function(e) {