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

Side by Side Diff: webkit/glue/webwidget_impl.cc

Issue 27332: Fixing WebKeyboardEvent. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 | « webkit/glue/webview_impl.cc ('k') | webkit/tools/test_shell/event_sending_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "config.h" 5 #include "config.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 8
9 MSVC_PUSH_WARNING_LEVEL(0); 9 MSVC_PUSH_WARNING_LEVEL(0);
10 #include "Cursor.h" 10 #include "Cursor.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 165
166 case WebInputEvent::MOUSE_DOWN: 166 case WebInputEvent::MOUSE_DOWN:
167 case WebInputEvent::MOUSE_DOUBLE_CLICK: 167 case WebInputEvent::MOUSE_DOUBLE_CLICK:
168 MouseDown(*static_cast<const WebMouseEvent*>(input_event)); 168 MouseDown(*static_cast<const WebMouseEvent*>(input_event));
169 return true; 169 return true;
170 170
171 case WebInputEvent::MOUSE_UP: 171 case WebInputEvent::MOUSE_UP:
172 MouseUp(*static_cast<const WebMouseEvent*>(input_event)); 172 MouseUp(*static_cast<const WebMouseEvent*>(input_event));
173 return true; 173 return true;
174 174
175 case WebInputEvent::RAW_KEY_DOWN:
175 case WebInputEvent::KEY_DOWN: 176 case WebInputEvent::KEY_DOWN:
176 case WebInputEvent::KEY_UP: 177 case WebInputEvent::KEY_UP:
177 return KeyEvent(*static_cast<const WebKeyboardEvent*>(input_event)); 178 return KeyEvent(*static_cast<const WebKeyboardEvent*>(input_event));
178 179
179 default: 180 default:
180 break; 181 break;
181 } 182 }
182 return false; 183 return false;
183 } 184 }
184 185
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 void WebWidgetImpl::onScrollPositionChanged(Widget* widget) { 274 void WebWidgetImpl::onScrollPositionChanged(Widget* widget) {
274 } 275 }
275 276
276 bool WebWidgetImpl::isHidden() { 277 bool WebWidgetImpl::isHidden() {
277 if (!delegate_) 278 if (!delegate_)
278 return true; 279 return true;
279 280
280 return delegate_->IsHidden(); 281 return delegate_->IsHidden();
281 } 282 }
282 #endif 283 #endif
OLDNEW
« no previous file with comments | « webkit/glue/webview_impl.cc ('k') | webkit/tools/test_shell/event_sending_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698