| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_COCOA_CHROME_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CHROME_BROWSER_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_CHROME_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_COCOA_CHROME_BROWSER_WINDOW_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #import <Cocoa/Cocoa.h> | |
| 10 | |
| 11 #import "content/public/browser/accelerated_window_interface.h" | |
| 12 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" | 9 #import "chrome/browser/ui/cocoa/chrome_event_processing_window.h" |
| 13 | 10 |
| 14 // Common base class for chrome browser windows. Contains methods relating to | 11 // Common base class for chrome browser windows. |
| 15 // hole punching that are shared between framed and fullscreen windows. | 12 @interface ChromeBrowserWindow : ChromeEventProcessingWindow |
| 16 @interface ChromeBrowserWindow | |
| 17 : ChromeEventProcessingWindow<UnderlayableSurface> { | |
| 18 @private | |
| 19 int underlaySurfaceCount_; | |
| 20 } | |
| 21 | |
| 22 // Informs the window that an underlay surface has been added/removed. The | |
| 23 // window is non-opaque while underlay surfaces are present. | |
| 24 - (void)underlaySurfaceAdded; | |
| 25 - (void)underlaySurfaceRemoved; | |
| 26 | |
| 27 @end | 13 @end |
| 28 | 14 |
| 29 #endif // CHROME_BROWSER_UI_COCOA_CHROME_BROWSER_WINDOW_H_ | 15 #endif // CHROME_BROWSER_UI_COCOA_CHROME_BROWSER_WINDOW_H_ |
| OLD | NEW |