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.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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | Source/web/WebPluginContainerImpl.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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual bool getFormValue(String&) override; 76 virtual bool getFormValue(String&) override;
77 virtual bool supportsKeyboardFocus() const override; 77 virtual bool supportsKeyboardFocus() const override;
78 virtual bool supportsInputMethod() const override; 78 virtual bool supportsInputMethod() const override;
79 virtual bool canProcessDrag() const override; 79 virtual bool canProcessDrag() const override;
80 virtual bool wantsWheelEvents() override; 80 virtual bool wantsWheelEvents() override;
81 81
82 // Widget methods 82 // Widget methods
83 virtual void setFrameRect(const IntRect&) override; 83 virtual void setFrameRect(const IntRect&) override;
84 virtual void paint(GraphicsContext*, const IntRect&) override; 84 virtual void paint(GraphicsContext*, const IntRect&) override;
85 virtual void invalidateRect(const IntRect&) override; 85 virtual void invalidateRect(const IntRect&) override;
86 virtual void setFocus(bool) override; 86 virtual void setFocus(bool, WebFocusType) override;
87 virtual void show() override; 87 virtual void show() override;
88 virtual void hide() override; 88 virtual void hide() override;
89 virtual void handleEvent(Event*) override; 89 virtual void handleEvent(Event*) override;
90 virtual void frameRectsChanged() override; 90 virtual void frameRectsChanged() override;
91 virtual void setParentVisible(bool) override; 91 virtual void setParentVisible(bool) override;
92 virtual void setParent(Widget*) override; 92 virtual void setParent(Widget*) override;
93 virtual void widgetPositionsUpdated() override; 93 virtual void widgetPositionsUpdated() override;
94 virtual bool isPluginContainer() const override { return true; } 94 virtual bool isPluginContainer() const override { return true; }
95 virtual void eventListenersRemoved() override; 95 virtual void eventListenersRemoved() override;
96 virtual bool pluginShouldPersist() const override; 96 virtual bool pluginShouldPersist() const override;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 }; 217 };
218 218
219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer()); 219 DEFINE_TYPE_CASTS(WebPluginContainerImpl, Widget, widget, widget->isPluginContai ner(), widget.isPluginContainer());
220 // Unlike Widget, we need not worry about object type for container. 220 // Unlike Widget, we need not worry about object type for container.
221 // WebPluginContainerImpl is the only subclass of WebPluginContainer. 221 // WebPluginContainerImpl is the only subclass of WebPluginContainer.
222 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue); 222 DEFINE_TYPE_CASTS(WebPluginContainerImpl, WebPluginContainer, container, true, t rue);
223 223
224 } // namespace blink 224 } // namespace blink
225 225
226 #endif 226 #endif
OLDNEW
« no previous file with comments | « Source/web/ChromeClientImpl.cpp ('k') | Source/web/WebPluginContainerImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698