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

Unified Diff: public/web/WebPlugin.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « public/platform/WebFocusType.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebPlugin.h
diff --git a/public/web/WebPlugin.h b/public/web/WebPlugin.h
index 492795bd9c21faeb2eb5ea174f8614cb4b399935..050e76119432d3df2a9e709eb51dea9a186a0b70 100644
--- a/public/web/WebPlugin.h
+++ b/public/web/WebPlugin.h
@@ -33,6 +33,7 @@
#define WebPlugin_h
#include "../platform/WebCanvas.h"
+#include "../platform/WebFocusType.h"
#include "../platform/WebString.h"
#include "../platform/WebURL.h"
#include "WebDragOperation.h"
@@ -93,7 +94,15 @@ public:
const WebRect& frameRect, const WebRect& clipRect,
const WebVector<WebRect>& cutOutsRects, bool isVisible) = 0;
- virtual void updateFocus(bool) = 0;
+ // FIXME: Remove this once the Blink embedder has been updated to use
+ // the new version of updateFocus.
+ virtual void updateFocus(bool focused) { }
+
+ virtual void updateFocus(bool focused, WebFocusType)
+ {
+ updateFocus(focused);
+ }
+
virtual void updateVisibility(bool) = 0;
virtual bool acceptsInputEvents() = 0;
« no previous file with comments | « public/platform/WebFocusType.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698