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

Side by Side Diff: plugin/mac/plugin_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 23 matching lines...) Expand all
34 #define O3D_PLUGIN_MAC_PLUGIN_MAC_H_ 34 #define O3D_PLUGIN_MAC_PLUGIN_MAC_H_
35 35
36 #include <CoreFoundation/CoreFoundation.h> 36 #include <CoreFoundation/CoreFoundation.h>
37 #include <npupp.h> 37 #include <npupp.h>
38 #include <AGL/agl.h> 38 #include <AGL/agl.h>
39 #include <vector> 39 #include <vector>
40 40
41 // Just for o3d::Event::Button at the moment. 41 // Just for o3d::Event::Button at the moment.
42 #include "core/cross/event.h" 42 #include "core/cross/event.h"
43 43
44 namespace o3d {
44 45
45 // RenderTimer maintains an animation timer (nominally running at 60fps) 46 // RenderTimer maintains an animation timer (nominally running at 60fps)
46 // 47 //
47 // Keeps track of the current NPP instances running in the browser and then 48 // Keeps track of the current NPP instances running in the browser and then
48 // renders each one during each timer callback. 49 // renders each one during each timer callback.
49 class RenderTimer { 50 class RenderTimer {
50 public: 51 public:
51 RenderTimer() {} 52 RenderTimer() {}
52 53
53 void Start(); 54 void Start();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 bool HandleMacEvent(EventRecord* the_event, NPP instance); 95 bool HandleMacEvent(EventRecord* the_event, NPP instance);
95 96
96 o3d::Event::Button MacOSMouseButtonNumberToO3DButton(int inButton); 97 o3d::Event::Button MacOSMouseButtonNumberToO3DButton(int inButton);
97 98
98 bool GetBrowserVersionInfo(int *returned_major, 99 bool GetBrowserVersionInfo(int *returned_major,
99 int *returned_minor, 100 int *returned_minor,
100 int *returned_bugfix); 101 int *returned_bugfix);
101 102
102 bool UseSoftwareRenderer(); 103 bool UseSoftwareRenderer();
103 104
105 } // namespace o3d
106
104 #endif // O3D_PLUGIN_MAC_PLUGIN_MAC_H_ 107 #endif // O3D_PLUGIN_MAC_PLUGIN_MAC_H_
OLDNEW
« plugin/mac/main_mac.mm ('K') | « plugin/mac/main_mac.mm ('k') | plugin/mac/plugin_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698