| 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..1168db2f0dbd256e702db48191900283f6e7973a 100644
|
| --- a/chrome/browser/resources/contextual_search/promo.js
|
| +++ b/chrome/browser/resources/contextual_search/promo.js
|
| @@ -12,3 +12,12 @@ window.onload = function() {
|
| $('container').classList.add('hide');
|
| });
|
| };
|
| +
|
| +/**
|
| + * Returns the height of the content. Method called from Chrome to properly size
|
| + * the view embedding it.
|
| + * @return {number} The height of the content, in pixels.
|
| + */
|
| +function getContentHeight() {
|
| + return $('container').clientHeight;
|
| +}
|
|
|