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 1574 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1585 #endif | 1585 #endif |
1586 | 1586 |
1587 void WebViewImpl::hideAutofillPopup() | 1587 void WebViewImpl::hideAutofillPopup() |
1588 { | 1588 { |
1589 if (m_autofillPopupShowing) { | 1589 if (m_autofillPopupShowing) { |
1590 m_autofillPopup->hidePopup(); | 1590 m_autofillPopup->hidePopup(); |
1591 m_autofillPopupShowing = false; | 1591 m_autofillPopupShowing = false; |
1592 } | 1592 } |
1593 } | 1593 } |
1594 | 1594 |
1595 WebHelperPluginImpl* WebViewImpl::createHelperPlugin(const String& pluginType) | 1595 WebHelperPluginImpl* WebViewImpl::createHelperPlugin(const String& pluginType, c
onst WebDocument& hostDocument) |
1596 { | 1596 { |
1597 WebWidget* popupWidget = m_client->createPopupMenu(WebPopupTypeHelperPlugin)
; | 1597 WebWidget* popupWidget = m_client->createPopupMenu(WebPopupTypeHelperPlugin)
; |
1598 ASSERT(popupWidget); | 1598 ASSERT(popupWidget); |
1599 WebHelperPluginImpl* helperPlugin = static_cast<WebHelperPluginImpl*>(popupW
idget); | 1599 WebHelperPluginImpl* helperPlugin = static_cast<WebHelperPluginImpl*>(popupW
idget); |
1600 | 1600 |
1601 if (!helperPlugin->initialize(this, pluginType)) { | 1601 if (!helperPlugin->initialize(pluginType, hostDocument, this)) { |
1602 helperPlugin->closeHelperPlugin(); | 1602 helperPlugin->closeHelperPlugin(); |
1603 helperPlugin = 0; | 1603 helperPlugin = 0; |
1604 } | 1604 } |
1605 return helperPlugin; | 1605 return helperPlugin; |
1606 } | 1606 } |
1607 | 1607 |
1608 Frame* WebViewImpl::focusedWebCoreFrame() const | 1608 Frame* WebViewImpl::focusedWebCoreFrame() const |
1609 { | 1609 { |
1610 return m_page ? m_page->focusController()->focusedOrMainFrame() : 0; | 1610 return m_page ? m_page->focusController()->focusedOrMainFrame() : 0; |
1611 } | 1611 } |
(...skipping 2805 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4417 #endif | 4417 #endif |
4418 | 4418 |
4419 bool WebViewImpl::shouldDisableDesktopWorkarounds() | 4419 bool WebViewImpl::shouldDisableDesktopWorkarounds() |
4420 { | 4420 { |
4421 ViewportArguments arguments = mainFrameImpl()->frame()->document()->viewport
Arguments(); | 4421 ViewportArguments arguments = mainFrameImpl()->frame()->document()->viewport
Arguments(); |
4422 return arguments.width == ViewportArguments::ValueDeviceWidth || !arguments.
userZoom | 4422 return arguments.width == ViewportArguments::ValueDeviceWidth || !arguments.
userZoom |
4423 || (arguments.minZoom == arguments.maxZoom && arguments.minZoom != Viewp
ortArguments::ValueAuto); | 4423 || (arguments.minZoom == arguments.maxZoom && arguments.minZoom != Viewp
ortArguments::ValueAuto); |
4424 } | 4424 } |
4425 | 4425 |
4426 } // namespace WebKit | 4426 } // namespace WebKit |
OLD | NEW |