Path: blob/trunk/cpp/webdriver-interactions/interactions_linux.h
2867 views
/*1Copyright 2007-2010 WebDriver committers2Copyright 2007-2010 Google Inc.34Licensed under the Apache License, Version 2.0 (the "License");5you may not use this file except in compliance with the License.6You may obtain a copy of the License at78http://www.apache.org/licenses/LICENSE-2.0910Unless required by applicable law or agreed to in writing, software11distributed under the License is distributed on an "AS IS" BASIS,12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13See the License for the specific language governing permissions and14limitations under the License.15*/1617#ifndef _INTERACTIONS_LINUX_H_18#define _INTERACTIONS_LINUX_H_1920#include <gdk/gdk.h>2122#define INTERACTIONS_DEBUG23#define INTERACTIONS_LOG_FILE "/tmp/native_ff_events_log"2425guint32 TimeSinceBootMsec();26void sleep_for_ms(int sleep_time_ms);2728bool event_earlier_than(GdkEvent* ev, guint32 compare_time);29bool is_gdk_keyboard_event(GdkEvent* ev);30bool is_gdk_mouse_event(GdkEvent* ev);31void print_key_event(GdkEvent* p_ev);3233void init_logging();34extern guint32 gModifiersState;3536extern "C"37{38bool pending_input_events();39extern guint32 gLatestEventTime;4041}4243#endif // _INTERACTIONS_LINUX_H_444546