| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011, 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2011, 2012 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 #include "WebRange.h" | 69 #include "WebRange.h" |
| 70 #include "WebSettingsImpl.h" | 70 #include "WebSettingsImpl.h" |
| 71 #include "WebTextInputInfo.h" | 71 #include "WebTextInputInfo.h" |
| 72 #include "WebViewClient.h" | 72 #include "WebViewClient.h" |
| 73 #include "WebWindowFeatures.h" | 73 #include "WebWindowFeatures.h" |
| 74 #include "WorkerGlobalScopeProxyProviderImpl.h" | 74 #include "WorkerGlobalScopeProxyProviderImpl.h" |
| 75 #include "core/accessibility/AXObjectCache.h" | 75 #include "core/accessibility/AXObjectCache.h" |
| 76 #include "core/clipboard/DataObject.h" | 76 #include "core/clipboard/DataObject.h" |
| 77 #include "core/dom/Document.h" | 77 #include "core/dom/Document.h" |
| 78 #include "core/dom/DocumentMarkerController.h" | 78 #include "core/dom/DocumentMarkerController.h" |
| 79 #include "core/dom/EventHandlerRegistry.h" |
| 79 #include "core/dom/Text.h" | 80 #include "core/dom/Text.h" |
| 80 #include "core/dom/WheelController.h" | |
| 81 #include "core/editing/Editor.h" | 81 #include "core/editing/Editor.h" |
| 82 #include "core/editing/FrameSelection.h" | 82 #include "core/editing/FrameSelection.h" |
| 83 #include "core/editing/InputMethodController.h" | 83 #include "core/editing/InputMethodController.h" |
| 84 #include "core/editing/TextIterator.h" | 84 #include "core/editing/TextIterator.h" |
| 85 #include "core/events/KeyboardEvent.h" | 85 #include "core/events/KeyboardEvent.h" |
| 86 #include "core/events/WheelEvent.h" | 86 #include "core/events/WheelEvent.h" |
| 87 #include "core/frame/FrameHost.h" | 87 #include "core/frame/FrameHost.h" |
| 88 #include "core/frame/FrameView.h" | 88 #include "core/frame/FrameView.h" |
| 89 #include "core/frame/LocalFrame.h" | 89 #include "core/frame/LocalFrame.h" |
| 90 #include "core/frame/PinchViewport.h" | 90 #include "core/frame/PinchViewport.h" |
| (...skipping 1343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1434 | 1434 |
| 1435 return frame->eventHandler().bubblingScroll(scrollDirection, scrollGranulari
ty); | 1435 return frame->eventHandler().bubblingScroll(scrollDirection, scrollGranulari
ty); |
| 1436 } | 1436 } |
| 1437 | 1437 |
| 1438 void WebViewImpl::popupOpened(PopupContainer* popupContainer) | 1438 void WebViewImpl::popupOpened(PopupContainer* popupContainer) |
| 1439 { | 1439 { |
| 1440 ASSERT(!m_selectPopup); | 1440 ASSERT(!m_selectPopup); |
| 1441 m_selectPopup = popupContainer; | 1441 m_selectPopup = popupContainer; |
| 1442 ASSERT(mainFrameImpl()->frame()->document()); | 1442 ASSERT(mainFrameImpl()->frame()->document()); |
| 1443 Document& document = *mainFrameImpl()->frame()->document(); | 1443 Document& document = *mainFrameImpl()->frame()->document(); |
| 1444 WheelController::from(document)->didAddWheelEventHandler(document); | 1444 EventHandlerRegistry::from(document)->didAddExternalEventHandler(EventTypeNa
mes::wheel); |
| 1445 } | 1445 } |
| 1446 | 1446 |
| 1447 void WebViewImpl::popupClosed(PopupContainer* popupContainer) | 1447 void WebViewImpl::popupClosed(PopupContainer* popupContainer) |
| 1448 { | 1448 { |
| 1449 ASSERT(m_selectPopup); | 1449 ASSERT(m_selectPopup); |
| 1450 m_selectPopup = nullptr; | 1450 m_selectPopup = nullptr; |
| 1451 ASSERT(mainFrameImpl()->frame()->document()); | 1451 ASSERT(mainFrameImpl()->frame()->document()); |
| 1452 Document& document = *mainFrameImpl()->frame()->document(); | 1452 Document& document = *mainFrameImpl()->frame()->document(); |
| 1453 WheelController::from(document)->didRemoveWheelEventHandler(document); | 1453 EventHandlerRegistry::from(document)->didRemoveExternalEventHandler(EventTyp
eNames::wheel); |
| 1454 } | 1454 } |
| 1455 | 1455 |
| 1456 PagePopup* WebViewImpl::openPagePopup(PagePopupClient* client, const IntRect& or
iginBoundsInRootView) | 1456 PagePopup* WebViewImpl::openPagePopup(PagePopupClient* client, const IntRect& or
iginBoundsInRootView) |
| 1457 { | 1457 { |
| 1458 ASSERT(client); | 1458 ASSERT(client); |
| 1459 if (hasOpenedPopup()) | 1459 if (hasOpenedPopup()) |
| 1460 hidePopups(); | 1460 hidePopups(); |
| 1461 ASSERT(!m_pagePopup); | 1461 ASSERT(!m_pagePopup); |
| 1462 | 1462 |
| 1463 WebWidget* popupWidget = m_client->createPopupMenu(WebPopupTypePage); | 1463 WebWidget* popupWidget = m_client->createPopupMenu(WebPopupTypePage); |
| (...skipping 2511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3975 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); | 3975 const PageScaleConstraints& constraints = m_pageScaleConstraintsSet.pageDefi
nedConstraints(); |
| 3976 | 3976 |
| 3977 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) | 3977 if (!mainFrameImpl() || !mainFrameImpl()->frameView()) |
| 3978 return false; | 3978 return false; |
| 3979 | 3979 |
| 3980 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width | 3980 return mainFrameImpl()->frameView()->layoutSize().width() == m_size.width |
| 3981 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); | 3981 || (constraints.minimumScale == constraints.maximumScale && constraints.
minimumScale != -1); |
| 3982 } | 3982 } |
| 3983 | 3983 |
| 3984 } // namespace blink | 3984 } // namespace blink |
| OLD | NEW |