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

Unified Diff: chrome/browser/resources/print_preview/print_preview_utils.js

Issue 10480002: Implements metrics for destination search. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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/print_preview/print_preview_utils.js
diff --git a/chrome/browser/resources/print_preview/print_preview_utils.js b/chrome/browser/resources/print_preview/print_preview_utils.js
index 14eec327457fbad5a4eb3236077bc27806e17350..a7b6a74c0595dbb05f2f6a25b8e419cf0f7a18f1 100644
--- a/chrome/browser/resources/print_preview/print_preview_utils.js
+++ b/chrome/browser/resources/print_preview/print_preview_utils.js
@@ -187,8 +187,16 @@ function pageSetToPageRanges(pageSet) {
}
/**
+ * @param {!HTMLElement} element Element to check for visibility.
+ * @return {boolean} Whether the given element is visible.
+ */
+function getIsVisible(element) {
+ return !element.hidden;
+}
+
+/**
* Shows or hides an element.
- * @param {Element} element Element to show or hide.
+ * @param {!HTMLElement} element Element to show or hide.
* @param {boolean} isVisible Whether the element should be visible or not.
*/
function setIsVisible(element, isVisible) {

Powered by Google App Engine
This is Rietveld 408576698