OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Google Inc. All rights reserved. | 2 * Copyright (C) 2010 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 1117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1128 m_recreatingGraphicsContext = true; | 1128 m_recreatingGraphicsContext = true; |
1129 setRootLayerNeedsDisplay(); | 1129 setRootLayerNeedsDisplay(); |
1130 } | 1130 } |
1131 #endif | 1131 #endif |
1132 } | 1132 } |
1133 | 1133 |
1134 const WebInputEvent* WebViewImpl::m_currentInputEvent = 0; | 1134 const WebInputEvent* WebViewImpl::m_currentInputEvent = 0; |
1135 | 1135 |
1136 bool WebViewImpl::handleInputEvent(const WebInputEvent& inputEvent) | 1136 bool WebViewImpl::handleInputEvent(const WebInputEvent& inputEvent) |
1137 { | 1137 { |
1138 UserGestureIndicator gestureIndicator(DefinitelyProcessingUserGesture); | 1138 UserGestureIndicator gestureIndicator(WebInputEvent::isUserGestureEventType(
inputEvent.type) ? DefinitelyProcessingUserGesture : PossiblyProcessingUserGestu
re); |
1139 | 1139 |
1140 // If we've started a drag and drop operation, ignore input events until | 1140 // If we've started a drag and drop operation, ignore input events until |
1141 // we're done. | 1141 // we're done. |
1142 if (m_doingDragAndDrop) | 1142 if (m_doingDragAndDrop) |
1143 return true; | 1143 return true; |
1144 | 1144 |
1145 if (m_ignoreInputEvents) | 1145 if (m_ignoreInputEvents) |
1146 return true; | 1146 return true; |
1147 | 1147 |
1148 m_currentInputEvent = &inputEvent; | 1148 m_currentInputEvent = &inputEvent; |
(...skipping 1345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2494 m_temporaryOnscreenGraphicsContext3D = GraphicsContext3D::create(getComp
ositorContextAttributes(), m_page->chrome(), GraphicsContext3D::RenderDirectlyTo
HostWindow); | 2494 m_temporaryOnscreenGraphicsContext3D = GraphicsContext3D::create(getComp
ositorContextAttributes(), m_page->chrome(), GraphicsContext3D::RenderDirectlyTo
HostWindow); |
2495 if (m_temporaryOnscreenGraphicsContext3D) | 2495 if (m_temporaryOnscreenGraphicsContext3D) |
2496 m_temporaryOnscreenGraphicsContext3D->reshape(std::max(1, m_size.wid
th), std::max(1, m_size.height)); | 2496 m_temporaryOnscreenGraphicsContext3D->reshape(std::max(1, m_size.wid
th), std::max(1, m_size.height)); |
2497 return GraphicsContext3DInternal::extractWebGraphicsContext3D(m_temporar
yOnscreenGraphicsContext3D.get()); | 2497 return GraphicsContext3DInternal::extractWebGraphicsContext3D(m_temporar
yOnscreenGraphicsContext3D.get()); |
2498 } | 2498 } |
2499 #endif | 2499 #endif |
2500 return 0; | 2500 return 0; |
2501 } | 2501 } |
2502 | 2502 |
2503 } // namespace WebKit | 2503 } // namespace WebKit |
OLD | NEW |