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

Issue 8498022: Have ExtensionHost use TabContents instead of RenderViewHost. Try #2. The first (Closed)

Created:
9 years, 1 month ago by Matt Perry
Modified:
9 years, 1 month ago
CC:
chromium-reviews, Avi (use Gerrit), creis+watch_chromium.org, jam, Erik does not do reviews, Paweł Hajdan Jr., yoshiki+watch_chromium.org, mihaip+watch_chromium.org, dpranke-watch+content_chromium.org, joi+watch-content_chromium.org, Aaron Boodman, ajwong+watch_chromium.org, brettw-cc_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Have ExtensionHost use TabContents instead of RenderViewHost. Try #2. The first landing broke popups on the Mac. Specifically, the auto-resizing of TabContents interfered with how ExtensionViewMac tried to resize itself, causing an infinite feedback loop. Also, we need to defer updating the size of the container until the ExtensionHost is loaded so that we don't display an empty window. BUG=84146 TEST=extensions still work Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=110262

Patch Set 1 #

Total comments: 1

Patch Set 2 : mac fix guess #

Patch Set 3 : synced #

Patch Set 4 : mac fix #

Patch Set 5 : more mac fix #

Patch Set 6 : it works #

Patch Set 7 : cleanup #

Total comments: 3

Patch Set 8 : moved #

Patch Set 9 : focus fix #

Patch Set 10 : moved.tch #

Patch Set 11 : move dcheck #

Unified diffs Side-by-side diffs Delta from patch set Stats (+315 lines, -727 lines) Patch
M chrome/browser/extensions/browser_action_apitest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_browsertest.cc View 1 2 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_browsertests_misc.cc View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_host.h View 1 2 3 4 5 6 7 8 8 chunks +33 lines, -112 lines 0 comments Download
M chrome/browser/extensions/extension_host.cc View 1 2 3 4 5 6 7 8 9 10 21 chunks +69 lines, -362 lines 0 comments Download
M chrome/browser/extensions/extension_host_mac.h View 1 chunk +2 lines, -6 lines 0 comments Download
M chrome/browser/extensions/extension_host_mac.mm View 1 chunk +0 lines, -27 lines 0 comments Download
M chrome/browser/extensions/extension_process_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/extension_webkit_preferences.h View 1 chunk +5 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_webkit_preferences.cc View 2 chunks +13 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_webnavigation_api.cc View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_host_delegate_helper.cc View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.h View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/tab_contents_view_mac.mm View 1 2 3 4 5 6 7 8 3 chunks +16 lines, -1 line 0 comments Download
M chrome/browser/task_manager/task_manager.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/task_manager/task_manager_resource_providers.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_view_mac.h View 1 2 3 4 5 3 chunks +11 lines, -5 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_view_mac.mm View 1 2 3 4 5 5 chunks +35 lines, -25 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_view_gtk.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/gtk/extensions/extension_view_gtk.cc View 4 chunks +8 lines, -11 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.h View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_view.h View 2 chunks +0 lines, -5 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_view.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -47 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.h View 1 2 3 4 5 6 1 chunk +0 lines, -7 lines 0 comments Download
M content/browser/renderer_host/render_widget_host_view_mac.mm View 1 2 3 4 5 6 7 8 1 chunk +0 lines, -12 lines 0 comments Download
M content/browser/tab_contents/tab_contents.h View 1 2 3 4 5 6 7 8 9 2 chunks +88 lines, -87 lines 0 comments Download
M content/browser/tab_contents/tab_contents.cc View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -1 line 0 comments Download
M content/browser/tab_contents/tab_contents_observer.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/tab_contents/tab_contents_observer.cc View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Matt Perry
http://codereview.chromium.org/8498022/diff/1/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm File chrome/browser/ui/cocoa/extensions/extension_view_mac.mm (right): http://codereview.chromium.org/8498022/diff/1/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm#newcode56 chrome/browser/ui/cocoa/extensions/extension_view_mac.mm:56: NSView* view = extension_host_->render_view_host()->view()->GetNativeView(); TabContentsViewCocoa doesn't implement setFrameWithDeferredUpdate, so ...
9 years, 1 month ago (2011-11-08 20:21:30 UTC) #1
Matt Perry
avi: please review the changes to the mac files. jam: for content approval. aa: FYI. ...
9 years, 1 month ago (2011-11-11 21:45:38 UTC) #2
jam
avi is owner in content/browser so I defer to him. http://codereview.chromium.org/8498022/diff/14007/content/browser/tab_contents/tab_contents.h File content/browser/tab_contents/tab_contents.h (right): http://codereview.chromium.org/8498022/diff/14007/content/browser/tab_contents/tab_contents.h#newcode701 ...
9 years, 1 month ago (2011-11-11 21:51:31 UTC) #3
Matt Perry
http://codereview.chromium.org/8498022/diff/14007/content/browser/tab_contents/tab_contents.h File content/browser/tab_contents/tab_contents.h (right): http://codereview.chromium.org/8498022/diff/14007/content/browser/tab_contents/tab_contents.h#newcode701 content/browser/tab_contents/tab_contents.h:701: virtual void HandleMouseDown() OVERRIDE; On 2011/11/11 21:51:31, John Abd-El-Malek ...
9 years, 1 month ago (2011-11-11 21:54:57 UTC) #4
Matt Perry
9 years, 1 month ago (2011-11-11 21:54:58 UTC) #5
Matt Perry
avi: ping
9 years, 1 month ago (2011-11-15 01:51:54 UTC) #6
Avi (use Gerrit)
Mac code LGTM.
9 years, 1 month ago (2011-11-15 02:45:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/8498022/24001
9 years, 1 month ago (2011-11-16 00:58:20 UTC) #8
commit-bot: I haz the power
Commit queue failed due to new patchset.
9 years, 1 month ago (2011-11-16 04:30:33 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/mpcomplete@chromium.org/8498022/26001
9 years, 1 month ago (2011-11-16 04:31:21 UTC) #10
commit-bot: I haz the power
Change committed as 110262
9 years, 1 month ago (2011-11-16 05:52:26 UTC) #11
Dmitry Polukhin
9 years, 1 month ago (2011-11-16 08:16:12 UTC) #12
Reverted due to multiple red bots after this commit.

Powered by Google App Engine
This is Rietveld 408576698