| 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 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 285 } | 285 } |
| 286 | 286 |
| 287 if (inputEvent.type == WebInputEvent::MouseWheel) { | 287 if (inputEvent.type == WebInputEvent::MouseWheel) { |
| 288 PlatformWheelEvent wheelEvent = PlatformWheelEventBuilder(m_webViewImpl-
>mainFrameImpl()->frameView(), static_cast<const WebMouseWheelEvent&>(inputEvent
)); | 288 PlatformWheelEvent wheelEvent = PlatformWheelEventBuilder(m_webViewImpl-
>mainFrameImpl()->frameView(), static_cast<const WebMouseWheelEvent&>(inputEvent
)); |
| 289 handled = overlayMainFrame()->eventHandler().handleWheelEvent(wheelEvent
) != WebInputEventResult::NotHandled; | 289 handled = overlayMainFrame()->eventHandler().handleWheelEvent(wheelEvent
) != WebInputEventResult::NotHandled; |
| 290 } | 290 } |
| 291 | 291 |
| 292 return handled; | 292 return handled; |
| 293 } | 293 } |
| 294 | 294 |
| 295 void InspectorOverlay::setPausedInDebuggerMessage(const String* message) | 295 void InspectorOverlay::setPausedInDebuggerMessage(const String& message) |
| 296 { | 296 { |
| 297 m_pausedInDebuggerMessage = message ? *message : String(); | 297 m_pausedInDebuggerMessage = message; |
| 298 scheduleUpdate(); | 298 scheduleUpdate(); |
| 299 } | 299 } |
| 300 | 300 |
| 301 void InspectorOverlay::hideHighlight() | 301 void InspectorOverlay::hideHighlight() |
| 302 { | 302 { |
| 303 m_highlightNode.clear(); | 303 m_highlightNode.clear(); |
| 304 m_eventTargetNode.clear(); | 304 m_eventTargetNode.clear(); |
| 305 m_highlightQuad.clear(); | 305 m_highlightQuad.clear(); |
| 306 scheduleUpdate(); | 306 scheduleUpdate(); |
| 307 } | 307 } |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 | 747 |
| 748 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) | 748 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) |
| 749 { | 749 { |
| 750 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive()) | 750 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive()) |
| 751 return; | 751 return; |
| 752 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); | 752 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); |
| 753 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); | 753 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); |
| 754 } | 754 } |
| 755 | 755 |
| 756 } // namespace blink | 756 } // namespace blink |
| OLD | NEW |