OLD | NEW |
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 Loading... |
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: | |
176 case WebInputEvent::KEY_DOWN: | 175 case WebInputEvent::KEY_DOWN: |
177 case WebInputEvent::KEY_UP: | 176 case WebInputEvent::KEY_UP: |
178 return KeyEvent(*static_cast<const WebKeyboardEvent*>(input_event)); | 177 return KeyEvent(*static_cast<const WebKeyboardEvent*>(input_event)); |
179 | 178 |
180 default: | 179 default: |
181 break; | 180 break; |
182 } | 181 } |
183 return false; | 182 return false; |
184 } | 183 } |
185 | 184 |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
274 void WebWidgetImpl::onScrollPositionChanged(Widget* widget) { | 273 void WebWidgetImpl::onScrollPositionChanged(Widget* widget) { |
275 } | 274 } |
276 | 275 |
277 bool WebWidgetImpl::isHidden() { | 276 bool WebWidgetImpl::isHidden() { |
278 if (!delegate_) | 277 if (!delegate_) |
279 return true; | 278 return true; |
280 | 279 |
281 return delegate_->IsHidden(); | 280 return delegate_->IsHidden(); |
282 } | 281 } |
283 #endif | 282 #endif |
OLD | NEW |