| 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 WindowChrome_h |
| 6 #define WindowChrome_h |
| 7 |
| 8 #include "core/frame/DOMWindowProperty.h" |
| 9 #include "platform/Supplementable.h" |
| 10 #include "platform/heap/Handle.h" |
| 11 |
| 12 namespace blink { |
| 13 |
| 14 class Chrome; |
| 15 class DOMWindow; |
| 16 class ExecutionContext; |
| 17 class LocalDOMWindow; |
| 18 |
| 19 class WindowChrome final |
| 20 : public GarbageCollected<WindowChrome> |
| 21 , public Supplement<LocalDOMWindow> |
| 22 , public DOMWindowProperty { |
| 23 USING_GARBAGE_COLLECTED_MIXIN(WindowChrome); |
| 24 |
| 25 public: |
| 26 static WindowChrome& from(LocalDOMWindow&); |
| 27 static Chrome* chromex(DOMWindow&); |
| 28 Chrome* chromex() const; |
| 29 |
| 30 DECLARE_TRACE(); |
| 31 |
| 32 private: |
| 33 explicit WindowChrome(LocalDOMWindow&); |
| 34 static const char* supplementName(); |
| 35 |
| 36 mutable Member<Chrome> m_chrome; |
| 37 }; |
| 38 |
| 39 } // namespace blink |
| 40 |
| 41 #endif // WindowChrome_h |
| OLD | NEW |