Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(366)

Side by Side Diff: third_party/WebKit/Source/web/InspectorOverlay.cpp

Issue 1702673002: DevTools: migrate remote debugging protocol generators to jinja2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/InspectorOverlay.h ('k') | third_party/WebKit/Source/web/WebDevToolsAgentImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698