OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2010 Apple 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 23 matching lines...) Expand all Loading... |
34 #include "core/frame/LocalFrame.h" | 34 #include "core/frame/LocalFrame.h" |
35 | 35 |
36 namespace blink { | 36 namespace blink { |
37 | 37 |
38 BarProp::BarProp(LocalFrame* frame, Type type) | 38 BarProp::BarProp(LocalFrame* frame, Type type) |
39 : DOMWindowProperty(frame) | 39 : DOMWindowProperty(frame) |
40 , m_type(type) | 40 , m_type(type) |
41 { | 41 { |
42 } | 42 } |
43 | 43 |
44 void BarProp::trace(Visitor* visitor) | 44 DEFINE_TRACE(BarProp) |
45 { | 45 { |
46 DOMWindowProperty::trace(visitor); | 46 DOMWindowProperty::trace(visitor); |
47 } | 47 } |
48 | 48 |
49 bool BarProp::visible() const | 49 bool BarProp::visible() const |
50 { | 50 { |
51 if (!m_frame) | 51 if (!m_frame) |
52 return false; | 52 return false; |
53 FrameHost* host = m_frame->host(); | 53 FrameHost* host = m_frame->host(); |
54 if (!host) | 54 if (!host) |
(...skipping 10 matching lines...) Expand all Loading... |
65 return host->chrome().scrollbarsVisible(); | 65 return host->chrome().scrollbarsVisible(); |
66 case Statusbar: | 66 case Statusbar: |
67 return host->chrome().statusbarVisible(); | 67 return host->chrome().statusbarVisible(); |
68 } | 68 } |
69 | 69 |
70 ASSERT_NOT_REACHED(); | 70 ASSERT_NOT_REACHED(); |
71 return false; | 71 return false; |
72 } | 72 } |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
OLD | NEW |