annotate vendor/jcalderonzumba/gastonjs/src/Browser/BrowserFrameTrait.php @ 19:fa3358dc1485 tip

Add ndrum files
author Chris Cannam
date Wed, 28 Aug 2019 13:14:47 +0100
parents 4c8ae668cc8c
children
rev   line source
Chris@0 1 <?php
Chris@0 2
Chris@0 3 namespace Zumba\GastonJS\Browser;
Chris@0 4
Chris@0 5 /**
Chris@0 6 * Trait BrowserFrameTrait
Chris@0 7 * @package Zumba\GastonJS\Browser
Chris@0 8 */
Chris@0 9 trait BrowserFrameTrait {
Chris@0 10 /**
Chris@0 11 * Back to the parent of the iframe if possible
Chris@0 12 * @return mixed
Chris@0 13 * @throws \Zumba\GastonJS\Exception\BrowserError
Chris@0 14 * @throws \Exception
Chris@0 15 */
Chris@0 16 public function popFrame() {
Chris@0 17 return $this->command("pop_frame");
Chris@0 18 }
Chris@0 19
Chris@0 20 /**
Chris@0 21 * Goes into the iframe to do stuff
Chris@0 22 * @param string $name
Chris@0 23 * @param int $timeout
Chris@0 24 * @return mixed
Chris@0 25 * @throws \Zumba\GastonJS\Exception\BrowserError
Chris@0 26 * @throws \Exception
Chris@0 27 */
Chris@0 28 public function pushFrame($name, $timeout = null) {
Chris@0 29 return $this->command("push_frame", $name, $timeout);
Chris@0 30 }
Chris@0 31 }