Bug 1763869 [wpt PR 33577] - Fix adb command to find webview package, a=testonly
[gecko.git] / layout / generic / FrameClass.py
blob0fae9e115efdbde5bb0d32847dcd36fe7b7a2662
1 # This Source Code Form is subject to the terms of the Mozilla Public
2 # License, v. 2.0. If a copy of the MPL was not distributed with this
3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
6 # Leaf constants to pass to Frame's leafness argument.
7 LEAF = "Leaf"
8 NOT_LEAF = "NotLeaf"
9 DYNAMIC_LEAF = "DynamicLeaf"
12 class FrameClass:
13 def __init__(self, cls):
14 self.cls = cls
17 class Frame(FrameClass):
18 def __init__(self, cls, ty, leafness):
19 FrameClass.__init__(self, cls)
20 self.ty = ty
21 self.leafness = leafness
22 self.is_concrete = True
25 class AbstractFrame(FrameClass):
26 def __init__(self, cls):
27 FrameClass.__init__(self, cls)
28 self.is_concrete = False