Remove 10.12 check handled by respondsToSelector

This commit is contained in:
Kevin Sawicki 2017-03-30 13:46:34 -07:00
Родитель bd935b213f
Коммит c8b992fa39
1 изменённых файлов: 9 добавлений и 11 удалений

Просмотреть файл

@ -764,17 +764,15 @@ NativeWindowMac::NativeWindowMac(
[window_ setOpaque:NO];
}
if (base::mac::IsAtLeastOS10_12()) {
// Create a tab only if tabbing identifier is specified and window has
// a native title bar.
if (tabbing_identifier_.empty() || transparent() || !has_frame()) {
if ([window_ respondsToSelector:@selector(tabbingMode)]) {
[window_ setTabbingMode:NSWindowTabbingModeDisallowed];
}
} else {
if ([window_ respondsToSelector:@selector(tabbingIdentifier)]) {
[window_ setTabbingIdentifier:base::SysUTF8ToNSString(tabbing_identifier_)];
}
// Create a tab only if tabbing identifier is specified and window has
// a native title bar.
if (tabbing_identifier_.empty() || transparent() || !has_frame()) {
if ([window_ respondsToSelector:@selector(tabbingMode)]) {
[window_ setTabbingMode:NSWindowTabbingModeDisallowed];
}
} else {
if ([window_ respondsToSelector:@selector(tabbingIdentifier)]) {
[window_ setTabbingIdentifier:base::SysUTF8ToNSString(tabbing_identifier_)];
}
}