OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * | 7 * |
8 * 1. Redistributions of source code must retain the above copyright | 8 * 1. Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * 2. Redistributions in binary form must reproduce the above copyright | 10 * 2. Redistributions in binary form must reproduce the above copyright |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 | 76 |
77 namespace OverlayAgentState { | 77 namespace OverlayAgentState { |
78 static const char kEnabled[] = "enabled"; | 78 static const char kEnabled[] = "enabled"; |
79 static const char kShowDebugBorders[] = "showDebugBorders"; | 79 static const char kShowDebugBorders[] = "showDebugBorders"; |
80 static const char kShowFPSCounter[] = "showFPSCounter"; | 80 static const char kShowFPSCounter[] = "showFPSCounter"; |
81 static const char kShowPaintRects[] = "showPaintRects"; | 81 static const char kShowPaintRects[] = "showPaintRects"; |
82 static const char kShowScrollBottleneckRects[] = "showScrollBottleneckRects"; | 82 static const char kShowScrollBottleneckRects[] = "showScrollBottleneckRects"; |
83 static const char kShowSizeOnResize[] = "showSizeOnResize"; | 83 static const char kShowSizeOnResize[] = "showSizeOnResize"; |
84 static const char kSuspended[] = "suspended"; | 84 static const char kSuspended[] = "suspended"; |
85 static const char kPausedInDebuggerMessage[] = "pausedInDebuggerMessage"; | 85 static const char kPausedInDebuggerMessage[] = "pausedInDebuggerMessage"; |
86 } | 86 } // namespace OverlayAgentState |
87 | 87 |
88 Node* HoveredNodeForPoint(LocalFrame* frame, | 88 Node* HoveredNodeForPoint(LocalFrame* frame, |
89 const IntPoint& point_in_root_frame, | 89 const IntPoint& point_in_root_frame, |
90 bool ignore_pointer_events_none) { | 90 bool ignore_pointer_events_none) { |
91 HitTestRequest::HitTestRequestType hit_type = | 91 HitTestRequest::HitTestRequestType hit_type = |
92 HitTestRequest::kMove | HitTestRequest::kReadOnly | | 92 HitTestRequest::kMove | HitTestRequest::kReadOnly | |
93 HitTestRequest::kAllowChildFrameContent; | 93 HitTestRequest::kAllowChildFrameContent; |
94 if (ignore_pointer_events_none) | 94 if (ignore_pointer_events_none) |
95 hit_type |= HitTestRequest::kIgnorePointerEventsNone; | 95 hit_type |= HitTestRequest::kIgnorePointerEventsNone; |
96 HitTestRequest request(hit_type); | 96 HitTestRequest request(hit_type); |
(...skipping 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 InspectorDOMAgent::ParseColor(config->getShapeColor(nullptr)); | 1174 InspectorDOMAgent::ParseColor(config->getShapeColor(nullptr)); |
1175 highlight_config->shape_margin = | 1175 highlight_config->shape_margin = |
1176 InspectorDOMAgent::ParseColor(config->getShapeMarginColor(nullptr)); | 1176 InspectorDOMAgent::ParseColor(config->getShapeMarginColor(nullptr)); |
1177 highlight_config->selector_list = config->getSelectorList(""); | 1177 highlight_config->selector_list = config->getSelectorList(""); |
1178 | 1178 |
1179 *out_config = std::move(highlight_config); | 1179 *out_config = std::move(highlight_config); |
1180 return Response::OK(); | 1180 return Response::OK(); |
1181 } | 1181 } |
1182 | 1182 |
1183 } // namespace blink | 1183 } // namespace blink |
OLD | NEW |