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

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

Issue 852083002: Propagate focus type to plugins (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Moved Created 5 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « Source/web/WebPluginContainerImpl.h ('k') | Source/web/WebViewImpl.cpp » ('j') | 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) 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 IntRect dirtyRect = rect; 142 IntRect dirtyRect = rect;
143 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(), 143 dirtyRect.move(renderer->borderLeft() + renderer->paddingLeft(),
144 renderer->borderTop() + renderer->paddingTop()); 144 renderer->borderTop() + renderer->paddingTop());
145 145
146 // For querying RenderLayer::compositingState(). 146 // For querying RenderLayer::compositingState().
147 // This code should be correct. 147 // This code should be correct.
148 DisableCompositingQueryAsserts disabler; 148 DisableCompositingQueryAsserts disabler;
149 renderer->invalidatePaintRectangle(dirtyRect); 149 renderer->invalidatePaintRectangle(dirtyRect);
150 } 150 }
151 151
152 void WebPluginContainerImpl::setFocus(bool focused) 152 void WebPluginContainerImpl::setFocus(bool focused, WebFocusType focusType)
153 { 153 {
154 Widget::setFocus(focused); 154 Widget::setFocus(focused, focusType);
155 m_webPlugin->updateFocus(focused); 155 m_webPlugin->updateFocus(focused, focusType);
156 } 156 }
157 157
158 void WebPluginContainerImpl::show() 158 void WebPluginContainerImpl::show()
159 { 159 {
160 setSelfVisible(true); 160 setSelfVisible(true);
161 m_webPlugin->updateVisibility(true); 161 m_webPlugin->updateVisibility(true);
162 162
163 Widget::show(); 163 Widget::show();
164 } 164 }
165 165
(...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after
981 981
982 return clipRect; 982 return clipRect;
983 } 983 }
984 984
985 bool WebPluginContainerImpl::pluginShouldPersist() const 985 bool WebPluginContainerImpl::pluginShouldPersist() const
986 { 986 {
987 return m_webPlugin->shouldPersist(); 987 return m_webPlugin->shouldPersist();
988 } 988 }
989 989
990 } // namespace blink 990 } // namespace blink
OLDNEW
« no previous file with comments | « Source/web/WebPluginContainerImpl.h ('k') | Source/web/WebViewImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698