| OLD | NEW |
| (Empty) |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef AppearanceSwitchElement_h | |
| 6 #define AppearanceSwitchElement_h | |
| 7 | |
| 8 #include "core/html/HTMLDivElement.h" | |
| 9 | |
| 10 namespace blink { | |
| 11 | |
| 12 class AppearanceSwitchElement final : public HTMLDivElement { | |
| 13 public: | |
| 14 enum Mode { | |
| 15 ShowIfHostHasAppearance, | |
| 16 ShowIfHostHasNoAppearance, | |
| 17 }; | |
| 18 static AppearanceSwitchElement* create(Document&, Mode); | |
| 19 | |
| 20 private: | |
| 21 AppearanceSwitchElement(Document&, Mode); | |
| 22 PassRefPtr<ComputedStyle> customStyleForLayoutObject() override; | |
| 23 | |
| 24 const Mode m_mode; | |
| 25 }; | |
| 26 | |
| 27 } // namespace blink | |
| 28 #endif // AppearanceSwitchElement_h | |
| OLD | NEW |