layout/xul/nsTitleBarFrame.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/layout/xul/nsTitleBarFrame.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,40 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +#ifndef nsTitleBarFrame_h___
     1.9 +#define nsTitleBarFrame_h___
    1.10 +
    1.11 +#include "mozilla/Attributes.h"
    1.12 +#include "mozilla/EventForwards.h"
    1.13 +#include "nsBoxFrame.h"
    1.14 +
    1.15 +class nsTitleBarFrame : public nsBoxFrame  
    1.16 +{
    1.17 +public:
    1.18 +  NS_DECL_FRAMEARENA_HELPERS
    1.19 +
    1.20 +  friend nsIFrame* NS_NewTitleBarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);  
    1.21 +
    1.22 +  nsTitleBarFrame(nsIPresShell* aPresShell, nsStyleContext* aContext);
    1.23 +
    1.24 +  virtual void BuildDisplayListForChildren(nsDisplayListBuilder*   aBuilder,
    1.25 +                                           const nsRect&           aDirtyRect,
    1.26 +                                           const nsDisplayListSet& aLists) MOZ_OVERRIDE;
    1.27 +
    1.28 +  virtual nsresult HandleEvent(nsPresContext* aPresContext,
    1.29 +                               mozilla::WidgetGUIEvent* aEvent,
    1.30 +                               nsEventStatus* aEventStatus) MOZ_OVERRIDE;
    1.31 +
    1.32 +  virtual void MouseClicked(nsPresContext* aPresContext,
    1.33 +                            mozilla::WidgetMouseEvent* aEvent);
    1.34 +
    1.35 +  void UpdateMouseThrough() MOZ_OVERRIDE { AddStateBits(NS_FRAME_MOUSE_THROUGH_NEVER); }
    1.36 +
    1.37 +protected:
    1.38 +	bool mTrackingMouseMove;	
    1.39 +	nsIntPoint mLastPoint;
    1.40 +
    1.41 +}; // class nsTitleBarFrame
    1.42 +
    1.43 +#endif /* nsTitleBarFrame_h___ */

mercurial