Update common/chromium/no_private_api.patch

macviews: fix menu transparency, remove some 10.9 code
https://chromium-review.googlesource.com/987476

macviews: materialize macviews menus
https://chromium-review.googlesource.com/998016
This commit is contained in:
Aleksei Kuzmin 2018-07-20 15:10:16 +02:00
Родитель 820279e0e7
Коммит 543d092be9
1 изменённых файлов: 0 добавлений и 21 удалений

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

@ -434,24 +434,3 @@ index 3c6e9903d7df..ddc9061c64d1 100644
// The NSView that hosts the composited CALayer drawing the UI. It fills the
// window but is not hittable so that accessibility hit tests always go to the
@@ -128,7 +130,9 @@ using NSViewComparatorValue = __kindof NSView*;
const CGFloat kMavericksMenuOpacity = 251.0 / 255.0;
const CGFloat kYosemiteMenuOpacity = 177.0 / 255.0;
+#ifndef MAS_BUILD
const int kYosemiteMenuBlur = 80;
+#endif
// Margin at edge and corners of the window that trigger resizing. These match
// actual Cocoa resize margins.
@@ -1470,8 +1474,10 @@ void BridgedNativeWidget::AddCompositorSuperview() {
// solid background, but make the CALayer transparent.
if (base::mac::IsAtLeastOS10_10()) {
[background_layer setOpacity:kYosemiteMenuOpacity];
+#ifndef MAS_BUILD
CGSSetWindowBackgroundBlurRadius(
_CGSDefaultConnection(), [window_ windowNumber], kYosemiteMenuBlur);
+#endif
// The blur effect does not occur with a fully transparent (or fully
// layer-backed) window. Setting a window background will use square
// corners, so ask the contentView to draw one instead.