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

Issue 11094047: InstantExtended: Add js api for custom logo. (Closed)

Created:
8 years, 2 months ago by Jered
Modified:
8 years, 2 months ago
Reviewers:
CC:
chromium-reviews, mihaip-chromium-reviews_chromium.org, tfarina, samarth, sreeram, gideonwald, dominich, Aaron Boodman, David Black, darin-cc_chromium.org, Shishir
Visibility:
Public.

Description

InstantExtended: Add js api for custom logo. Background: When the Instant page is warm and the search provider has a doodle, we want to show it immediately without first showing the baked-in logo (the user has already seen the baked-in logo transition away, and seeing that on every NTP would be annoying.) This adds an API which promises that the current overlay will respond to an NTP contextchange with a SetInstantPreviewHeight to show a custom logo. In this case, the NTP can just rely on Instant to draw the logo. BUG=142785

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -6 lines) Patch
M chrome/browser/instant/instant_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 chunk +9 lines, -0 lines 2 comments Download
M chrome/browser/instant/instant_controller_delegate.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 3 chunks +21 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_loader_delegate.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/search_view_controller.h View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/search_view_controller.cc View 4 chunks +15 lines, -6 lines 0 comments Download
chrome/common/render_messages.h View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/searchbox/searchbox_api.js View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox.cc View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/renderer/searchbox/searchbox_extension.cc View 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Jered
Please review.
8 years, 2 months ago (2012-10-10 16:51:52 UTC) #1
sreeram
Plumbing has_logo through the BrowserWindow interface seems misplaced. It seems like this state belongs in ...
8 years, 2 months ago (2012-10-10 18:57:03 UTC) #2
Jered
Rietveld ate my code... let's pick up on issue 11091050. On 2012/10/10 18:57:03, sreeram wrote: ...
8 years, 2 months ago (2012-10-10 22:03:54 UTC) #3
Jered
8 years, 2 months ago (2012-10-10 22:10:47 UTC) #4
http://codereview.chromium.org/11094047/diff/1/chrome/browser/instant/instant...
File chrome/browser/instant/instant_controller.cc (right):

http://codereview.chromium.org/11094047/diff/1/chrome/browser/instant/instant...
chrome/browser/instant/instant_controller.cc:556: (IsOutOfDate() &&
!active_tab_is_ntp_))
On 2012/10/10 18:57:04, sreeram wrote:
> Don't do the IsOutOfDate or active_tab_is_ntp_ checks. It's entirely possible
> that the hidden page will finish loading when Instant is in an out-of-date
state
> (for example, the omnibox has lost focus), and the user is on a regular,
non-ntp
> page. We still want to note the fact that it has a doodle.

Done.

Powered by Google App Engine
This is Rietveld 408576698