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 21 matching lines...) Expand all Loading... |
32 #include "Chrome.h" | 32 #include "Chrome.h" |
33 #include "Frame.h" | 33 #include "Frame.h" |
34 #include "Page.h" | 34 #include "Page.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 BarInfo::BarInfo(Frame* frame, Type type) | 38 BarInfo::BarInfo(Frame* frame, Type type) |
39 : DOMWindowProperty(frame) | 39 : DOMWindowProperty(frame) |
40 , m_type(type) | 40 , m_type(type) |
41 { | 41 { |
| 42 ScriptWrappable::init(this); |
42 } | 43 } |
43 | 44 |
44 BarInfo::Type BarInfo::type() const | 45 BarInfo::Type BarInfo::type() const |
45 { | 46 { |
46 return m_type; | 47 return m_type; |
47 } | 48 } |
48 | 49 |
49 bool BarInfo::visible() const | 50 bool BarInfo::visible() const |
50 { | 51 { |
51 if (!m_frame) | 52 if (!m_frame) |
(...skipping 13 matching lines...) Expand all Loading... |
65 return page->chrome()->scrollbarsVisible(); | 66 return page->chrome()->scrollbarsVisible(); |
66 case Statusbar: | 67 case Statusbar: |
67 return page->chrome()->statusbarVisible(); | 68 return page->chrome()->statusbarVisible(); |
68 } | 69 } |
69 | 70 |
70 ASSERT_NOT_REACHED(); | 71 ASSERT_NOT_REACHED(); |
71 return false; | 72 return false; |
72 } | 73 } |
73 | 74 |
74 } // namespace WebCore | 75 } // namespace WebCore |
OLD | NEW |