forked from llimllib/chrome-control
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rendering.py
51 lines (28 loc) · 1.12 KB
/
Rendering.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
from enum import Enum
from typing import Any, List
from base import ChromeCommand
class setShowPaintRects(ChromeCommand):
"""Requests that backend shows paint rectangles"""
def __init__(self, result: bool):
# True for showing paint rectangles
self.result = result
class setShowDebugBorders(ChromeCommand):
"""Requests that backend shows debug borders on layers"""
def __init__(self, show: bool):
# True for showing debug borders
self.show = show
class setShowFPSCounter(ChromeCommand):
"""Requests that backend shows the FPS counter"""
def __init__(self, show: bool):
# True for showing the FPS counter
self.show = show
class setShowScrollBottleneckRects(ChromeCommand):
"""Requests that backend shows scroll bottleneck rects"""
def __init__(self, show: bool):
# True for showing scroll bottleneck rects
self.show = show
class setShowViewportSizeOnResize(ChromeCommand):
"""Paints viewport size upon main frame resize."""
def __init__(self, show: bool):
# Whether to paint size or not.
self.show = show