Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/layout/xul/nsTitleBarFrame.h
Line
Count
Source (jump to first uncovered line)
1
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
3
/* This Source Code Form is subject to the terms of the Mozilla Public
4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
5
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
#ifndef nsTitleBarFrame_h___
7
#define nsTitleBarFrame_h___
8
9
#include "mozilla/Attributes.h"
10
#include "mozilla/EventForwards.h"
11
#include "nsBoxFrame.h"
12
13
class nsTitleBarFrame : public nsBoxFrame
14
{
15
public:
16
  NS_DECL_FRAMEARENA_HELPERS(nsTitleBarFrame)
17
18
  friend nsIFrame* NS_NewTitleBarFrame(nsIPresShell* aPresShell, ComputedStyle* aStyle);
19
20
  explicit nsTitleBarFrame(ComputedStyle* aStyle, ClassID = kClassID);
21
22
  virtual void BuildDisplayListForChildren(nsDisplayListBuilder*   aBuilder,
23
                                           const nsDisplayListSet& aLists) override;
24
25
  virtual nsresult HandleEvent(nsPresContext* aPresContext,
26
                               mozilla::WidgetGUIEvent* aEvent,
27
                               nsEventStatus* aEventStatus) override;
28
29
  virtual void MouseClicked(mozilla::WidgetMouseEvent* aEvent);
30
31
0
  void UpdateMouseThrough() override { AddStateBits(NS_FRAME_MOUSE_THROUGH_NEVER); }
32
33
protected:
34
  bool mTrackingMouseMove;
35
  mozilla::LayoutDeviceIntPoint mLastPoint;
36
37
}; // class nsTitleBarFrame
38
39
#endif /* nsTitleBarFrame_h___ */