| 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: |
| 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 Loading... |
| 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 |
| OLD | NEW |