OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef PopupMenuChromium_h | 5 #ifndef PopupMenuChromium_h |
6 #define PopupMenuChromium_h | 6 #define PopupMenuChromium_h |
7 | 7 |
8 #pragma warning(push, 0) | 8 #include "config.h" |
| 9 |
| 10 #if COMPILER(MSVC) |
| 11 __pragma(warning(push, 0)) |
| 12 #endif |
9 #include "PopupMenuClient.h" | 13 #include "PopupMenuClient.h" |
10 | 14 |
11 #include "FramelessScrollView.h" | 15 #include "FramelessScrollView.h" |
12 #include "IntRect.h" | 16 #include "IntRect.h" |
13 #pragma warning(pop) | 17 #if COMPILER(MSVC) |
| 18 __pragma(warning(pop)) |
| 19 #endif |
14 | 20 |
15 | 21 |
16 namespace WebCore { | 22 namespace WebCore { |
17 | 23 |
18 class PopupListBox; | 24 class PopupListBox; |
19 | 25 |
20 // TODO(darin): Our FramelessScrollView classes need to implement HostWindow! | 26 // TODO(darin): Our FramelessScrollView classes need to implement HostWindow! |
21 | 27 |
22 // This class holds a PopupListBox (see cpp file). Its sole purpose is to be | 28 // This class holds a PopupListBox (see cpp file). Its sole purpose is to be |
23 // able to draw a border around its child. All its paint/event handling is just | 29 // able to draw a border around its child. All its paint/event handling is just |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 | 83 |
78 RefPtr<PopupListBox> m_listBox; | 84 RefPtr<PopupListBox> m_listBox; |
79 | 85 |
80 // Whether the window showing this popup should be focused when shown. | 86 // Whether the window showing this popup should be focused when shown. |
81 bool m_focusOnShow; | 87 bool m_focusOnShow; |
82 }; | 88 }; |
83 | 89 |
84 } | 90 } |
85 | 91 |
86 #endif // PopupMenuChromium_h | 92 #endif // PopupMenuChromium_h |
OLD | NEW |