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

Issue 10644002: Add core plumbing for Instant Extended work (Closed)

Created:
8 years, 6 months ago by dhollowa
Modified:
8 years, 6 months ago
CC:
chromium-reviews, Avi (use Gerrit), ajwong+watch_chromium.org, creis+watch_chromium.org, brettw-cc_chromium.org, tfarina
Visibility:
Public.

Description

Add core plumbing for Instant Extended work Adds UI model, types, and controller logic. The controller logic is encoded in search_tab_helper.cc/h. The model observer changes are multiplexed from the active tab through the browser's model via search_delegate.h/cc. The primary state in the model is the "mode" which changes depending on interactions with the Omnibox and active URL of the page. This state is communicated from the tab to various "Top Chrome" components such as the toolbar, the tab strip, etc. BUG=133506 TEST=GoogleUtilTest.IsEmbeddedGoogleSearchUrl, SearchDelegateTest.* R=sky@chromium.org, ben@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=143638

Patch Set 1 #

Patch Set 2 : Header #

Total comments: 22

Patch Set 3 : Address comments #

Total comments: 8

Patch Set 4 : Removed UI stuff from SearchModel #

Total comments: 10

Patch Set 5 : Address pkasting, tfarina, and remaining nits. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+879 lines, -0 lines) Patch
M chrome/browser/google/google_util.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/google/google_util.cc View 1 2 3 4 3 chunks +25 lines, -0 lines 0 comments Download
M chrome/browser/google/google_util_unittest.cc View 1 2 3 4 2 chunks +30 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.h View 1 2 5 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser.cc View 1 2 3 4 6 chunks +19 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_delegate.h View 1 2 3 4 1 chunk +64 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_delegate.cc View 1 2 3 4 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_delegate_unittest.cc View 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_model.h View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_model.cc View 1 2 3 4 1 chunk +56 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_model_observer.h View 1 2 3 4 1 chunk +27 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_model_observer_bridge.h View 1 chunk +46 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_tab_helper.h View 1 chunk +109 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_tab_helper.cc View 1 2 1 chunk +132 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_types.h View 1 2 1 chunk +67 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_ui.h View 1 2 3 4 1 chunk +41 lines, -0 lines 0 comments Download
A chrome/browser/ui/search/search_ui.cc View 1 2 3 4 1 chunk +31 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents.h View 3 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/tab_contents/tab_contents.cc View 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 2 chunks +2 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
dhollowa
ben, sky -> chrome/browser/ui changes isherman -> google addition Thanks!
8 years, 6 months ago (2012-06-21 17:25:32 UTC) #1
Ilya Sherman
+pkasting google/ LGTM, but Peter might want to take a look as well. https://chromiumcodereview.appspot.com/10644002/diff/6001/chrome/browser/google/google_util.cc File ...
8 years, 6 months ago (2012-06-21 17:46:58 UTC) #2
Peter Kasting
Ilya's comments are all on target, but additionally, do not put your new functionality in ...
8 years, 6 months ago (2012-06-21 18:04:17 UTC) #3
sky
https://chromiumcodereview.appspot.com/10644002/diff/6001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): https://chromiumcodereview.appspot.com/10644002/diff/6001/chrome/browser/ui/browser.cc#newcode2841 chrome/browser/ui/browser.cc:2841: search_delegate_->OnTabClosing(contents); I think you want TabDetachedAt, not this. https://chromiumcodereview.appspot.com/10644002/diff/6001/chrome/browser/ui/browser.h ...
8 years, 6 months ago (2012-06-21 18:26:49 UTC) #4
dhollowa
On 2012/06/21 18:04:17, Peter Kasting wrote: > Ilya's comments are all on target, but additionally, ...
8 years, 6 months ago (2012-06-21 22:10:52 UTC) #5
dhollowa
http://codereview.chromium.org/10644002/diff/6001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): http://codereview.chromium.org/10644002/diff/6001/chrome/browser/google/google_util.cc#newcode221 chrome/browser/google/google_util.cc:221: return value.length() > 0 && value != "0"; On ...
8 years, 6 months ago (2012-06-21 22:16:43 UTC) #6
Peter Kasting
Leaving in google_util is fine if you plan to call this all over. http://codereview.chromium.org/10644002/diff/16001/chrome/browser/google/google_util.cc File ...
8 years, 6 months ago (2012-06-21 22:28:05 UTC) #7
tfarina
http://codereview.chromium.org/10644002/diff/24001/chrome/browser/ui/search/search_model_observer.h File chrome/browser/ui/search/search_model_observer.h (right): http://codereview.chromium.org/10644002/diff/24001/chrome/browser/ui/search/search_model_observer.h#newcode12 chrome/browser/ui/search/search_model_observer.h:12: struct Location; nit: remove this, unused in this header ...
8 years, 6 months ago (2012-06-21 22:28:54 UTC) #8
tfarina
http://codereview.chromium.org/10644002/diff/24001/chrome/browser/ui/search/search_model.cc File chrome/browser/ui/search/search_model.cc (right): http://codereview.chromium.org/10644002/diff/24001/chrome/browser/ui/search/search_model.cc#newcode7 chrome/browser/ui/search/search_model.cc:7: #include "chrome/browser/google/google_util.h" do you need this, url_constants.h and web_contents.h ...
8 years, 6 months ago (2012-06-21 22:49:55 UTC) #9
sky
LGTM http://codereview.chromium.org/10644002/diff/24001/chrome/browser/ui/browser.cc File chrome/browser/ui/browser.cc (right): http://codereview.chromium.org/10644002/diff/24001/chrome/browser/ui/browser.cc#newcode4807 chrome/browser/ui/browser.cc:4807: search_delegate_->OnTabDettached(contents); OnTabDetached http://codereview.chromium.org/10644002/diff/24001/chrome/browser/ui/search/search_ui.h File chrome/browser/ui/search/search_ui.h (right): http://codereview.chromium.org/10644002/diff/24001/chrome/browser/ui/search/search_ui.h#newcode10 chrome/browser/ui/search/search_ui.h:10: ...
8 years, 6 months ago (2012-06-21 22:52:49 UTC) #10
dhollowa
http://codereview.chromium.org/10644002/diff/16001/chrome/browser/google/google_util.cc File chrome/browser/google/google_util.cc (right): http://codereview.chromium.org/10644002/diff/16001/chrome/browser/google/google_util.cc#newcode217 chrome/browser/google/google_util.cc:217: url.c_str(), &parsed_url.query, &key, &value)) { On 2012/06/21 22:28:05, Peter ...
8 years, 6 months ago (2012-06-21 23:53:42 UTC) #11
dhollowa
Ben, you good with this?
8 years, 6 months ago (2012-06-22 00:22:05 UTC) #12
Ben Goodger (Google)
lgtm
8 years, 6 months ago (2012-06-22 16:07:10 UTC) #13
Peter Kasting
8 years, 6 months ago (2012-06-22 17:31:29 UTC) #14
chrome/browser/google LGTM

Powered by Google App Engine
This is Rietveld 408576698