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

Unified Diff: public/platform/WebFocusType.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 | « Source/web/WebViewImpl.cpp ('k') | public/web/WebPlugin.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/WebFocusType.h
diff --git a/public/platform/WebImageGenerator.h b/public/platform/WebFocusType.h
similarity index 75%
copy from public/platform/WebImageGenerator.h
copy to public/platform/WebFocusType.h
index bb17f4d6df96a2dcc73efa069d2c6646a2338ab9..2c66b94b0c5e9c91269a8dc164eb8c28d14c152f 100644
--- a/public/platform/WebImageGenerator.h
+++ b/public/platform/WebFocusType.h
@@ -28,21 +28,30 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#ifndef WebImageGenerator_h
-#define WebImageGenerator_h
-
-#include "WebCommon.h"
-
-class SkData;
-class SkImageGenerator;
+#ifndef WebFocusType_h
+#define WebFocusType_h
namespace blink {
-class BLINK_EXPORT WebImageGenerator {
-public:
- static SkImageGenerator* create(SkData*);
+enum WebFocusType {
+ // Element::focus(), etc.
+ WebFocusTypeNone = 0,
+ // Sequential navigation with TAB, or Shift + TAB.
+ WebFocusTypeForward,
+ WebFocusTypeBackward,
+ // Spatial navigation.
+ WebFocusTypeUp,
+ WebFocusTypeDown,
+ WebFocusTypeLeft,
+ WebFocusTypeRight,
+ // Mouse press
+ WebFocusTypeMouse,
+ // Re-focus by a page focus
+ WebFocusTypePage,
+
+ WebFocusTypeLast = WebFocusTypePage
};
-} // namespace blink
+}
-#endif
+#endif // WebFocusType_h
« no previous file with comments | « Source/web/WebViewImpl.cpp ('k') | public/web/WebPlugin.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698