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

Side by Side Diff: third_party/WebKit/Source/web/WebPluginContainerImpl.cpp

Issue 1844383003: Remove NPAPI support for form data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2009 Google Inc. All rights reserved. 2 * Copyright (C) 2009 Google Inc. All rights reserved.
3 * Copyright (C) 2014 Opera Software ASA. All rights reserved. 3 * Copyright (C) 2014 Opera Software ASA. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 622 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 #if ENABLE(OILPAN) 633 #if ENABLE(OILPAN)
634 if (!m_webPlugin) 634 if (!m_webPlugin)
635 #else 635 #else
636 if (hasOneRef()) 636 if (hasOneRef())
637 #endif 637 #endif
638 return v8::Local<v8::Object>(); 638 return v8::Local<v8::Object>();
639 639
640 return object; 640 return object;
641 } 641 }
642 642
643 bool WebPluginContainerImpl::getFormValue(String& value)
644 {
645 WebString webValue;
646 if (m_webPlugin->getFormValue(webValue)) {
647 value = webValue;
648 return true;
649 }
650 return false;
651 }
652
653 bool WebPluginContainerImpl::supportsKeyboardFocus() const 643 bool WebPluginContainerImpl::supportsKeyboardFocus() const
654 { 644 {
655 return m_webPlugin->supportsKeyboardFocus(); 645 return m_webPlugin->supportsKeyboardFocus();
656 } 646 }
657 647
658 bool WebPluginContainerImpl::supportsInputMethod() const 648 bool WebPluginContainerImpl::supportsInputMethod() const
659 { 649 {
660 return m_webPlugin->supportsInputMethod(); 650 return m_webPlugin->supportsInputMethod();
661 } 651 }
662 652
(...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after
959 // frame view. 949 // frame view.
960 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRec t); 950 computeClipRectsForPlugin(m_element, windowRect, clipRect, unobscuredRec t);
961 } 951 }
962 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects); 952 getPluginOcclusions(m_element, this->parent(), frameRect(), cutOutRects);
963 // Convert to the plugin position. 953 // Convert to the plugin position.
964 for (size_t i = 0; i < cutOutRects.size(); i++) 954 for (size_t i = 0; i < cutOutRects.size(); i++)
965 cutOutRects[i].move(-frameRect().x(), -frameRect().y()); 955 cutOutRects[i].move(-frameRect().x(), -frameRect().y());
966 } 956 }
967 957
968 } // namespace blink 958 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.h ('k') | third_party/WebKit/public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698