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

Unified Diff: chrome/browser/resources/history/history.js

Issue 9582032: [uber page] Integrate history into uber page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: final tweaks Created 8 years, 10 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
« no previous file with comments | « chrome/browser/resources/history/history.html ('k') | chrome/browser/resources/uber/uber.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/history/history.js
===================================================================
--- chrome/browser/resources/history/history.js (revision 124713)
+++ chrome/browser/resources/history/history.js (working copy)
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+<include src="../uber/uber_utils.js">
+
///////////////////////////////////////////////////////////////////////////////
// Globals:
var RESULTS_PER_PAGE = 150;
@@ -235,6 +237,7 @@
var link = document.createElement('a');
link.href = this.url_;
link.id = "id-" + this.id_;
+ link.target = "_top";
// Add a tooltip, since it might be ellipsized.
// TODO(dubroy): Find a way to show the tooltip only when necessary.
@@ -866,6 +869,8 @@
* Window onload handler, sets up the page.
*/
function load() {
+ uber.onContentFrameLoaded();
+
var searchField = $('search-field');
searchField.focus();
@@ -891,6 +896,14 @@
activePage.showMoreFromSite_();
activePage = null;
});
+
+ var title = localStrings.getString('title');
+ uber.invokeMethodOnParent('setTitle', {title: title});
+
+ window.addEventListener('message', function(e) {
+ if (e.data.method == 'frameSelected')
+ searchField.focus();
+ });
}
/**
« no previous file with comments | « chrome/browser/resources/history/history.html ('k') | chrome/browser/resources/uber/uber.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698