line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package HTML::DOM::Event::Mouse; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
our $VERSION = '0.057'; |
4
|
|
|
|
|
|
|
|
5
|
6
|
|
|
6
|
|
25
|
use warnings; no warnings qw 'utf8 parenthesis'; |
|
6
|
|
|
6
|
|
6
|
|
|
6
|
|
|
|
|
227
|
|
|
6
|
|
|
|
|
20
|
|
|
6
|
|
|
|
|
6
|
|
|
6
|
|
|
|
|
216
|
|
6
|
6
|
|
|
6
|
|
21
|
use strict; |
|
6
|
|
|
|
|
18
|
|
|
6
|
|
|
|
|
1828
|
|
7
|
|
|
|
|
|
|
|
8
|
|
|
|
|
|
|
require HTML::DOM::Event::UI; |
9
|
|
|
|
|
|
|
our @ISA = HTML::DOM::Event::UI::; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
|
12
|
9
|
|
|
9
|
1
|
44
|
sub screenX { $_[0]{screen_x } } |
13
|
9
|
|
|
9
|
1
|
27
|
sub screenY { $_[0]{screen_y } } |
14
|
9
|
|
|
9
|
1
|
57
|
sub clientX { $_[0]{client_x } } |
15
|
9
|
|
|
9
|
1
|
30
|
sub clientY { $_[0]{client_y } } |
16
|
9
|
|
|
9
|
1
|
30
|
sub ctrlKey { $_[0]{ctrl } } |
17
|
9
|
|
|
9
|
1
|
29
|
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
|
28
|
sub relatedTarget { $_[0]{rel_target } } |
22
|
|
|
|
|
|
|
|
23
|
|
|
|
|
|
|
sub initMouseEvent { |
24
|
1
|
|
|
1
|
1
|
1
|
my $self = $_[0]; |
25
|
1
|
|
|
|
|
1
|
my $x; |
26
|
1
|
|
|
|
|
9
|
$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
|
25
|
|
|
25
|
1
|
23
|
my $self = shift; |
36
|
25
|
|
|
|
|
143
|
my %args = @_; |
37
|
25
|
|
|
|
|
174
|
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
|
25
|
|
|
|
|
115
|
$self->SUPER::init(%args); |
41
|
25
|
|
|
|
|
190
|
%$self = (%$self, %my_args); |
42
|
25
|
|
|
|
|
111
|
return; |
43
|
|
|
|
|
|
|
} |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*|||*| |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
__END__ |