| 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 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 bool GetDisplayMode(int id, o3d::DisplayMode *mode); | 349 bool GetDisplayMode(int id, o3d::DisplayMode *mode); |
| 350 | 350 |
| 351 // Get a vector of the available fullscreen display modes. | 351 // Get a vector of the available fullscreen display modes. |
| 352 // Clears *modes on error. | 352 // Clears *modes on error. |
| 353 void GetDisplayModes(std::vector<o3d::DisplayMode> *modes); | 353 void GetDisplayModes(std::vector<o3d::DisplayMode> *modes); |
| 354 | 354 |
| 355 // This isn't exposed directly to JavaScript for security reasons; it gets | 355 // This isn't exposed directly to JavaScript for security reasons; it gets |
| 356 // called by the platform-specific event-handling code if the region set by | 356 // called by the platform-specific event-handling code if the region set by |
| 357 // SetFullscreenClickRegion is clicked. It requests the mode previously set | 357 // SetFullscreenClickRegion is clicked. It requests the mode previously set |
| 358 // by SetFullscreenClickRegion(), and fails if there wasn't one. | 358 // by SetFullscreenClickRegion(), and fails if there wasn't one. |
| 359 #ifdef OS_LINUX |
| 360 bool RequestFullscreenDisplay(guint32 timestamp); |
| 361 #else |
| 359 bool RequestFullscreenDisplay(); | 362 bool RequestFullscreenDisplay(); |
| 363 #endif |
| 360 | 364 |
| 361 // Make a region of the plugin area that will invoke fullscreen mode if | 365 // Make a region of the plugin area that will invoke fullscreen mode if |
| 362 // clicked. The app developer is responsible for communicating this to the | 366 // clicked. The app developer is responsible for communicating this to the |
| 363 // user, as this region has no visible marker. The developer is also | 367 // user, as this region has no visible marker. The developer is also |
| 364 // responsible for updating this region if the plugin gets resized, as we | 368 // responsible for updating this region if the plugin gets resized, as we |
| 365 // don't know whether or how to scale it. | 369 // don't know whether or how to scale it. |
| 366 // Fails if the mode_id supplied isn't valid. Returns true on success. | 370 // Fails if the mode_id supplied isn't valid. Returns true on success. |
| 367 bool SetFullscreenClickRegion(int x, int y, int width, int height, | 371 bool SetFullscreenClickRegion(int x, int y, int width, int height, |
| 368 int mode_id); | 372 int mode_id); |
| 369 void ClearFullscreenClickRegion() { | 373 void ClearFullscreenClickRegion() { |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 487 #if defined(CB_SERVICE_REMOTE) | 491 #if defined(CB_SERVICE_REMOTE) |
| 488 NPObject* gpu_plugin_object_; | 492 NPObject* gpu_plugin_object_; |
| 489 #endif | 493 #endif |
| 490 }; | 494 }; |
| 491 | 495 |
| 492 } // namespace o3d | 496 } // namespace o3d |
| 493 } // namespace glue | 497 } // namespace glue |
| 494 | 498 |
| 495 | 499 |
| 496 #endif // O3D_PLUGIN_CROSS_O3D_GLUE_H_ | 500 #endif // O3D_PLUGIN_CROSS_O3D_GLUE_H_ |
| OLD | NEW |