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

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

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy Created 4 years, 9 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 368 matching lines...) Expand 10 before | Expand all | Expand 10 after
379 if (view) 379 if (view)
380 m_webViewImpl->page()->chromeClient().scheduleAnimation(view); 380 m_webViewImpl->page()->chromeClient().scheduleAnimation(view);
381 } 381 }
382 382
383 void InspectorOverlay::rebuildOverlayPage() 383 void InspectorOverlay::rebuildOverlayPage()
384 { 384 {
385 FrameView* view = m_webViewImpl->mainFrameImpl()->frameView(); 385 FrameView* view = m_webViewImpl->mainFrameImpl()->frameView();
386 if (!view) 386 if (!view)
387 return; 387 return;
388 388
389 IntRect visibleRectInDocument = view->scrollableArea()->visibleContentRect() ; 389 IntRect visibleRectInDocument = view->getScrollableArea()->visibleContentRec t();
390 IntSize viewportSize = m_webViewImpl->page()->frameHost().visualViewport().s ize(); 390 IntSize viewportSize = m_webViewImpl->page()->frameHost().visualViewport().s ize();
391 toLocalFrame(overlayPage()->mainFrame())->view()->resize(viewportSize); 391 toLocalFrame(overlayPage()->mainFrame())->view()->resize(viewportSize);
392 overlayPage()->frameHost().visualViewport().setSize(viewportSize); 392 overlayPage()->frameHost().visualViewport().setSize(viewportSize);
393 reset(viewportSize, visibleRectInDocument.location()); 393 reset(viewportSize, visibleRectInDocument.location());
394 394
395 drawNodeHighlight(); 395 drawNodeHighlight();
396 drawQuadHighlight(); 396 drawQuadHighlight();
397 drawPausedInDebuggerMessage(); 397 drawPausedInDebuggerMessage();
398 drawViewSize(); 398 drawViewSize();
399 if (m_layoutEditor && !m_highlightNode) 399 if (m_layoutEditor && !m_highlightNode)
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 774
775 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node) 775 void InspectorOverlay::initializeLayoutEditorIfNeeded(Node* node)
776 { 776 {
777 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node-> isElementNode() || !node->ownerDocument()->isActive()) 777 if (m_inspectMode != InspectorDOMAgent::ShowLayoutEditor || !node || !node-> isElementNode() || !node->ownerDocument()->isActive())
778 return; 778 return;
779 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen t, &overlayMainFrame()->script()); 779 m_layoutEditor = LayoutEditor::create(toElement(node), m_cssAgent, m_domAgen t, &overlayMainFrame()->script());
780 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde n(true); 780 toChromeClientImpl(m_webViewImpl->page()->chromeClient()).setCursorOverridde n(true);
781 } 781 }
782 782
783 } // namespace blink 783 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/web/FrameLoaderClientImpl.cpp ('k') | third_party/WebKit/Source/web/LinkHighlightImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698