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 633 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 | 644 |
645 void InspectorOverlay::profilingStopped() | 645 void InspectorOverlay::profilingStopped() |
646 { | 646 { |
647 --m_suspendCount; | 647 --m_suspendCount; |
648 } | 648 } |
649 | 649 |
650 void InspectorOverlay::pageLayoutInvalidated(bool resized) | 650 void InspectorOverlay::pageLayoutInvalidated(bool resized) |
651 { | 651 { |
652 if (resized && m_drawViewSize) { | 652 if (resized && m_drawViewSize) { |
653 m_resizeTimerActive = true; | 653 m_resizeTimerActive = true; |
654 m_timer.startOneShot(1, FROM_HERE); | 654 m_timer.startOneShot(1, BLINK_FROM_HERE); |
655 } | 655 } |
656 scheduleUpdate(); | 656 scheduleUpdate(); |
657 } | 657 } |
658 | 658 |
659 void InspectorOverlay::setShowViewportSizeOnResize(bool show, bool showGrid) | 659 void InspectorOverlay::setShowViewportSizeOnResize(bool show, bool showGrid) |
660 { | 660 { |
661 m_drawViewSize = show; | 661 m_drawViewSize = show; |
662 m_drawViewSizeWithGrid = showGrid; | 662 m_drawViewSizeWithGrid = showGrid; |
663 } | 663 } |
664 | 664 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
754 | 754 |
755 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) | 755 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) |
756 { | 756 { |
757 if (node && node->isElementNode() && m_inspectMode == InspectorDOMAgent::Sho
wLayoutEditor && !m_layoutEditor) { | 757 if (node && node->isElementNode() && m_inspectMode == InspectorDOMAgent::Sho
wLayoutEditor && !m_layoutEditor) { |
758 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_dom
Agent, &overlayMainFrame()->script()); | 758 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_dom
Agent, &overlayMainFrame()->script()); |
759 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverr
idden(true); | 759 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverr
idden(true); |
760 } | 760 } |
761 } | 761 } |
762 | 762 |
763 } // namespace blink | 763 } // namespace blink |
OLD | NEW |