| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2009 Google Inc. All rights reserved. | 2 * Copyright (C) 2009 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 void WebPopupMenuImpl::handleMouseWheel(const WebMouseWheelEvent& event) | 123 void WebPopupMenuImpl::handleMouseWheel(const WebMouseWheelEvent& event) |
| 124 { | 124 { |
| 125 m_widget->handleWheelEvent(PlatformWheelEventBuilder(m_widget, event)); | 125 m_widget->handleWheelEvent(PlatformWheelEventBuilder(m_widget, event)); |
| 126 } | 126 } |
| 127 | 127 |
| 128 bool WebPopupMenuImpl::handleGestureEvent(const WebGestureEvent& event) | 128 bool WebPopupMenuImpl::handleGestureEvent(const WebGestureEvent& event) |
| 129 { | 129 { |
| 130 return m_widget->handleGestureEvent(PlatformGestureEventBuilder(m_widget, ev
ent)); | 130 return m_widget->handleGestureEvent(PlatformGestureEventBuilder(m_widget, ev
ent)); |
| 131 } | 131 } |
| 132 | 132 |
| 133 #if ENABLE(TOUCH_EVENTS) | |
| 134 bool WebPopupMenuImpl::handleTouchEvent(const WebTouchEvent& event) | 133 bool WebPopupMenuImpl::handleTouchEvent(const WebTouchEvent& event) |
| 135 { | 134 { |
| 136 | 135 |
| 137 PlatformTouchEventBuilder touchEventBuilder(m_widget, event); | 136 PlatformTouchEventBuilder touchEventBuilder(m_widget, event); |
| 138 bool defaultPrevented(m_widget->handleTouchEvent(touchEventBuilder)); | 137 bool defaultPrevented(m_widget->handleTouchEvent(touchEventBuilder)); |
| 139 return defaultPrevented; | 138 return defaultPrevented; |
| 140 } | 139 } |
| 141 #endif | |
| 142 | 140 |
| 143 bool WebPopupMenuImpl::handleKeyEvent(const WebKeyboardEvent& event) | 141 bool WebPopupMenuImpl::handleKeyEvent(const WebKeyboardEvent& event) |
| 144 { | 142 { |
| 145 return m_widget->handleKeyEvent(PlatformKeyboardEventBuilder(event)); | 143 return m_widget->handleKeyEvent(PlatformKeyboardEventBuilder(event)); |
| 146 } | 144 } |
| 147 | 145 |
| 148 // WebWidget ------------------------------------------------------------------- | 146 // WebWidget ------------------------------------------------------------------- |
| 149 | 147 |
| 150 void WebPopupMenuImpl::close() | 148 void WebPopupMenuImpl::close() |
| 151 { | 149 { |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 ASSERT(widget == m_widget); | 400 ASSERT(widget == m_widget); |
| 403 if (m_widget) { | 401 if (m_widget) { |
| 404 m_widget->setClient(0); | 402 m_widget->setClient(0); |
| 405 m_widget = 0; | 403 m_widget = 0; |
| 406 } | 404 } |
| 407 if (m_client) | 405 if (m_client) |
| 408 m_client->closeWidgetSoon(); | 406 m_client->closeWidgetSoon(); |
| 409 } | 407 } |
| 410 | 408 |
| 411 } // namespace WebKit | 409 } // namespace WebKit |
| OLD | NEW |