|
|
Created:
6 years, 5 months ago by tapted Modified:
6 years, 5 months ago CC:
chromium-reviews, chrome-apps-syd-reviews_chromium.org, mac-views-reviews_chromium.org Base URL:
svn://svn.chromium.org/chrome/trunk/src Project:
chromium Visibility:
Public. |
DescriptionMacViews: Exclude the toolkit-views TranslateClient InfoBar stub on Mac
The Translate UI is moving from a InfoBar to a bubble. Mac still uses
the InfoBar but on other views platforms, it is replaced by a stub which
MacViews isn't ready to use.
BUG=390755, 276181
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283500
Patch Set 1 : failed attempt at a default impl in the base class #Patch Set 2 : avoid vtable mismatch #Patch Set 3 : needs both headers #Patch Set 4 : just #ifdef+mac #Messages
Total messages: 20 (0 generated)
hajimehoshi - please review for c/b/translate pkasting - please review for c/b/ui/*/infobars
If the issue is that Mac still has code in translate_infobar_base.mm, and it wants to use that implementation, why can't you just change the #if if chrome_translate_client.cc to be "#if defined(TOOLKIT_VIEWS) && !defined(OS_MACOSX)"?
On 2014/07/15 19:09:42, Peter Kasting wrote: > If the issue is that Mac still has code in translate_infobar_base.mm, and it > wants to use that implementation, why can't you just change the #if if > chrome_translate_client.cc to be "#if defined(TOOLKIT_VIEWS) && > !defined(OS_MACOSX)"? For MacViews we want to port things over gradually. Unlike a switch directly to Aura, we have the opportunity to do a toolkit_views=1 Chrome build that initially just runs all the existing Cocoa UI. (And this is actually now pretty close - basically this and crrev.com/393763002, crrev.com/375843002 will do it) But for this, we need to ensure that chrome_browser with toolkit_views=1 works for the Cocoa chrome_browser_ui component -- method signatures need to match and no symbol dupes. For some things we should even be able to introduce some of the views UI on mac between a chrome://flag, with bits from both ui components.
On 2014/07/15 22:07:34, tapted wrote: > On 2014/07/15 19:09:42, Peter Kasting wrote: > > If the issue is that Mac still has code in translate_infobar_base.mm, and it > > wants to use that implementation, why can't you just change the #if if > > chrome_translate_client.cc to be "#if defined(TOOLKIT_VIEWS) && > > !defined(OS_MACOSX)"? > > For MacViews we want to port things over gradually. Unlike a switch directly to > Aura, we have the opportunity to do a toolkit_views=1 Chrome build that > initially just runs all the existing Cocoa UI. (And this is actually now pretty > close - basically this and crrev.com/393763002, crrev.com/375843002 will do it) > > But for this, we need to ensure that chrome_browser with toolkit_views=1 works > for the Cocoa chrome_browser_ui component -- method signatures need to match and > no symbol dupes. For some things we should even be able to introduce some of the > views UI on mac between a chrome://flag, with bits from both ui components. I don't understand how any of that answers my question. The proposal I just gave was supposed to ensure "method signatures match and no symbol dupes". Why doesn't it?
On 2014/07/15 22:09:22, Peter Kasting wrote: > On 2014/07/15 22:07:34, tapted wrote: > > On 2014/07/15 19:09:42, Peter Kasting wrote: > > > If the issue is that Mac still has code in translate_infobar_base.mm, and it > > > wants to use that implementation, why can't you just change the #if if > > > chrome_translate_client.cc to be "#if defined(TOOLKIT_VIEWS) && > > > !defined(OS_MACOSX)"? > > > > For MacViews we want to port things over gradually. Unlike a switch directly > to > > Aura, we have the opportunity to do a toolkit_views=1 Chrome build that > > initially just runs all the existing Cocoa UI. (And this is actually now > pretty > > close - basically this and crrev.com/393763002, crrev.com/375843002 will do > it) > > > > But for this, we need to ensure that chrome_browser with toolkit_views=1 works > > for the Cocoa chrome_browser_ui component -- method signatures need to match > and > > no symbol dupes. For some things we should even be able to introduce some of > the > > views UI on mac between a chrome://flag, with bits from both ui components. > > I don't understand how any of that answers my question. The proposal I just > gave was supposed to ensure "method signatures match and no symbol dupes". Why > doesn't it? Sorry - I must have spent too long thinking about this one :/. You're right - for this case, it does work. I'm happy with an #ifdef change here for now. I think the only downside is that the #ifdef will need to change again when porting this part of the UI on Mac to use views (i.e. can't be achieved by shuffling things around in gyp files). It makes this case the odd-one-out in this respect, but if this UI is feasible to have both built and switch with a chrome://flag it will need to change anyway. I've updated the CL - PTAL.
LGTM
lgtm
The CQ bit was checked by tapted@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/390183007/100001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...)
The CQ bit was checked by tapted@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/390183007/100001
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...)
The CQ bit was unchecked by commit-bot@chromium.org
Try jobs failed on following builders: android_dbg_triggered_tests on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_dbg_triggered...)
The CQ bit was checked by tapted@chromium.org
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/390183007/100001
Message was sent while issue was closed.
Change committed as 283500 |