layout/xul/nsTitleBarFrame.h

Wed, 31 Dec 2014 13:27:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 13:27:57 +0100
branch
TOR_BUG_3246
changeset 6
8bccb770b82d
permissions
-rw-r--r--

Ignore runtime configuration files generated during quality assurance.

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

mercurial