1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 var textinput_helper
= {
5 retrieveElementCoordinate: function(id
) {
6 var ele
= document
.getElementById(id
);
7 var coordinate
= Math
.floor(ele
.offsetLeft
) + ',' +
8 Math
.floor(ele
.offsetTop
) + ',' +
9 Math
.ceil(ele
.offsetWidth
) + ',' +
10 Math
.ceil(ele
.offsetHeight
);
11 window
.domAutomationController
.send(coordinate
);