Bug 1550519 - Show a translucent parent highlight when a subgrid is highlighted....
[gecko.git] / dom / base / nsISizeOfEventTarget.h
blob1e58fc24eb6391579ba7cef7bc495a61efcea104
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/. */
7 #ifndef nsISizeOfEventTarget_h___
8 #define nsISizeOfEventTarget_h___
10 #include "mozilla/MemoryReporting.h"
11 #include "nsISupports.h"
13 #define NS_ISIZEOFEVENTTARGET_IID \
14 { \
15 0xa1e08cb9, 0x5455, 0x4593, { \
16 0xb4, 0x1f, 0x38, 0x7a, 0x85, 0x44, 0xd0, 0xb5 \
17 } \
20 /**
21 * This class is much the same as nsISizeOf, but is specifically for measuring
22 * the contents of nsGlobalWindow::mEventTargetObjects.
24 * We don't use nsISizeOf because if we did, any object belonging to
25 * mEventTargetObjects that implements nsISizeOf would be measured, which we
26 * may not want (perhaps because the object is also measured elsewhere).
28 class nsISizeOfEventTarget : public nsISupports {
29 public:
30 NS_DECLARE_STATIC_IID_ACCESSOR(NS_ISIZEOFEVENTTARGET_IID)
32 /**
33 * Measures the size of the things pointed to by the object, plus the object
34 * itself.
36 virtual size_t SizeOfEventTargetIncludingThis(
37 mozilla::MallocSizeOf aMallocSizeOf) const = 0;
40 NS_DEFINE_STATIC_IID_ACCESSOR(nsISizeOfEventTarget, NS_ISIZEOFEVENTTARGET_IID)
42 #endif /* nsISizeOfEventTarget_h___ */