DescriptionMacViews: Initial skeleton for implementing NativeWidgetMac
This adds two classes under ui/views/cocoa: BridgedNativeWidget (a C++
class which bridges an NSWindow) and BridgedContentView (an Objective-C
"root" NSView which bridges a views::View).
With respect to NativeWidgetMac, BridgedNativeWidget performs a role
similar to aura::Window on Aura platforms. Among other things, it will
(soon) be a ui::LayerOwner. It serves for implementation-hiding: it owns
Objective-C objects for NativeWidgetMac so that native_widget_mac.h does
not force .cc files to become .mm. It also allows implementation-sharing
between NativeWidgetMac and, later, DesktopNativeWidgetMac.
BridgedContentView allows messages to feed through from Cocoa into
toolkit-views, by implementing the required Objective-C interfaces and
bridging to C++ code.
Adds 3 tests, and gets 17 others passing. Total 202/468 passing.
BUG=378134
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=276957
Patch Set 1 #Patch Set 2 : slice out NativeTheme change to crrev/328103002 #Patch Set 3 : ->origin().IsOrigin probably nicer (and not a tautology) #Patch Set 4 : rebase to master now we have stats #
Total comments: 10
Patch Set 5 : respond to comments #Patch Set 6 : rebase to master (header conflict with r276556) #
Total comments: 4
Patch Set 7 : respond to comments #
Messages
Total messages: 12 (0 generated)
|