Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4646)

Unified Diff: chrome/browser/cocoa/chrome_browser_window.h

Issue 3176027: Mac: Well-behaved accelerated plugins, actual fix (Closed)
Patch Set: test Created 10 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/cocoa/chrome_browser_window.h
diff --git a/chrome/browser/cocoa/chrome_browser_window.h b/chrome/browser/cocoa/chrome_browser_window.h
index e6366fd77a1154c6a2ce96cf093ad531be5c9903..810c87fbe8201e14d2c50e0dae0e4bd30edffc9b 100644
--- a/chrome/browser/cocoa/chrome_browser_window.h
+++ b/chrome/browser/cocoa/chrome_browser_window.h
@@ -38,6 +38,7 @@ const NSInteger kChromeWindowButtonsInterButtonSpacing = 7;
NSButton* zoomButton_;
BOOL entered_;
scoped_nsobject<NSTrackingArea> widgetTrackingArea_;
+ int underlaySurfaceCount_;
}
// Tells the window to suppress title drawing.
@@ -50,6 +51,11 @@ const NSInteger kChromeWindowButtonsInterButtonSpacing = 7;
// Update the tracking areas for our window widgets as appropriate.
- (void)updateTrackingAreas;
+// Informs the window that an underlay surface has been added/removed. The
+// window is non-opaque while underlay surfaces are present.
+- (void)underlaySurfaceAdded;
+- (void)underlaySurfaceRemoved;
+
@end
@interface NSWindow (UndocumentedAPI)

Powered by Google App Engine
This is Rietveld 408576698