Chromium Code Reviews| Index: chrome/browser/resources/contextual_search/promo.js |
| diff --git a/chrome/browser/resources/contextual_search/promo.js b/chrome/browser/resources/contextual_search/promo.js |
| index dfdf1eff11cb81ffa5a248ceddd33a42f15a5157..e1a367ca99ba2a1e4015946c790d6e40df964034 100644 |
| --- a/chrome/browser/resources/contextual_search/promo.js |
| +++ b/chrome/browser/resources/contextual_search/promo.js |
| @@ -12,3 +12,10 @@ window.onload = function() { |
| $('container').classList.add('hide'); |
| }); |
| }; |
| + |
| +/** |
| + * @return {number} The height of the content, in pixels. |
|
pedro (no code reviews)
2014/09/11 20:33:22
Put a comment here explaining that this will be ca
Mathieu
2014/09/11 20:43:45
Done.
|
| + */ |
| +function getContentHeight() { |
| + return $('container').clientHeight; |
| +} |