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

Unified Diff: third_party/WebKit/Source/web/WebViewImpl.cpp

Issue 2729543002: Rename platform/Widget to platform/FrameViewBase in web. (Closed)
Patch Set: Created 3 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/WebViewImpl.cpp
diff --git a/third_party/WebKit/Source/web/WebViewImpl.cpp b/third_party/WebKit/Source/web/WebViewImpl.cpp
index 945f27e4c99ab304fcb214c84680cb17730107fd..8a38208b82174a374b576187f2450ca2c8b40ac8 100644
--- a/third_party/WebKit/Source/web/WebViewImpl.cpp
+++ b/third_party/WebKit/Source/web/WebViewImpl.cpp
@@ -1157,9 +1157,11 @@ WebInputEventResult WebViewImpl::handleKeyEvent(const WebKeyboardEvent& event) {
if (event.windowsKeyCode == VKEY_TAB) {
// If the plugin supports keyboard focus then we should not send a tab
// keypress event.
- Widget* widget = toLayoutPart(element->layoutObject())->widget();
- if (widget && widget->isPluginContainer()) {
- WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget);
+ FrameViewBase* frameViewBase =
+ toLayoutPart(element->layoutObject())->widget();
+ if (frameViewBase && frameViewBase->isPluginContainer()) {
+ WebPluginContainerImpl* plugin =
+ toWebPluginContainerImpl(frameViewBase);
if (plugin && plugin->supportsKeyboardFocus())
m_suppressNextKeypressEvent = true;
}
@@ -3336,9 +3338,10 @@ void WebViewImpl::performPluginAction(const WebPluginAction& action,
LayoutObject* object = node->layoutObject();
if (object && object->isLayoutPart()) {
- Widget* widget = toLayoutPart(object)->widget();
- if (widget && widget->isPluginContainer()) {
- WebPluginContainerImpl* plugin = toWebPluginContainerImpl(widget);
+ FrameViewBase* frameViewWidget = toLayoutPart(object)->widget();
+ if (frameViewWidget && frameViewWidget->isPluginContainer()) {
+ WebPluginContainerImpl* plugin =
+ toWebPluginContainerImpl(frameViewWidget);
switch (action.type) {
case WebPluginAction::Rotate90Clockwise:
plugin->plugin()->rotateView(WebPlugin::RotationType90Clockwise);
« no previous file with comments | « third_party/WebKit/Source/web/WebPluginContainerImpl.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698