Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

22 lines (16 sloc) 0.553 kb
#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);
emitFinished(true, json);
}
Jump to Line
Something went wrong with that request. Please try again.