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

Issue 1989002: The app launcher had a height of zero as it was not getting preferred size up... (Closed)

Created:
10 years, 7 months ago by Jay Civelli
Modified:
9 years, 7 months ago
CC:
chromium-reviews, jam+cc_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org, skerner
Visibility:
Public.

Description

The app launcher had a height of zero as it was not getting preferred size updates notifications. The wrong render was getting told to report preferred size updates. We now make sure we enable preferred size notifications when the render view host is created. Also removed a check for the view type in render_view.cc that was preventing us from polling the preferred size for regular tabs. This check is not needed since the notifications need to be explictly enabled and they are only enabled by extensions related render views (and the app launcher). TEST=Open the app launcher, it should display correctly. BUG=None Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=46588

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -18 lines) Patch
M chrome/browser/tab_contents/tab_contents.cc View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_delegate.h View 1 chunk +7 lines, -1 line 0 comments Download
M chrome/browser/views/app_launcher.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/views/app_launcher.cc View 2 chunks +0 lines, -3 lines 0 comments Download
M chrome/common/view_types.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/common/view_types.cc View 1 chunk +0 lines, -6 lines 0 comments Download
M chrome/renderer/render_view.cc View 1 chunk +5 lines, -5 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Jay Civelli
10 years, 7 months ago (2010-05-05 23:41:02 UTC) #1
Matt Perry
http://codereview.chromium.org/1989002/diff/1/8 File chrome/renderer/render_view.cc (right): http://codereview.chromium.org/1989002/diff/1/8#newcode3827 chrome/renderer/render_view.cc:3827: preferred_size_change_timer_.Start(TimeDelta::FromMilliseconds(10), this, I remember not liking this polling when ...
10 years, 7 months ago (2010-05-05 23:47:38 UTC) #2
Aaron Boodman
On 2010/05/05 23:47:38, Matt Perry wrote: > http://codereview.chromium.org/1989002/diff/1/8 > File chrome/renderer/render_view.cc (right): > > http://codereview.chromium.org/1989002/diff/1/8#newcode3827 ...
10 years, 7 months ago (2010-05-06 00:19:15 UTC) #3
Aaron Boodman
lgtm
10 years, 7 months ago (2010-05-06 00:20:21 UTC) #4
Nico
10 years, 7 months ago (2010-05-22 02:31:39 UTC) #5
This patch (surprisingly) made the renderer processes use a lot more cpu on the
mac ( http://crbug.com/44494 ).

Powered by Google App Engine
This is Rietveld 408576698