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

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

Issue 12575006: Merge 145319 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1410/
Patch Set: Created 7 years, 9 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/src/WebViewImpl.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) 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
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
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
OLDNEW
« no previous file with comments | « Source/WebKit/chromium/src/WebViewImpl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698