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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 #include "core/inspector/InspectorOverlayHost.h" | 43 #include "core/inspector/InspectorOverlayHost.h" |
44 #include "core/inspector/LayoutEditor.h" | 44 #include "core/inspector/LayoutEditor.h" |
45 #include "core/layout/api/LayoutViewItem.h" | 45 #include "core/layout/api/LayoutViewItem.h" |
46 #include "core/loader/EmptyClients.h" | 46 #include "core/loader/EmptyClients.h" |
47 #include "core/loader/FrameLoadRequest.h" | 47 #include "core/loader/FrameLoadRequest.h" |
48 #include "core/page/ChromeClient.h" | 48 #include "core/page/ChromeClient.h" |
49 #include "core/page/Page.h" | 49 #include "core/page/Page.h" |
50 #include "platform/ScriptForbiddenScope.h" | 50 #include "platform/ScriptForbiddenScope.h" |
51 #include "platform/graphics/GraphicsContext.h" | 51 #include "platform/graphics/GraphicsContext.h" |
52 #include "platform/graphics/paint/CullRect.h" | 52 #include "platform/graphics/paint/CullRect.h" |
53 #include "platform/inspector_protocol/Values.h" | |
54 #include "platform/v8_inspector/public/V8InspectorSession.h" | 53 #include "platform/v8_inspector/public/V8InspectorSession.h" |
55 #include "public/platform/Platform.h" | 54 #include "public/platform/Platform.h" |
56 #include "public/platform/WebData.h" | 55 #include "public/platform/WebData.h" |
57 #include "web/PageOverlay.h" | 56 #include "web/PageOverlay.h" |
58 #include "web/WebInputEventConversion.h" | 57 #include "web/WebInputEventConversion.h" |
59 #include "web/WebLocalFrameImpl.h" | 58 #include "web/WebLocalFrameImpl.h" |
60 #include "web/WebViewImpl.h" | 59 #include "web/WebViewImpl.h" |
61 #include "wtf/AutoReset.h" | 60 #include "wtf/AutoReset.h" |
62 #include <memory> | 61 #include <memory> |
63 #include <v8.h> | 62 #include <v8.h> |
(...skipping 726 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
790 | 789 |
791 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) | 790 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) |
792 { | 791 { |
793 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg
ent) | 792 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node->
isElementNode() || !node->ownerDocument()->isActive() || !m_cssAgent || !m_domAg
ent) |
794 return; | 793 return; |
795 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); | 794 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen
t, &overlayMainFrame()->script()); |
796 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); | 795 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde
n(true); |
797 } | 796 } |
798 | 797 |
799 } // namespace blink | 798 } // namespace blink |
OLD | NEW |