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

Unified Diff: chrome/browser/resources/ntp_search/tile_page.js

Issue 10907065: NTP5: Fix page blacklisting and remove recently closed tabs when they're clicked. Fix the styling … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 8 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/ntp_search/tile_page.js
diff --git a/chrome/browser/resources/ntp_search/tile_page.js b/chrome/browser/resources/ntp_search/tile_page.js
index a5fc6dafdc3377b98a08f441f9af3e8ac742b5e7..cb90f993c77ed95e16765ab9ac1c6a02cc1321c4 100644
--- a/chrome/browser/resources/ntp_search/tile_page.js
+++ b/chrome/browser/resources/ntp_search/tile_page.js
@@ -305,25 +305,6 @@ cr.define('ntp', function() {
},
/**
- * The notification content of this tile (if any, otherwise null).
- * @type {!HTMLElement}
- */
- get notification() {
- return this.content_.firstChild.id == 'notification-container' ?
- this.content_.firstChild : null;
- },
- /**
- * The notification content of this tile (if any, otherwise null).
- * @type {!HTMLElement}
- */
- set notification(node) {
- assert(node instanceof HTMLElement, '|node| isn\'t an HTMLElement!');
- // NOTE: Implicitly removes from DOM if |node| is inside it.
- this.content_.insertBefore(node, this.content_.firstChild);
- this.positionNotification_();
- },
-
- /**
* Removes the tilePage from the DOM and cleans up event handlers.
*/
remove: function() {
@@ -422,13 +403,6 @@ cr.define('ntp', function() {
},
/**
- * Position the notification if there's one showing.
- * TODO(pedrosimonetti): Fix the position of the notification.
- */
- positionNotification_: function() {
- },
-
- /**
* Scrolls the page in response to an mousewheel event, although the event
* may have been triggered on a different element. Return true if the
* event triggered scrolling, and false otherwise.

Powered by Google App Engine
This is Rietveld 408576698