Avi Drissman | 8ba1bad | 2022-09-13 19:22:36 | [diff] [blame] | 1 | // Copyright 2018 The Chromium Authors |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 5 | #include "components/ui_devtools/root_element.h" |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 6 | |
Hans Wennborg | df87046c | 2020-04-28 11:06:24 | [diff] [blame] | 7 | #include "base/notreached.h" |
Andrey Kosyakov | 103b8f2a | 2021-11-16 08:06:26 | [diff] [blame] | 8 | #include "components/ui_devtools/protocol.h" |
Illia Martyniuk | f688acd6 | 2018-04-02 19:26:07 | [diff] [blame] | 9 | #include "components/ui_devtools/ui_element_delegate.h" |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 10 | |
| 11 | namespace ui_devtools { |
| 12 | |
| 13 | RootElement::RootElement(UIElementDelegate* ui_element_delegate) |
| 14 | : UIElement(UIElementType::ROOT, ui_element_delegate, nullptr) {} |
| 15 | |
Sorin Jianu | 64e6e759 | 2024-10-09 14:15:26 | [diff] [blame^] | 16 | RootElement::~RootElement() = default; |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 17 | |
Leonard Grey | e4ae34d | 2018-02-16 17:34:29 | [diff] [blame] | 18 | void RootElement::GetBounds(gfx::Rect* bounds) const { |
Peter Boström | aaf19db | 2024-05-14 22:08:09 | [
|