| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights | 2 * Copyright (C) 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All rights |
| 3 * reserved. | 3 * reserved. |
| 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) | 4 * Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
| 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) | 5 * Copyright (C) 2012 Digia Plc. and/or its subsidiary(-ies) |
| 6 * | 6 * |
| 7 * Redistribution and use in source and binary forms, with or without | 7 * Redistribution and use in source and binary forms, with or without |
| 8 * modification, are permitted provided that the following conditions | 8 * modification, are permitted provided that the following conditions |
| 9 * are met: | 9 * are met: |
| 10 * 1. Redistributions of source code must retain the above copyright | 10 * 1. Redistributions of source code must retain the above copyright |
| (...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1888 // keyboard. This is required for web compatibility. | 1888 // keyboard. This is required for web compatibility. |
| 1889 WebInputEvent::Type eventType = WebInputEvent::MouseDown; | 1889 WebInputEvent::Type eventType = WebInputEvent::MouseDown; |
| 1890 if (m_frame->settings() && m_frame->settings()->getShowContextMenuOnMouseUp()) | 1890 if (m_frame->settings() && m_frame->settings()->getShowContextMenuOnMouseUp()) |
| 1891 eventType = WebInputEvent::MouseUp; | 1891 eventType = WebInputEvent::MouseUp; |
| 1892 | 1892 |
| 1893 WebMouseEvent mouseEvent( | 1893 WebMouseEvent mouseEvent( |
| 1894 eventType, | 1894 eventType, |
| 1895 WebFloatPoint(locationInRootFrame.x(), locationInRootFrame.y()), | 1895 WebFloatPoint(locationInRootFrame.x(), locationInRootFrame.y()), |
| 1896 WebFloatPoint(globalPosition.x(), globalPosition.y()), | 1896 WebFloatPoint(globalPosition.x(), globalPosition.y()), |
| 1897 WebPointerProperties::Button::NoButton, /* clickCount */ 0, | 1897 WebPointerProperties::Button::NoButton, /* clickCount */ 0, |
| 1898 PlatformEvent::NoModifiers, TimeTicks::Now().InSeconds()); | 1898 WebInputEvent::NoModifiers, TimeTicks::Now().InSeconds()); |
| 1899 | 1899 |
| 1900 // TODO(dtapuska): Transition the mouseEvent to be created really in viewport | 1900 // TODO(dtapuska): Transition the mouseEvent to be created really in viewport |
| 1901 // coordinates instead of root frame coordinates. | 1901 // coordinates instead of root frame coordinates. |
| 1902 mouseEvent.setFrameScale(1); | 1902 mouseEvent.setFrameScale(1); |
| 1903 | 1903 |
| 1904 return sendContextMenuEvent(mouseEvent, overrideTargetElement); | 1904 return sendContextMenuEvent(mouseEvent, overrideTargetElement); |
| 1905 } | 1905 } |
| 1906 | 1906 |
| 1907 void EventHandler::scheduleHoverStateUpdate() { | 1907 void EventHandler::scheduleHoverStateUpdate() { |
| 1908 // TODO(https://crbug.com/668758): Use a normal BeginFrame update for this. | 1908 // TODO(https://crbug.com/668758): Use a normal BeginFrame update for this. |
| (...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2132 } | 2132 } |
| 2133 | 2133 |
| 2134 FrameHost* EventHandler::frameHost() const { | 2134 FrameHost* EventHandler::frameHost() const { |
| 2135 if (!m_frame->page()) | 2135 if (!m_frame->page()) |
| 2136 return nullptr; | 2136 return nullptr; |
| 2137 | 2137 |
| 2138 return &m_frame->page()->frameHost(); | 2138 return &m_frame->page()->frameHost(); |
| 2139 } | 2139 } |
| 2140 | 2140 |
| 2141 } // namespace blink | 2141 } // namespace blink |
| OLD | NEW |