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

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

Issue 577038: O3D Mac: Add CoreAnimation support (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 10 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 | « plugin/cross/o3d_glue.cc ('k') | plugin/mac/graphics_utils_mac.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 /* 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 30 matching lines...) Expand all
41 void SlideWindowToRect(WindowRef the_window, 41 void SlideWindowToRect(WindowRef the_window,
42 CGRect destination_rect, 42 CGRect destination_rect,
43 double transition_duration_seconds); 43 double transition_duration_seconds);
44 44
45 void SetWindowLevel(WindowRef window, int level); 45 void SetWindowLevel(WindowRef window, int level);
46 46
47 bool SetWindowForAGLContext(AGLContext context, WindowRef window); 47 bool SetWindowForAGLContext(AGLContext context, WindowRef window);
48 48
49 bool IsMacOSTenFiveOrHigher(); 49 bool IsMacOSTenFiveOrHigher();
50 50
51 bool IsMacOSTenSixOrHigher();
52
51 Rect CGRect2Rect(const CGRect &inRect); 53 Rect CGRect2Rect(const CGRect &inRect);
52 54
53 CGRect Rect2CGRect(const Rect &inRect); 55 CGRect Rect2CGRect(const Rect &inRect);
54 56
55 void PaintRoundedCGRect(CGContextRef context, CGRect rect, 57 void PaintRoundedCGRect(CGContextRef context, CGRect rect,
56 float radius, bool fill); 58 float radius, bool fill);
57 59
58 } // namespace o3d 60 } // namespace o3d
59 61
60 #endif // O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_ 62 #endif // O3D_PLUGIN_MAC_GRAPHICS_UTILS_MAC_H_
OLDNEW
« no previous file with comments | « plugin/cross/o3d_glue.cc ('k') | plugin/mac/graphics_utils_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698