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

Issue 6010004: Refactor RenderWidgetHost::set_paint_observer() (Closed)

Created:
10 years ago by DaveMoore
Modified:
9 years, 11 months ago
Reviewers:
brettw, Nico, sky
CC:
chromium-reviews, pam+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org, Paweł Hajdan Jr., levin
Visibility:
Public.

Description

Refactor RenderWidgetHost::set_paint_observer() BUG=None TEST=Rerun RenderWidgetHostUnitTest.* Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=71238

Patch Set 1 #

Patch Set 2 : Added comments #

Total comments: 11

Patch Set 3 : Remove helper classes per review #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+270 lines, -293 lines) Patch
M chrome/browser/automation/automation_provider_observers.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.h View 1 2 2 chunks +10 lines, -0 lines 0 comments Download
M chrome/browser/dom_ui/new_tab_ui.cc View 1 2 3 chunks +41 lines, -65 lines 0 comments Download
M chrome/browser/instant/instant_loader.cc View 1 2 9 chunks +48 lines, -82 lines 3 comments Download
M chrome/browser/notifications/balloon_host.h View 5 chunks +11 lines, -4 lines 0 comments Download
M chrome/browser/notifications/balloon_host.cc View 1 3 chunks +10 lines, -29 lines 0 comments Download
M chrome/browser/renderer_host/backing_store_manager.cc View 2 chunks +5 lines, -7 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host.h View 1 2 7 chunks +13 lines, -35 lines 1 comment Download
M chrome/browser/renderer_host/render_widget_host.cc View 1 2 5 chunks +18 lines, -11 lines 0 comments Download
D chrome/browser/renderer_host/render_widget_host_painting_observer.h View 1 chunk +0 lines, -39 lines 0 comments Download
M chrome/browser/renderer_host/render_widget_host_unittest.cc View 4 chunks +22 lines, -7 lines 0 comments Download
M chrome/browser/tab_contents/thumbnail_generator.h View 1 3 chunks +6 lines, -5 lines 0 comments Download
M chrome/browser/tab_contents/thumbnail_generator.cc View 1 2 3 chunks +60 lines, -1 line 1 comment Download
M chrome/browser/ui/cocoa/tabpose_window.mm View 1 2 1 chunk +1 line, -5 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M chrome/common/notification_type.h View 1 2 1 chunk +22 lines, -0 lines 0 comments Download
M chrome/test/ui_test_utils.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 7 (0 generated)
DaveMoore
RenderWidgetHost has two different kinds of paint observers. They are set via set_paint_observer() and set_painting_observer(). ...
10 years ago (2010-12-22 22:38:04 UTC) #1
brettw
Both the paint observer objects in the instant file and the new_tab_ui file seem like ...
9 years, 11 months ago (2011-01-03 19:48:30 UTC) #2
sky
I agree with Brett. You should be able to make TabContentsDelegateImpl handle observing now and ...
9 years, 11 months ago (2011-01-04 17:06:54 UTC) #3
DaveMoore
http://codereview.chromium.org/6010004/diff/2001/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): http://codereview.chromium.org/6010004/diff/2001/chrome/browser/instant/instant_loader.cc#newcode151 chrome/browser/instant/instant_loader.cc:151: const NotificationSource& source, N/A On 2011/01/03 19:48:30, brettw wrote: ...
9 years, 11 months ago (2011-01-07 19:04:05 UTC) #4
sky
The InstantLoader changes LGTM to me after the following are fixed. http://codereview.chromium.org/6010004/diff/12001/chrome/browser/instant/instant_loader.cc File chrome/browser/instant/instant_loader.cc (right): ...
9 years, 11 months ago (2011-01-07 21:04:15 UTC) #5
brettw
LGTM http://codereview.chromium.org/6010004/diff/12001/chrome/browser/renderer_host/render_widget_host.h File chrome/browser/renderer_host/render_widget_host.h (right): http://codereview.chromium.org/6010004/diff/12001/chrome/browser/renderer_host/render_widget_host.h#newcode389 chrome/browser/renderer_host/render_widget_host.h:389: struct PaintAtSizeAckDetails { Since this is a type, ...
9 years, 11 months ago (2011-01-10 19:18:47 UTC) #6
Nico
9 years, 11 months ago (2011-01-18 00:39:51 UTC) #7
http://codereview.chromium.org/6010004/diff/12001/chrome/browser/tab_contents...
File chrome/browser/tab_contents/thumbnail_generator.cc (right):

http://codereview.chromium.org/6010004/diff/12001/chrome/browser/tab_contents...
chrome/browser/tab_contents/thumbnail_generator.cc:183: if (monitor |=
currently_monitored) {
Is this supposed to be != (it's currently |=)?

This makes stuff dcheck in Add() with tabpose on mac.

Powered by Google App Engine
This is Rietveld 408576698