line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::DOM::Event::Mouse; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.058'; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
35
|
use warnings; no warnings qw 'utf8 parenthesis'; |
|
6
|
|
|
6
|
|
10
|
|
|
6
|
|
|
|
|
194
|
|
|
6
|
|
|
|
|
25
|
|
|
6
|
|
|
|
|
10
|
|
|
6
|
|
|
|
|
195
|
|
6
|
6
|
|
|
6
|
|
26
|
use strict; |
|
6
|
|
|
|
|
8
|
|
|
6
|
|
|
|
|
2050
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require HTML::DOM::Event::UI; |
9
|
|
|
|
|
|
|
our @ISA = HTML::DOM::Event::UI::; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
9
|
|
|
9
|
1
|
41
|
sub screenX { $_[0]{screen_x } } |
13
|
9
|
|
|
9
|
1
|
30
|
sub screenY { $_[0]{screen_y } } |
14
|
9
|
|
|
9
|
1
|
32
|
sub clientX { $_[0]{client_x } } |
15
|
9
|
|
|
9
|
1
|
29
|
sub clientY { $_[0]{client_y } } |
16
|
9
|
|
|
9
|
1
|
57
|
sub ctrlKey { $_[0]{ctrl } } |
17
|
9
|
|
|
9
|
1
|
32
|
sub shiftKey { $_[0]{shift } } |
18
|
9
|
|
|
9
|
1
|
30
|
sub altKey { $_[0]{alt } } |
19
|
9
|
|
|
9
|
1
|
30
|
sub metaKey { $_[0]{meta } } |
20
|
8
|
|
|
8
|
1
|
27
|
sub button { $_[0]{button } } |
21
|
8
|
|
|
8
|
1
|
31
|
sub relatedTarget { $_[0]{rel_target } } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub initMouseEvent { |
24
|
1
|
|
|
1
|
1
|
2
|
my $self = $_[0]; |
25
|
1
|
|
|
|
|
1
|
my $x; |
26
|
1
|
|
|
|
|
8
|
$self->init(map +($_ => $_[++$x]), |
27
|
|
|
|
|
|
|
qw( type propagates_up cancellable view detail screen_x |
28
|
|
|
|
|
|
|
screen_y client_x client_y ctrl alt shift meta |
29
|
|
|
|
|
|
|
button rel_target ) |
30
|
|
|
|
|
|
|
); |
31
|
1
|
|
|
|
|
5
|
return; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
sub init { |
35
|
26
|
|
|
26
|
1
|
40
|
my $self = shift; |
36
|
26
|
|
|
|
|
149
|
my %args = @_; |
37
|
26
|
|
|
|
|
186
|
my %my_args = map +($_ => delete $args{$_}), |
38
|
|
|
|
|
|
|
qw( screen_x screen_y client_x client_y ctrl alt shift |
39
|
|
|
|
|
|
|
meta button rel_target ); |
40
|
26
|
|
|
|
|
120
|
$self->SUPER::init(%args); |
41
|
26
|
|
|
|
|
163
|
%$self = (%$self, %my_args); |
42
|
26
|
|
|
|
|
97
|
return; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*| |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |