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

Unified Diff: chrome/browser/resources/contextual_search/promo.js

Issue 555983002: [Search] Tweak the styling for the first-run experience (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
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..5fa60ba1d2dad60d8d099d4e2b5334eb04bfa1d0 100644
--- a/chrome/browser/resources/contextual_search/promo.js
+++ b/chrome/browser/resources/contextual_search/promo.js
@@ -12,3 +12,11 @@ window.onload = function() {
$('container').classList.add('hide');
});
};
+
+/**
+ * Method called from Chrome to properly size the view.
huangs 2014/09/11 20:52:29 NIT: Mention what the method *does* before what it
Mathieu 2014/09/11 20:59:55 Done.
Mathieu 2014/09/11 20:59:55 Done.
+ * @return {number} The height of the content, in pixels.
+ */
+function getContentHeight() {
+ return $('container').clientHeight;
+}

Powered by Google App Engine
This is Rietveld 408576698