| 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 641 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 652 m_layoutEditor.clear(); | 652 m_layoutEditor.clear(); |
| 653 } | 653 } |
| 654 | 654 |
| 655 if (m_inspectModeHighlightConfig) | 655 if (m_inspectModeHighlightConfig) |
| 656 highlightNode(m_hoveredNodeForInspectMode.get(), *m_inspectModeHighlight
Config, false); | 656 highlightNode(m_hoveredNodeForInspectMode.get(), *m_inspectModeHighlight
Config, false); |
| 657 | 657 |
| 658 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(false); | 658 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(false); |
| 659 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursor(pointerC
ursor(), overlayMainFrame()); | 659 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursor(pointerC
ursor(), overlayMainFrame()); |
| 660 } | 660 } |
| 661 | 661 |
| 662 void InspectorOverlay::profilingStarted() | 662 void InspectorOverlay::suspend() |
| 663 { | 663 { |
| 664 if (!m_suspendCount++) | 664 if (!m_suspendCount++) |
| 665 clear(); | 665 clear(); |
| 666 } | 666 } |
| 667 | 667 |
| 668 void InspectorOverlay::profilingStopped() | 668 void InspectorOverlay::resume() |
| 669 { | 669 { |
| 670 --m_suspendCount; | 670 --m_suspendCount; |
| 671 } | 671 } |
| 672 | 672 |
| 673 void InspectorOverlay::pageLayoutInvalidated(bool resized) | 673 void InspectorOverlay::pageLayoutInvalidated(bool resized) |
| 674 { | 674 { |
| 675 if (resized && m_drawViewSize) { | 675 if (resized && m_drawViewSize) { |
| 676 m_resizeTimerActive = true; | 676 m_resizeTimerActive = true; |
| 677 m_timer.startOneShot(1, BLINK_FROM_HERE); | 677 m_timer.startOneShot(1, BLINK_FROM_HERE); |
| 678 } | 678 } |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 | 777 |
| 778 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) | 778 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) |
| 779 { | 779 { |
| 780 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg
ent) | 780 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg
ent) |
| 781 return; | 781 return; |
| 782 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); | 782 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); |
| 783 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); | 783 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); |
| 784 } | 784 } |
| 785 | 785 |
| 786 } // namespace blink | 786 } // namespace blink |
| OLD | NEW |