capybara-webkit/src/FrameFocus.h

28 lines
458 B
C
Raw Normal View History

#include "SocketCommand.h"
2011-04-20 23:02:20 +00:00
class QWebFrame;
class FrameFocus : public SocketCommand {
Q_OBJECT
public:
FrameFocus(WebPageManager *, QStringList &arguments, QObject *parent = 0);
virtual void start();
2011-04-20 23:02:20 +00:00
private:
void findFrames();
void focusParent();
void focusIndex(int index);
bool isFrameAtIndex(int index);
void focusId(QString id);
void success();
void frameNotFound();
QList<QWebFrame *> frames;
};