Sha256: be7d4d81e2e4009730a3291e407035fd929499c4cf40aa6f53c180d835b0b995

Contents?: true

Size: 510 Bytes

Versions: 22

Compression:

Stored size: 510 Bytes

Contents

#include "WindowSize.h"
#include "WebPage.h"
#include "WebPageManager.h"
#include "JsonSerializer.h"

WindowSize::WindowSize(WebPageManager *manager, QStringList &arguments, QObject *parent) : WindowCommand(manager, arguments, parent) {
}

void WindowSize::windowFound(WebPage *page) {
  QSize size = page->viewportSize();
  QVariantList elements;
  elements << size.width();
  elements << size.height();
  JsonSerializer serializer;
  QByteArray json = serializer.serialize(elements);
  finish(true, json);
}

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
capybara-webkit-1.15.1 src/WindowSize.cpp
capybara-webkit-1.15.0 src/WindowSize.cpp
capybara-webkit-1.14.0 src/WindowSize.cpp
capybara-webkit-1.13.0 src/WindowSize.cpp
capybara-webkit-1.12.0 src/WindowSize.cpp
capybara-webkit-1.11.1 src/WindowSize.cpp
capybara-webkit-1.11.0 src/WindowSize.cpp
capybara-webkit-1.10.1 src/WindowSize.cpp
capybara-webkit-1.10.0 src/WindowSize.cpp
capybara-webkit-1.9.0 src/WindowSize.cpp
capybara-webkit-1.8.0 src/WindowSize.cpp
capybara-webkit-1.7.1 src/WindowSize.cpp
capybara-webkit-1.7.0 src/WindowSize.cpp
capybara-webkit-1.6.0 src/WindowSize.cpp
capybara-webkit-1.5.2 src/WindowSize.cpp
capybara-webkit-1.5.1 src/WindowSize.cpp
capybara-webkit-1.5.0 src/WindowSize.cpp
capybara-webkit-1.4.1 src/WindowSize.cpp
capybara-webkit-1.4.0 src/WindowSize.cpp
capybara-webkit-1.3.1 src/WindowSize.cpp