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

Issue 10915217: Hook up SetInstantPreviewHeight for ChromeOS. (Closed)

Created:
8 years, 3 months ago by Jered
Modified:
8 years, 3 months ago
Reviewers:
sreeram, sky
CC:
chromium-reviews, tfarina, gideonwald, dominich, David Black, Shishir
Visibility:
Public.

Description

Hook up SetInstantPreviewHeight for ChromeOS. I tested this by specifying the fake instant page with --instant-url and adding some calls to setNonNativeDropdownHeight(). BUG= Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=157670

Patch Set 1 #

Patch Set 2 : Minor fixes. #

Total comments: 4

Patch Set 3 : Rebase. #

Patch Set 4 : Address comments. #

Total comments: 8

Patch Set 5 : More comments. #

Total comments: 4

Patch Set 6 : Move height to ShowPreview. #

Total comments: 2

Patch Set 7 : Don't cache height in InstantController. #

Total comments: 2

Patch Set 8 : Move hidden notification, too. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -46 lines) Patch
M chrome/browser/instant/instant_controller.h View 1 2 3 4 5 6 2 chunks +6 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_controller.cc View 1 2 3 4 5 6 7 6 chunks +26 lines, -5 lines 0 comments Download
M chrome/browser/instant/instant_controller_delegate.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 3 4 3 chunks +24 lines, -0 lines 0 comments Download
M chrome/browser/instant/instant_loader_delegate.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/browser_instant_controller.h View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/browser_instant_controller.cc View 1 2 3 4 5 6 7 2 chunks +2 lines, -12 lines 0 comments Download
M chrome/browser/ui/browser_window.h View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/cocoa/browser_window_cocoa.mm View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/gtk/browser_window_gtk.cc View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/browser_view.cc View 1 2 3 4 5 2 chunks +6 lines, -3 lines 0 comments Download
M chrome/browser/ui/views/frame/contents_container.h View 1 2 3 4 5 3 chunks +12 lines, -1 line 0 comments Download
M chrome/browser/ui/views/frame/contents_container.cc View 1 2 3 4 5 6 3 chunks +31 lines, -11 lines 0 comments Download
M chrome/test/base/test_browser_window.h View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download

Messages

Total messages: 19 (0 generated)
Jered
8 years, 3 months ago (2012-09-11 23:14:55 UTC) #1
sreeram
I think you need to pass the units all the way to the view code, ...
8 years, 3 months ago (2012-09-17 17:26:12 UTC) #2
Jered
Ok, please have another look; I'll add sky@ once this looks good to you. http://codereview.chromium.org/10915217/diff/3001/chrome/browser/instant/instant_controller.cc ...
8 years, 3 months ago (2012-09-18 22:12:00 UTC) #3
sreeram
LGTM http://codereview.chromium.org/10915217/diff/11001/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/10915217/diff/11001/chrome/browser/instant/instant_loader.cc#newcode18 chrome/browser/instant/instant_loader.cc:18: #include "chrome/common/instant_types.h" No need for this (already brought ...
8 years, 3 months ago (2012-09-18 22:24:24 UTC) #4
sreeram
http://codereview.chromium.org/10915217/diff/11001/chrome/browser/ui/views/frame/contents_container.h File chrome/browser/ui/views/frame/contents_container.h (right): http://codereview.chromium.org/10915217/diff/11001/chrome/browser/ui/views/frame/contents_container.h#newcode9 chrome/browser/ui/views/frame/contents_container.h:9: #include "chrome/common/instant_types.h" Sort.
8 years, 3 months ago (2012-09-18 22:28:08 UTC) #5
Jered
Thanks, +sky http://codereview.chromium.org/10915217/diff/11001/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/10915217/diff/11001/chrome/browser/instant/instant_loader.cc#newcode18 chrome/browser/instant/instant_loader.cc:18: #include "chrome/common/instant_types.h" On 2012/09/18 22:24:24, sreeram wrote: ...
8 years, 3 months ago (2012-09-18 22:46:24 UTC) #6
sky
I believed we discussed this before. At what point are we setting the preview height? ...
8 years, 3 months ago (2012-09-19 00:23:17 UTC) #7
sreeram
On 2012/09/19 00:23:17, sky wrote: > I believed we discussed this before. At what point ...
8 years, 3 months ago (2012-09-19 01:11:44 UTC) #8
Jered
Is this what you had in mind? http://codereview.chromium.org/10915217/diff/16004/chrome/browser/ui/browser_window.h File chrome/browser/ui/browser_window.h (right): http://codereview.chromium.org/10915217/diff/16004/chrome/browser/ui/browser_window.h#newcode338 chrome/browser/ui/browser_window.h:338: // Resize ...
8 years, 3 months ago (2012-09-19 18:52:09 UTC) #9
sreeram
There's no need to cache the preview height/units in InstantController. Just have InstantController::Show() take the ...
8 years, 3 months ago (2012-09-19 19:59:52 UTC) #10
sreeram
Forgot to add, you also need to unconditionally call delegate_->ShowInstant(). This means we'll send duplicate ...
8 years, 3 months ago (2012-09-19 20:05:04 UTC) #11
sreeram
On 2012/09/19 20:05:04, sreeram wrote: > Forgot to add, you also need to unconditionally call ...
8 years, 3 months ago (2012-09-19 20:10:58 UTC) #12
Jered
Ok, here's a new patchset. On 2012/09/19 20:10:58, sreeram wrote: > On 2012/09/19 20:05:04, sreeram ...
8 years, 3 months ago (2012-09-19 20:22:10 UTC) #13
Jered
http://codereview.chromium.org/10915217/diff/9021/chrome/browser/ui/views/frame/contents_container.cc File chrome/browser/ui/views/frame/contents_container.cc (right): http://codereview.chromium.org/10915217/diff/9021/chrome/browser/ui/views/frame/contents_container.cc#newcode74 chrome/browser/ui/views/frame/contents_container.cc:74: Layout(); On 2012/09/19 19:59:52, sreeram wrote: > This method ...
8 years, 3 months ago (2012-09-19 20:22:18 UTC) #14
sreeram
LGTM http://codereview.chromium.org/10915217/diff/12025/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): http://codereview.chromium.org/10915217/diff/12025/chrome/browser/ui/browser_instant_controller.cc#newcode103 chrome/browser/ui/browser_instant_controller.cc:103: content::NotificationService::NoDetails()); For consistency, let's move this notification also ...
8 years, 3 months ago (2012-09-19 20:52:03 UTC) #15
sky
Yes, much better. LGTM
8 years, 3 months ago (2012-09-19 21:13:02 UTC) #16
Jered
Thanks for reviewing. http://codereview.chromium.org/10915217/diff/12025/chrome/browser/ui/browser_instant_controller.cc File chrome/browser/ui/browser_instant_controller.cc (right): http://codereview.chromium.org/10915217/diff/12025/chrome/browser/ui/browser_instant_controller.cc#newcode103 chrome/browser/ui/browser_instant_controller.cc:103: content::NotificationService::NoDetails()); On 2012/09/19 20:52:03, sreeram wrote: ...
8 years, 3 months ago (2012-09-19 21:18:14 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jered@chromium.org/10915217/15003
8 years, 3 months ago (2012-09-19 21:50:24 UTC) #18
commit-bot: I haz the power
8 years, 3 months ago (2012-09-20 00:48:48 UTC) #19
Change committed as 157670

Powered by Google App Engine
This is Rietveld 408576698