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

Side by Side Diff: ui/base/cocoa/underlay_opengl_hosting_window.h

Issue 10037008: Fix window shadows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase only Created 8 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/content_tests.gypi ('k') | ui/base/cocoa/underlay_opengl_hosting_window.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 UI_BASE_COCOA_UNDERLAY_OPENGL_HOSTING_WINDOW_H_ 5 #ifndef UI_BASE_COCOA_UNDERLAY_OPENGL_HOSTING_WINDOW_H_
6 #define UI_BASE_COCOA_UNDERLAY_OPENGL_HOSTING_WINDOW_H_ 6 #define UI_BASE_COCOA_UNDERLAY_OPENGL_HOSTING_WINDOW_H_
7 #pragma once 7 #pragma once
8 8
9 #import <Cocoa/Cocoa.h> 9 #import <Cocoa/Cocoa.h>
10 10
11 // Protocol implemented by windows that need to be informed explicitly about
12 // underlay surfaces.
13 @protocol UnderlayableSurface
14 - (void)underlaySurfaceAdded;
15 - (void)underlaySurfaceRemoved;
16 @end
17
18 // Common base class for windows that host a OpenGL surface that renders under 11 // Common base class for windows that host a OpenGL surface that renders under
19 // the window. Contains methods relating to hole punching so that the OpenGL 12 // the window. Contains methods relating to hole punching so that the OpenGL
20 // surface is visible through the window. 13 // surface is visible through the window.
21 @interface UnderlayOpenGLHostingWindow : NSWindow<UnderlayableSurface> { 14 @interface UnderlayOpenGLHostingWindow : NSWindow
22 @private
23 int underlaySurfaceCount_;
24 }
25
26 // Informs the window that an underlay surface has been added/removed. The
27 // window is non-opaque while underlay surfaces are present.
28 - (void)underlaySurfaceAdded;
29 - (void)underlaySurfaceRemoved;
30
31 @end 15 @end
32 16
33 #endif // UI_BASE_COCOA_UNDERLAY_OPENGL_HOSTING_WINDOW_H_ 17 #endif // UI_BASE_COCOA_UNDERLAY_OPENGL_HOSTING_WINDOW_H_
OLDNEW
« no previous file with comments | « content/content_tests.gypi ('k') | ui/base/cocoa/underlay_opengl_hosting_window.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698