LCOV - code coverage report
Current view: top level - gfx/layers/apz/src - KeyboardScrollAction.cpp (source / functions) Hit Total Coverage
Test: output.info Lines: 0 13 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 3 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
       2             : /* This Source Code Form is subject to the terms of the Mozilla Public
       3             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       4             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       5             : 
       6             : #include "mozilla/layers/KeyboardScrollAction.h"
       7             : 
       8             : namespace mozilla {
       9             : namespace layers {
      10             : 
      11             : /* static */ nsIScrollableFrame::ScrollUnit
      12           0 : KeyboardScrollAction::GetScrollUnit(KeyboardScrollAction::KeyboardScrollActionType aDeltaType)
      13             : {
      14           0 :   switch (aDeltaType) {
      15             :     case KeyboardScrollAction::eScrollCharacter:
      16           0 :       return nsIScrollableFrame::LINES;
      17             :     case KeyboardScrollAction::eScrollLine:
      18           0 :       return nsIScrollableFrame::LINES;
      19             :     case KeyboardScrollAction::eScrollPage:
      20           0 :       return nsIScrollableFrame::PAGES;
      21             :     case KeyboardScrollAction::eScrollComplete:
      22           0 :       return nsIScrollableFrame::WHOLE;
      23             :   }
      24             : 
      25             :   // Silence an overzealous warning
      26           0 :   return nsIScrollableFrame::WHOLE;
      27             : }
      28             : 
      29           0 : KeyboardScrollAction::KeyboardScrollAction()
      30             :   : mType(KeyboardScrollAction::eScrollCharacter)
      31           0 :   , mForward(false)
      32             : {
      33           0 : }
      34             : 
      35           0 : KeyboardScrollAction::KeyboardScrollAction(KeyboardScrollActionType aType, bool aForward)
      36             :   : mType(aType)
      37           0 :   , mForward(aForward)
      38             : {
      39           0 : }
      40             : 
      41             : } // namespace layers
      42             : } // namespace mozilla

Generated by: LCOV version 1.13