DescriptionMacViews: Guard Objective-C bits in content::WebContentsViewDelegate with __OBJC__
Currently WebContentsViewDelegate has a mix of ObjectiveC and C++ code
guarded by #ifdef OS_MACOSX. This means, on Mac, it can only be included
in .mm files.
For views on Mac, we want to reuse the toolkit-views WCVD (and tests)
when hosting a WebContents in a views::Widget. So we can't convert
everything to .mm.
This CL changes the guards to use __OBJC__ and ensures the vtable is a
consistent size with the compile flags used on MacViews.
To reduce churn, the WCVD methods are given default implementations.
MacViews needs the other methods, currently guarded by USE_AURA, so
things get really complex without this.
BUG=399191
Committed: https://crrev.com/1914f8eaacd794447cb5e35d4e6628b9761b9ebe
Cr-Commit-Position: refs/heads/master@{#292349}
Patch Set 1 #Patch Set 2 : just changes for the first pass #Patch Set 3 : fix compile, comment #Patch Set 4 : fix content_browsertests #
Total comments: 1
Patch Set 5 : OS_MACOSX -> __OBJC__ + void* #Messages
Total messages: 16 (0 generated)
|