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

Issue 363233002: Abstract base 'ExtensionView' to Fix DEPS violation in extension_view_host.h (Closed)

Created:
6 years, 5 months ago by tapted
Modified:
6 years, 5 months ago
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, tfarina, extensions-reviews_chromium.org, chrome-apps-syd-reviews_chromium.org, mac-views-reviews_chromium.org, Yoyo Zhou, James Cook
Project:
chromium
Visibility:
Public.

Description

Abstract base 'ExtensionView' to Fix DEPS violation in extension_view_host.h c/b/e/extension_view_host.h currently includes platform-specific UI code and has a "temporary" exception in extensions/DEPS. This CL removes the exception and resolves the layering by having the platform-specific UI code provide an implementation of (static) ExtensionViewHost::CreateExtensionView(). An abstract base, ExtensionView, is added for use in the platform agnostic code. This removes a lot of #ifdefs from extension_view_host.h which were in the way while trying to get toolkit-views building on Mac for the `chrome` target. BUG=125846, 390755 TEST=Refactoring. Should be no functional changes for extension views (e.g. Google Cast toolbar popup, Lookup Companion for Wikipedia) - appearance and keyboard interaction should be unchanged. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=281962

Patch Set 1 : rebase? #

Patch Set 2 : fix android #

Patch Set 3 : Init() must be done after assigning #

Total comments: 7

Patch Set 4 : respond to comments #

Total comments: 6

Patch Set 5 : respond to comments #

Total comments: 4

Patch Set 6 : cocoacomments #

Patch Set 7 : rebase for r281699 (unused hwnd_util.h) #

Unified diffs Side-by-side diffs Delta from patch set Stats (+276 lines, -213 lines) Patch
M chrome/browser/extensions/DEPS View 1 chunk +0 lines, -5 lines 0 comments Download
A chrome/browser/extensions/extension_view.h View 1 2 3 1 chunk +56 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_view_host.h View 4 chunks +9 lines, -21 lines 0 comments Download
M chrome/browser/extensions/extension_view_host.cc View 1 2 7 chunks +8 lines, -31 lines 0 comments Download
M chrome/browser/extensions/extension_view_host_mac.h View 1 chunk +4 lines, -9 lines 0 comments Download
M chrome/browser/extensions/extension_view_host_mac.mm View 2 chunks +0 lines, -17 lines 0 comments Download
D chrome/browser/ui/android/extensions/extension_view_android.h View 1 chunk +0 lines, -29 lines 0 comments Download
M chrome/browser/ui/android/extensions/extension_view_android.cc View 1 1 chunk +9 lines, -6 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_popup_controller.mm View 1 2 3 4 5 6 4 chunks +18 lines, -9 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_view_mac.h View 1 2 3 4 5 4 chunks +22 lines, -32 lines 0 comments Download
M chrome/browser/ui/cocoa/extensions/extension_view_mac.mm View 1 2 3 4 5 4 chunks +49 lines, -15 lines 0 comments Download
M chrome/browser/ui/cocoa/infobars/extension_infobar_controller.mm View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/ui/views/extensions/extension_dialog.cc View 1 2 3 4 7 chunks +20 lines, -10 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_popup.cc View 1 2 3 4 5 6 3 chunks +13 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_view_views.h View 1 2 3 chunks +13 lines, -12 lines 0 comments Download
M chrome/browser/ui/views/extensions/extension_view_views.cc View 1 2 5 chunks +40 lines, -4 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.h View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/infobars/extension_infobar.cc View 1 2 3 4 5 chunks +11 lines, -7 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download

Messages

Total messages: 14 (0 generated)
tapted
Hi Finnur and Peter, please take a look.
6 years, 5 months ago (2014-07-03 12:36:45 UTC) #1
tapted
oops - meant to add - suggested split: finnur: extensions stuff (all of it really) ...
6 years, 5 months ago (2014-07-03 12:45:29 UTC) #2
tfarina
yoz, jamescook, fyi. Trent, you are flying! :)
6 years, 5 months ago (2014-07-03 12:56:37 UTC) #3
tfarina
Just curious, how did you test this? Which extension did you use? I think that ...
6 years, 5 months ago (2014-07-03 12:58:01 UTC) #4
Finnur
LGTM https://codereview.chromium.org/363233002/diff/50022/chrome/browser/extensions/extension_view.h File chrome/browser/extensions/extension_view.h (right): https://codereview.chromium.org/363233002/diff/50022/chrome/browser/extensions/extension_view.h#newcode50 chrome/browser/extensions/extension_view.h:50: // Method for the ExtensionHost to notify that ...
6 years, 5 months ago (2014-07-03 14:27:06 UTC) #5
tapted
On 2014/07/03 12:58:01, tfarina wrote: > Just curious, how did you test this? Which extension ...
6 years, 5 months ago (2014-07-04 00:08:04 UTC) #6
James Cook
Hooray! Thanks for doing this.
6 years, 5 months ago (2014-07-07 16:41:58 UTC) #7
Peter Kasting
I can't review ObjC code, but the rest of c/b/ui LGTM https://codereview.chromium.org/363233002/diff/190001/chrome/browser/ui/views/extensions/extension_dialog.cc File chrome/browser/ui/views/extensions/extension_dialog.cc (right): ...
6 years, 5 months ago (2014-07-07 22:42:23 UTC) #8
tapted
+rsesek for OWNERS coverage for the Objective C stuff. There are 4 files under c/b/ui/cocoa/ ...
6 years, 5 months ago (2014-07-08 07:11:51 UTC) #9
Robert Sesek
cocoa/ LGTM https://codereview.chromium.org/363233002/diff/230001/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm File chrome/browser/ui/cocoa/extensions/extension_view_mac.mm (right): https://codereview.chromium.org/363233002/diff/230001/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm#newcode35 chrome/browser/ui/cocoa/extensions/extension_view_mac.mm:35: content::RenderViewHost* ExtensionViewMac::render_view_host() const { nit: implementation order ...
6 years, 5 months ago (2014-07-08 12:50:37 UTC) #10
tapted
https://codereview.chromium.org/363233002/diff/230001/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm File chrome/browser/ui/cocoa/extensions/extension_view_mac.mm (right): https://codereview.chromium.org/363233002/diff/230001/chrome/browser/ui/cocoa/extensions/extension_view_mac.mm#newcode35 chrome/browser/ui/cocoa/extensions/extension_view_mac.mm:35: content::RenderViewHost* ExtensionViewMac::render_view_host() const { On 2014/07/08 12:50:37, rsesek wrote: ...
6 years, 5 months ago (2014-07-08 23:54:58 UTC) #11
tapted
The CQ bit was checked by tapted@chromium.org
6 years, 5 months ago (2014-07-09 00:21:11 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/363233002/270001
6 years, 5 months ago (2014-07-09 00:25:30 UTC) #13
commit-bot: I haz the power
6 years, 5 months ago (2014-07-09 05:48:48 UTC) #14
Message was sent while issue was closed.
Change committed as 281962

Powered by Google App Engine
This is Rietveld 408576698