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

Side by Side Diff: plugin/mac/graphics_utils_mac.h

Issue 149130: In preparation for becoming an internal plugin in chrome I did these things:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 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
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 18 matching lines...) Expand all
29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 29 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30 */ 30 */
31 31
32 #ifndef O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_ 32 #ifndef O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_
33 #define O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_ 33 #define O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_
34 34
35 #include <Carbon/Carbon.h> 35 #include <Carbon/Carbon.h>
36 #include <Cocoa/Cocoa.h> 36 #include <Cocoa/Cocoa.h>
37 #include <AGL/agl.h> 37 #include <AGL/agl.h>
38 38
39 namespace o3d {
40
39 void SlideWindowToRect(WindowRef the_window, 41 void SlideWindowToRect(WindowRef the_window,
40 CGRect destination_rect, 42 CGRect destination_rect,
41 double transition_duration_seconds); 43 double transition_duration_seconds);
42 44
43 void SetWindowLevel(WindowRef window, int level); 45 void SetWindowLevel(WindowRef window, int level);
44 46
45 bool SetWindowForAGLContext(AGLContext context, WindowRef window); 47 bool SetWindowForAGLContext(AGLContext context, WindowRef window);
46 48
47 bool IsMacOSTenFiveOrHigher(); 49 bool IsMacOSTenFiveOrHigher();
48 50
49 Rect CGRect2Rect(const CGRect &inRect); 51 Rect CGRect2Rect(const CGRect &inRect);
50 52
51 CGRect Rect2CGRect(const Rect &inRect); 53 CGRect Rect2CGRect(const Rect &inRect);
52 54
53 void PaintRoundedCGRect(CGContextRef context, CGRect rect, 55 void PaintRoundedCGRect(CGContextRef context, CGRect rect,
54 float radius, bool fill); 56 float radius, bool fill);
55 57
58 } // namespace o3d
59
56 #endif // O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_ 60 #endif // O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698