Sha256: df7844c4a4cdf29e1365ed2eed714c08051f72319804b2703a04b4b0506214ad

Contents?: true

Size: 443 Bytes

Versions: 4

Compression:

Stored size: 443 Bytes

Contents

#include "ResizeWindow.h"
#include "WebPage.h"
#include "WebPageManager.h"

ResizeWindow::ResizeWindow(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}

void ResizeWindow::start() {
  int     width     = arguments()[0].toInt();
  int     height    = arguments()[1].toInt();

  QSize size(width, height);
  page()->setViewportSize(size);

  emit finished(new Response(true));
}

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
capybara-webkit-0.13.2 src/ResizeWindow.cpp
capybara-webkit-0.13.1 src/ResizeWindow.cpp
capybara-webkit-0.13.0 src/ResizeWindow.cpp
otherinbox-capybara-webkit-0.12.0.1 src/ResizeWindow.cpp