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

Side by Side Diff: Source/core/dom/KeyboardEvent.h

Issue 16959002: Spatial navigation enhancements (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Applied changes suggested by code reviewer. Created 7 years, 6 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
« no previous file with comments | « no previous file | Source/core/html/HTMLElement.h » ('j') | Source/core/html/HTMLElement.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2001 Peter Kelly (pmk@post.com) 2 * Copyright (C) 2001 Peter Kelly (pmk@post.com)
3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de) 3 * Copyright (C) 2001 Tobias Anton (anton@stud.fbi.fh-darmstadt.de)
4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com) 4 * Copyright (C) 2006 Samuel Weinig (sam.weinig@gmail.com)
5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed. 5 * Copyright (C) 2003, 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserv ed.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 KeyboardEvent* findKeyboardEvent(Event*); 116 KeyboardEvent* findKeyboardEvent(Event*);
117 117
118 class KeyboardEventDispatchMediator : public EventDispatchMediator { 118 class KeyboardEventDispatchMediator : public EventDispatchMediator {
119 public: 119 public:
120 static PassRefPtr<KeyboardEventDispatchMediator> create(PassRefPtr<KeyboardE vent>); 120 static PassRefPtr<KeyboardEventDispatchMediator> create(PassRefPtr<KeyboardE vent>);
121 private: 121 private:
122 explicit KeyboardEventDispatchMediator(PassRefPtr<KeyboardEvent>); 122 explicit KeyboardEventDispatchMediator(PassRefPtr<KeyboardEvent>);
123 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE; 123 virtual bool dispatchEvent(EventDispatcher*) const OVERRIDE;
124 }; 124 };
125 125
126 inline KeyboardEvent* toKeyboardEvent(Event* event)
127 {
128 ASSERT_WITH_SECURITY_IMPLICATION(event && event->isKeyboardEvent());
tkent 2013/06/16 22:50:24 We usually allow NULL argument for toFoo functions
129 return static_cast<KeyboardEvent*>(event);
130 }
131
126 } // namespace WebCore 132 } // namespace WebCore
127 133
128 #endif // KeyboardEvent_h 134 #endif // KeyboardEvent_h
OLDNEW
« no previous file with comments | « no previous file | Source/core/html/HTMLElement.h » ('j') | Source/core/html/HTMLElement.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698