#include "testing/helpers/event.h"
#include <stdio.h>
#include <string>
#include <vector>
#include "public/fpdf_fwlevent.h"
#include "public/fpdfview.h"
#include "testing/fx_string_testhelpers.h"
namespace {
uint32_t GetModifiers(std::string modifiers_string) { … }
void SendCharCodeEvent(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::vector<std::string>& tokens) { … }
void SendKeyCodeEvent(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::vector<std::string>& tokens) { … }
void SendMouseDownEvent(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::vector<std::string>& tokens) { … }
void SendMouseUpEvent(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::vector<std::string>& tokens) { … }
void SendMouseDoubleClickEvent(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::vector<std::string>& tokens) { … }
void SendMouseMoveEvent(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::vector<std::string>& tokens) { … }
void SendMouseWheelEvent(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::vector<std::string>& tokens) { … }
void SendFocusEvent(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::vector<std::string>& tokens) { … }
}
void SendPageEvents(FPDF_FORMHANDLE form,
FPDF_PAGE page,
const std::string& events,
const std::function<void()>& idler) { … }