| OLD | NEW |
| 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 22 matching lines...) Expand all Loading... |
| 33 // This file defines a few functions to check the user's hardware and software | 33 // This file defines a few functions to check the user's hardware and software |
| 34 // configuration. | 34 // configuration. |
| 35 | 35 |
| 36 #ifndef O3D_PLUGIN_CROSS_CONFIG_H_ | 36 #ifndef O3D_PLUGIN_CROSS_CONFIG_H_ |
| 37 #define O3D_PLUGIN_CROSS_CONFIG_H_ | 37 #define O3D_PLUGIN_CROSS_CONFIG_H_ |
| 38 | 38 |
| 39 #include <fstream> | 39 #include <fstream> |
| 40 #include <string> | 40 #include <string> |
| 41 #include "plugin/cross/o3d_glue.h" | 41 #include "plugin/cross/o3d_glue.h" |
| 42 | 42 |
| 43 namespace o3d { |
| 44 |
| 43 // Returns the user agent string. | 45 // Returns the user agent string. |
| 44 // Arguments: | 46 // Arguments: |
| 45 // npp: plugin instance. | 47 // npp: plugin instance. |
| 46 // Returns: | 48 // Returns: |
| 47 // The user agent string. | 49 // The user agent string. |
| 48 std::string GetUserAgent(NPP npp); | 50 std::string GetUserAgent(NPP npp); |
| 49 | 51 |
| 50 struct GPUDevice { | 52 struct GPUDevice { |
| 51 unsigned int vendor_id; | 53 unsigned int vendor_id; |
| 52 unsigned int device_id; | 54 unsigned int device_id; |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // into metrics. | 107 // into metrics. |
| 106 bool GetUserConfigMetrics(); | 108 bool GetUserConfigMetrics(); |
| 107 | 109 |
| 108 // Checks the browser version. | 110 // Checks the browser version. |
| 109 // Arguments: | 111 // Arguments: |
| 110 // npp: plugin instance. | 112 // npp: plugin instance. |
| 111 bool GetUserAgentMetrics(NPP npp); | 113 bool GetUserAgentMetrics(NPP npp); |
| 112 | 114 |
| 113 bool GetOpenGLMetrics(); | 115 bool GetOpenGLMetrics(); |
| 114 | 116 |
| 117 } // namespace o3d |
| 118 |
| 115 #endif // O3D_PLUGIN_CROSS_CONFIG_H_ | 119 #endif // O3D_PLUGIN_CROSS_CONFIG_H_ |
| OLD | NEW |