| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2009, 2010, 2011, 2012 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 362 | 362 |
| 363 // Support for resource loading initiated by plugins ------------------- | 363 // Support for resource loading initiated by plugins ------------------- |
| 364 | 364 |
| 365 // Returns next unused request identifier which is unique within the | 365 // Returns next unused request identifier which is unique within the |
| 366 // parent Page. | 366 // parent Page. |
| 367 virtual unsigned long createUniqueIdentifierForRequest() = 0; | 367 virtual unsigned long createUniqueIdentifierForRequest() = 0; |
| 368 | 368 |
| 369 | 369 |
| 370 // Developer tools ----------------------------------------------------- | 370 // Developer tools ----------------------------------------------------- |
| 371 | 371 |
| 372 // Set an override of device scale factor passed from WebView to | |
| 373 // compositor. Pass zero to cancel override. This is used to implement | |
| 374 // device metrics emulation. | |
| 375 virtual void setCompositorDeviceScaleFactorOverride(float) = 0; | |
| 376 | |
| 377 // Set offset and scale on the root composited layer. This is used | |
| 378 // to implement device metrics emulation. | |
| 379 virtual void setRootLayerTransform(const WebSize& offset, float scale) = 0; | |
| 380 | |
| 381 // Enables device emulation as specified in params. | 372 // Enables device emulation as specified in params. |
| 382 virtual void enableDeviceEmulation(const WebDeviceEmulationParams&) = 0; | 373 virtual void enableDeviceEmulation(const WebDeviceEmulationParams&) = 0; |
| 383 | 374 |
| 384 // Cancel emulation started via |enableDeviceEmulation| call. | 375 // Cancel emulation started via |enableDeviceEmulation| call. |
| 385 virtual void disableDeviceEmulation() = 0; | 376 virtual void disableDeviceEmulation() = 0; |
| 386 | 377 |
| 387 // The embedder may optionally engage a WebDevToolsAgent. This may only | 378 // The embedder may optionally engage a WebDevToolsAgent. This may only |
| 388 // be set once per WebView. | 379 // be set once per WebView. |
| 389 virtual WebDevToolsAgent* devToolsAgent() = 0; | 380 virtual WebDevToolsAgent* devToolsAgent() = 0; |
| 390 | 381 |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 493 // event gets generated/tested. | 484 // event gets generated/tested. |
| 494 virtual void forceNextWebGLContextCreationToFail() = 0; | 485 virtual void forceNextWebGLContextCreationToFail() = 0; |
| 495 | 486 |
| 496 protected: | 487 protected: |
| 497 ~WebView() {} | 488 ~WebView() {} |
| 498 }; | 489 }; |
| 499 | 490 |
| 500 } // namespace blink | 491 } // namespace blink |
| 501 | 492 |
| 502 #endif | 493 #endif |
| OLD | NEW |