OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
4 * (C) 2000 Simon Hausmann <hausmann@kde.org> | 4 * (C) 2000 Simon Hausmann <hausmann@kde.org> |
5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. | 5 * Copyright (C) 2003, 2006, 2007, 2008, 2009, 2010 Apple Inc. All rights reserv
ed. |
6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) | 6 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 17 matching lines...) Expand all Loading... |
28 #include "EventHandler.h" | 28 #include "EventHandler.h" |
29 #include "EventNames.h" | 29 #include "EventNames.h" |
30 #include "Frame.h" | 30 #include "Frame.h" |
31 #include "FrameLoader.h" | 31 #include "FrameLoader.h" |
32 #include "FrameLoaderClient.h" | 32 #include "FrameLoaderClient.h" |
33 #include "FrameLoaderTypes.h" | 33 #include "FrameLoaderTypes.h" |
34 #include "FrameSelection.h" | 34 #include "FrameSelection.h" |
35 #include "HTMLImageElement.h" | 35 #include "HTMLImageElement.h" |
36 #include "HTMLNames.h" | 36 #include "HTMLNames.h" |
37 #include "HTMLParserIdioms.h" | 37 #include "HTMLParserIdioms.h" |
38 #include "HistogramSupport.h" | |
39 #include "KeyboardEvent.h" | 38 #include "KeyboardEvent.h" |
40 #include "MouseEvent.h" | 39 #include "MouseEvent.h" |
41 #include "PingLoader.h" | 40 #include "PingLoader.h" |
42 #include "PlatformMouseEvent.h" | |
43 #include "RenderImage.h" | 41 #include "RenderImage.h" |
44 #include "SecurityOrigin.h" | 42 #include "SecurityOrigin.h" |
45 #include "SecurityPolicy.h" | 43 #include "SecurityPolicy.h" |
46 #include "Settings.h" | 44 #include "Settings.h" |
| 45 #include "core/platform/HistogramSupport.h" |
| 46 #include "core/platform/PlatformMouseEvent.h" |
47 #include "core/platform/network/DNS.h" | 47 #include "core/platform/network/DNS.h" |
48 #include "core/platform/network/ResourceRequest.h" | 48 #include "core/platform/network/ResourceRequest.h" |
49 #include <wtf/text/StringBuilder.h> | 49 #include <wtf/text/StringBuilder.h> |
50 | 50 |
51 namespace WebCore { | 51 namespace WebCore { |
52 | 52 |
53 class HTMLAnchorElement::PrefetchEventHandler { | 53 class HTMLAnchorElement::PrefetchEventHandler { |
54 public: | 54 public: |
55 static PassOwnPtr<PrefetchEventHandler> create() | 55 static PassOwnPtr<PrefetchEventHandler> create() |
56 { | 56 { |
(...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
703 double mouseDownDuration = convertDOMTimeStampToSeconds(event->timeStamp
() - m_mouseDownTimestamp); | 703 double mouseDownDuration = convertDOMTimeStampToSeconds(event->timeStamp
() - m_mouseDownTimestamp); |
704 | 704 |
705 HistogramSupport::histogramCustomCounts("MouseEventPrefetch.MouseDownDur
ation_Click", mouseDownDuration * 1000, 0, 10000, 100); | 705 HistogramSupport::histogramCustomCounts("MouseEventPrefetch.MouseDownDur
ation_Click", mouseDownDuration * 1000, 0, 10000, 100); |
706 } | 706 } |
707 | 707 |
708 m_mouseOverTimestamp = 0; | 708 m_mouseOverTimestamp = 0; |
709 m_mouseDownTimestamp = 0; | 709 m_mouseDownTimestamp = 0; |
710 } | 710 } |
711 | 711 |
712 } | 712 } |
OLD | NEW |