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

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

Issue 2631113003: Add metric to know how user use scrollbar (Closed)
Patch Set: move to UseCounter Created 3 years, 11 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) 1997 Martin Jones (mjones@kde.org) 2 Copyright (C) 1997 Martin Jones (mjones@kde.org)
3 (C) 1998 Waldo Bastian (bastian@kde.org) 3 (C) 1998 Waldo Bastian (bastian@kde.org)
4 (C) 1998, 1999 Torben Weis (weis@kde.org) 4 (C) 1998, 1999 Torben Weis (weis@kde.org)
5 (C) 1999 Lars Knoll (knoll@kde.org) 5 (C) 1999 Lars Knoll (knoll@kde.org)
6 (C) 1999 Antti Koivisto (koivisto@kde.org) 6 (C) 1999 Antti Koivisto (koivisto@kde.org)
7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights 7 Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009 Apple Inc. All rights
8 reserved. 8 reserved.
9 9
10 This library is free software; you can redistribute it and/or 10 This library is free software; you can redistribute it and/or
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
511 511
512 void setScrollingModesLock(bool lock = true) { 512 void setScrollingModesLock(bool lock = true) {
513 m_horizontalScrollbarLock = m_verticalScrollbarLock = lock; 513 m_horizontalScrollbarLock = m_verticalScrollbarLock = lock;
514 } 514 }
515 515
516 bool canHaveScrollbars() const { 516 bool canHaveScrollbars() const {
517 return horizontalScrollbarMode() != ScrollbarAlwaysOff || 517 return horizontalScrollbarMode() != ScrollbarAlwaysOff ||
518 verticalScrollbarMode() != ScrollbarAlwaysOff; 518 verticalScrollbarMode() != ScrollbarAlwaysOff;
519 } 519 }
520 520
521 void sendScrollbarUseUMA(ScrollbarPart, ScrollbarOrientation) override;
522
521 // The visible content rect has a location that is the scrolled offset of 523 // The visible content rect has a location that is the scrolled offset of
522 // the document. The width and height are the layout viewport width and 524 // the document. The width and height are the layout viewport width and
523 // height. By default the scrollbars themselves are excluded from this 525 // height. By default the scrollbars themselves are excluded from this
524 // rectangle, but an optional boolean argument allows them to be included. 526 // rectangle, but an optional boolean argument allows them to be included.
525 IntRect visibleContentRect( 527 IntRect visibleContentRect(
526 IncludeScrollbarsInRect = ExcludeScrollbars) const override; 528 IncludeScrollbarsInRect = ExcludeScrollbars) const override;
527 IntSize visibleContentSize(IncludeScrollbarsInRect = ExcludeScrollbars) const; 529 IntSize visibleContentSize(IncludeScrollbarsInRect = ExcludeScrollbars) const;
528 530
529 // Clips the provided rect to the visible content area. For this purpose, we 531 // Clips the provided rect to the visible content area. For this purpose, we
530 // also query the chrome client for any active overrides to the visible area 532 // also query the chrome client for any active overrides to the visible area
(...skipping 692 matching lines...) Expand 10 before | Expand all | Expand 10 after
1223 widget.isFrameView()); 1225 widget.isFrameView());
1224 DEFINE_TYPE_CASTS(FrameView, 1226 DEFINE_TYPE_CASTS(FrameView,
1225 ScrollableArea, 1227 ScrollableArea,
1226 scrollableArea, 1228 scrollableArea,
1227 scrollableArea->isFrameView(), 1229 scrollableArea->isFrameView(),
1228 scrollableArea.isFrameView()); 1230 scrollableArea.isFrameView());
1229 1231
1230 } // namespace blink 1232 } // namespace blink
1231 1233
1232 #endif // FrameView_h 1234 #endif // FrameView_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | third_party/WebKit/Source/platform/Widget.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698