|
Persist the Instant API to committed search result pages.
Whenever the active tab is an Instant search results page,
|instant_tab_| is used to talk the Instant API with it.
Also:
+ Replace uses of TabContents with WebContents as much as possible (in
service of @avi's goal, http://crbug.com/107201).
+ Aggressively create the InstantLoader in many situations; update
browser tests accordingly.
+ Don't send an initial resize on page load. This was only relevant for
the erstwhile hidden Instant modes.
+ Delay delete the loader only when strictly necessary, such as when an
InstantLoader method is on the call stack. At other times, prefer the
much simpler loader_.reset().
+ Don't bother resetting state. Resetting state has no practical
benefit, since we already only use state variables when they are
valid. Instead, this avoids tricky situations where we should NOT
reset state just because the |loader_| is deleted (since the
|instant_tab_| may still be in use).
+ Given the above two, remove DeleteLoader() entirely.
+ Separate out the magic in Hide() into three pieces: Hide(),
HideInternal() and a couple of places where we want to preserve
|last_full_text_|. I think this makes things slightly clearer.
BUG= 158942
R=jered@chromium.org,samarth@chromium.org,sky@chromium.org
TEST=Commit a query. Change mode to News. Type another query. You should
see results in News mode.
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=171018
Total comments: 54
Total comments: 36
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+1252 lines, -910 lines) |
Patch |
 |
M |
chrome/browser/automation/testing_automation_provider.cc
|
View
|
1
2
|
1 chunk |
+2 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_browsertest.cc
|
View
|
1
2
|
28 chunks |
+70 lines, -72 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/instant/instant_client.h
|
View
|
1
2
|
1 chunk |
+132 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/instant/instant_client.cc
|
View
|
1
2
|
1 chunk |
+114 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_commit_type.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_controller.h
|
View
|
1
2
|
10 chunks |
+69 lines, -47 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_controller.cc
|
View
|
1
2
|
27 chunks |
+348 lines, -268 lines |
2 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_loader.h
|
View
|
1
2
|
3 chunks |
+64 lines, -89 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_loader.cc
|
View
|
1
2
|
9 chunks |
+148 lines, -257 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_model.h
|
View
|
1
|
3 chunks |
+7 lines, -4 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_model.cc
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/instant/instant_tab.h
|
View
|
1
2
|
1 chunk |
+64 lines, -0 lines |
0 comments
|
Download
|
 |
A |
chrome/browser/instant/instant_tab.cc
|
View
|
1
2
|
1 chunk |
+69 lines, -0 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_unload_handler.h
|
View
|
1
|
3 chunks |
+11 lines, -6 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/instant/instant_unload_handler.cc
|
View
|
1
|
4 chunks |
+22 lines, -20 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/task_manager/task_manager_resource_providers.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_instant_controller.h
|
View
|
1
|
3 chunks |
+6 lines, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/browser_instant_controller.cc
|
View
|
1
2
|
4 chunks |
+11 lines, -15 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/cocoa/tab_contents/instant_preview_controller_mac.mm
|
View
|
1
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/browser_window_gtk.h
|
View
|
1
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/browser_window_gtk.cc
|
View
|
1
2
|
6 chunks |
+10 lines, -13 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/constrained_web_dialog_delegate_gtk.cc
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/tab_contents_container_gtk.h
|
View
|
1
|
5 chunks |
+13 lines, -12 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/gtk/tab_contents_container_gtk.cc
|
View
|
1
|
9 chunks |
+20 lines, -22 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/omnibox/omnibox_edit_model.cc
|
View
|
1
2
|
3 chunks |
+15 lines, -24 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/search/search_tab_helper.h
|
View
|
1
2
|
2 chunks |
+4 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/search/search_tab_helper.cc
|
View
|
1
2
|
4 chunks |
+9 lines, -8 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/ui/views/frame/instant_preview_controller_views.cc
|
View
|
1
|
2 chunks |
+1 line, -3 lines |
0 comments
|
Download
|
 |
M |
chrome/chrome_browser.gypi
|
View
|
1
2
|
3 chunks |
+5 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/common/instant_types.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/common/instant_types.cc
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/resources/extensions/searchbox_api.js
|
View
|
1
2
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/searchbox/searchbox.cc
|
View
|
1
2
|
9 chunks |
+9 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/searchbox/searchbox_extension.h
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
 |
M |
chrome/renderer/searchbox/searchbox_extension.cc
|
View
|
1
2
|
15 chunks |
+16 lines, -26 lines |
0 comments
|
Download
|
 |
M |
chrome/test/functional/instant.py
|
View
|
1
|
1 chunk |
+1 line, -1 line |
0 comments
|
Download
|
Total messages: 23 (0 generated)
|