| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
| 3 * | 3 * |
| 4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
| 5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
| 6 * are met: | 6 * are met: |
| 7 * | 7 * |
| 8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
| 9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
| 10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
| (...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 248 FrameView* view = overlayPage()->mainFrame()->view(); | 248 FrameView* view = overlayPage()->mainFrame()->view(); |
| 249 ASSERT(!view->needsLayout()); | 249 ASSERT(!view->needsLayout()); |
| 250 view->paint(&context, IntRect(0, 0, view->width(), view->height())); | 250 view->paint(&context, IntRect(0, 0, view->width(), view->height())); |
| 251 } | 251 } |
| 252 | 252 |
| 253 void InspectorOverlay::invalidate() | 253 void InspectorOverlay::invalidate() |
| 254 { | 254 { |
| 255 m_client->highlight(); | 255 m_client->highlight(); |
| 256 } | 256 } |
| 257 | 257 |
| 258 bool InspectorOverlay::handleGestureEvent(const PlatformGestureEvent& event) |
| 259 { |
| 260 if (isEmpty()) |
| 261 return false; |
| 262 |
| 263 return overlayPage()->mainFrame()->eventHandler()->handleGestureEvent(event)
; |
| 264 } |
| 265 |
| 258 bool InspectorOverlay::handleMouseEvent(const PlatformMouseEvent& event) | 266 bool InspectorOverlay::handleMouseEvent(const PlatformMouseEvent& event) |
| 259 { | 267 { |
| 260 if (isEmpty()) | 268 if (isEmpty()) |
| 261 return false; | 269 return false; |
| 262 | 270 |
| 263 EventHandler* eventHandler = overlayPage()->mainFrame()->eventHandler(); | 271 EventHandler* eventHandler = overlayPage()->mainFrame()->eventHandler(); |
| 264 bool result; | 272 bool result; |
| 265 switch (event.type()) { | 273 switch (event.type()) { |
| 266 case PlatformEvent::MouseMoved: | 274 case PlatformEvent::MouseMoved: |
| 267 result = eventHandler->mouseMoved(event); | 275 result = eventHandler->mouseMoved(event); |
| (...skipping 393 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 661 | 669 |
| 662 void InspectorOverlay::freePage() | 670 void InspectorOverlay::freePage() |
| 663 { | 671 { |
| 664 m_overlayPage.clear(); | 672 m_overlayPage.clear(); |
| 665 m_overlayChromeClient.clear(); | 673 m_overlayChromeClient.clear(); |
| 666 m_timer.stop(); | 674 m_timer.stop(); |
| 667 } | 675 } |
| 668 | 676 |
| 669 } // namespace WebCore | 677 } // namespace WebCore |
| 670 | 678 |
| OLD | NEW |