Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(70)

Side by Side Diff: Source/WebKit/chromium/src/WebViewImpl.cpp

Issue 7051008: Merge 85977 - 2011-05-06 Justin Schuh <jschuh@chromium.org> (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/742/
Patch Set: Created 9 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/WebKit/chromium/public/WebInputEvent.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/public/WebInputEvent.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698