Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (16 sloc) 547 Bytes
#include "GetWindowHandles.h"
#include "WebPageManager.h"
#include "CommandFactory.h"
#include "WebPage.h"
#include "JsonSerializer.h"
#include <QStringList>
GetWindowHandles::GetWindowHandles(WebPageManager *manager, QStringList &arguments, QObject *parent) : SocketCommand(manager, arguments, parent) {
}
void GetWindowHandles::start() {
QVariantList handles;
foreach(WebPage *page, manager()->pages())
handles << page->uuid();
JsonSerializer serializer;
QByteArray json = serializer.serialize(handles);
finish(true, json);
}
Something went wrong with that request. Please try again.