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

Side by Side Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2763893002: [WIP] Clean up DocumentMarkerController API (Closed)
Patch Set: Created 3 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) 1998, 1999 Torben Weis <weis@kde.org> 2 * Copyright (C) 1998, 1999 Torben Weis <weis@kde.org>
3 * 1999 Lars Knoll <knoll@kde.org> 3 * 1999 Lars Knoll <knoll@kde.org>
4 * 1999 Antti Koivisto <koivisto@kde.org> 4 * 1999 Antti Koivisto <koivisto@kde.org>
5 * 2000 Dirk Mueller <mueller@kde.org> 5 * 2000 Dirk Mueller <mueller@kde.org>
6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. 6 * Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved.
7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com) 7 * (C) 2006 Graham Dennis (graham.dennis@gmail.com)
8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com) 8 * (C) 2006 Alexey Proskuryakov (ap@nypop.com)
9 * Copyright (C) 2009 Google Inc. All rights reserved. 9 * Copyright (C) 2009 Google Inc. All rights reserved.
10 * 10 *
(...skipping 2581 matching lines...) Expand 10 before | Expand all | Expand 10 after
2592 void FrameView::invalidatePaintForTickmarks() { 2592 void FrameView::invalidatePaintForTickmarks() {
2593 if (Scrollbar* scrollbar = verticalScrollbar()) 2593 if (Scrollbar* scrollbar = verticalScrollbar())
2594 scrollbar->setNeedsPaintInvalidation( 2594 scrollbar->setNeedsPaintInvalidation(
2595 static_cast<ScrollbarPart>(~ThumbPart)); 2595 static_cast<ScrollbarPart>(~ThumbPart));
2596 } 2596 }
2597 2597
2598 void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const { 2598 void FrameView::getTickmarks(Vector<IntRect>& tickmarks) const {
2599 if (!m_tickmarks.isEmpty()) { 2599 if (!m_tickmarks.isEmpty()) {
2600 tickmarks = m_tickmarks; 2600 tickmarks = m_tickmarks;
2601 } else { 2601 } else {
2602 tickmarks = frame().document()->markers().renderedRectsForMarkers( 2602 tickmarks =
2603 DocumentMarker::TextMatch); 2603 frame().document()->markers().renderedRectsForTextMatchMarkers();
2604 } 2604 }
2605 } 2605 }
2606 2606
2607 void FrameView::setInputEventsTransformForEmulation(const IntSize& offset, 2607 void FrameView::setInputEventsTransformForEmulation(const IntSize& offset,
2608 float contentScaleFactor) { 2608 float contentScaleFactor) {
2609 m_inputEventsOffsetForEmulation = offset; 2609 m_inputEventsOffsetForEmulation = offset;
2610 m_inputEventsScaleFactorForEmulation = contentScaleFactor; 2610 m_inputEventsScaleFactorForEmulation = contentScaleFactor;
2611 } 2611 }
2612 2612
2613 IntSize FrameView::inputEventsOffsetForEmulation() const { 2613 IntSize FrameView::inputEventsOffsetForEmulation() const {
(...skipping 2648 matching lines...) Expand 10 before | Expand all | Expand 10 after
5262 void FrameView::setAnimationHost( 5262 void FrameView::setAnimationHost(
5263 std::unique_ptr<CompositorAnimationHost> host) { 5263 std::unique_ptr<CompositorAnimationHost> host) {
5264 m_animationHost = std::move(host); 5264 m_animationHost = std::move(host);
5265 } 5265 }
5266 5266
5267 LayoutUnit FrameView::caretWidth() const { 5267 LayoutUnit FrameView::caretWidth() const {
5268 return LayoutUnit(getHostWindow()->windowToViewportScalar(1)); 5268 return LayoutUnit(getHostWindow()->windowToViewportScalar(1));
5269 } 5269 }
5270 5270
5271 } // namespace blink 5271 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698