GCC Code Coverage Report
Directory: ../src/ Exec Total Coverage
File: /home/node-core-coverage/node-core-coverage/workdir/node/src/tty_wrap.h Lines: 1 2 50.0 %
Date: 2016-07-26 Branches: 0 0 0.0 %

Line Exec Source
1
#ifndef SRC_TTY_WRAP_H_
2
#define SRC_TTY_WRAP_H_
3
4
#if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
5
6
#include "env.h"
7
#include "handle_wrap.h"
8
#include "stream_wrap.h"
9
10
namespace node {
11
12
2
class TTYWrap : public StreamWrap {
13
 public:
14
  static void Initialize(v8::Local<v8::Object> target,
15
                         v8::Local<v8::Value> unused,
16
                         v8::Local<v8::Context> context);
17
18
  uv_tty_t* UVHandle();
19
20
  size_t self_size() const override { return sizeof(*this); }
21
22
 private:
23
  TTYWrap(Environment* env,
24
          v8::Local<v8::Object> object,
25
          int fd,
26
          bool readable);
27
28
  static void GuessHandleType(const v8::FunctionCallbackInfo<v8::Value>& args);
29
  static void IsTTY(const v8::FunctionCallbackInfo<v8::Value>& args);
30
  static void GetWindowSize(const v8::FunctionCallbackInfo<v8::Value>& args);
31
  static void SetRawMode(const v8::FunctionCallbackInfo<v8::Value>& args);
32
  static void New(const v8::FunctionCallbackInfo<v8::Value>& args);
33
34
  uv_tty_t handle_;
35
};
36
37
}  // namespace node
38
39
#endif  // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
40
41
#endif  // SRC_TTY_WRAP_H_