LCOV - code coverage report
Current view: top level - widget/headless - HeadlessClipboardData.h (source / functions) Hit Total Coverage
Test: output.info Lines: 0 2 0.0 %
Date: 2017-07-14 16:53:18 Functions: 0 2 0.0 %
Legend: Lines: hit not hit

          Line data    Source code
       1             : /* This Source Code Form is subject to the terms of the Mozilla Public
       2             :  * License, v. 2.0. If a copy of the MPL was not distributed with this
       3             :  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
       4             : 
       5             : #ifndef mozilla_widget_HeadlessClipboardData_h
       6             : #define mozilla_widget_HeadlessClipboardData_h
       7             : 
       8             : #include "mozilla/RefPtr.h"
       9             : #include "nsString.h"
      10             : 
      11             : namespace mozilla {
      12             : namespace widget {
      13             : 
      14             : class HeadlessClipboardData final
      15             : {
      16             : public:
      17           0 :   explicit HeadlessClipboardData() = default;
      18           0 :   ~HeadlessClipboardData() = default;
      19             : 
      20             :   // For text/plain
      21             :   void SetText(const nsAString &aText);
      22             :   bool HasText() const;
      23             :   const nsAString& GetText() const;
      24             : 
      25             :   // For other APIs
      26             :   void Clear();
      27             : 
      28             : private:
      29             :   nsAutoString mPlain;
      30             : };
      31             : 
      32             : } // namespace widget
      33             : } // namespace mozilla
      34             : 
      35             : #endif // mozilla_widget_HeadlessClipboardData_h

Generated by: LCOV version 1.13