Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
seleniumhq
GitHub Repository: seleniumhq/selenium
Path: blob/trunk/cpp/webdriver-interactions/interactions_linux.h
2867 views
1
/*
2
Copyright 2007-2010 WebDriver committers
3
Copyright 2007-2010 Google Inc.
4
5
Licensed under the Apache License, Version 2.0 (the "License");
6
you may not use this file except in compliance with the License.
7
You may obtain a copy of the License at
8
9
http://www.apache.org/licenses/LICENSE-2.0
10
11
Unless required by applicable law or agreed to in writing, software
12
distributed under the License is distributed on an "AS IS" BASIS,
13
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
See the License for the specific language governing permissions and
15
limitations under the License.
16
*/
17
18
#ifndef _INTERACTIONS_LINUX_H_
19
#define _INTERACTIONS_LINUX_H_
20
21
#include <gdk/gdk.h>
22
23
#define INTERACTIONS_DEBUG
24
#define INTERACTIONS_LOG_FILE "/tmp/native_ff_events_log"
25
26
guint32 TimeSinceBootMsec();
27
void sleep_for_ms(int sleep_time_ms);
28
29
bool event_earlier_than(GdkEvent* ev, guint32 compare_time);
30
bool is_gdk_keyboard_event(GdkEvent* ev);
31
bool is_gdk_mouse_event(GdkEvent* ev);
32
void print_key_event(GdkEvent* p_ev);
33
34
void init_logging();
35
extern guint32 gModifiersState;
36
37
extern "C"
38
{
39
bool pending_input_events();
40
extern guint32 gLatestEventTime;
41
42
}
43
44
#endif // _INTERACTIONS_LINUX_H_
45
46