mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
17 lines
443 B
C++
17 lines
443 B
C++
#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));
|
|
}
|
|
|