OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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 PopupMenuImpl_h | 5 #ifndef PopupMenuImpl_h |
6 #define PopupMenuImpl_h | 6 #define PopupMenuImpl_h |
7 | 7 |
8 #include "core/html/forms/PopupMenuClient.h" | 8 #include "core/html/forms/PopupMenuClient.h" |
9 #include "core/page/PagePopupClient.h" | 9 #include "core/page/PagePopupClient.h" |
10 #include "platform/PopupMenu.h" | 10 #include "platform/PopupMenu.h" |
11 | 11 |
12 namespace blink { | 12 namespace blink { |
13 | 13 |
14 class ChromeClientImpl; | 14 class ChromeClientImpl; |
15 class PagePopup; | 15 class PagePopup; |
16 class HTMLElement; | 16 class HTMLElement; |
17 class HTMLHRElement; | 17 class HTMLHRElement; |
18 class HTMLOptGroupElement; | 18 class HTMLOptGroupElement; |
19 class HTMLOptionElement; | 19 class HTMLOptionElement; |
20 | 20 |
21 class PopupMenuImpl final : public PopupMenu, public PagePopupClient { | 21 class PopupMenuImpl final : public PopupMenu, public PagePopupClient { |
22 public: | 22 public: |
23 static PassRefPtrWillBeRawPtr<PopupMenuImpl> create(ChromeClientImpl*, Popup
MenuClient*); | 23 static PassRefPtrWillBeRawPtr<PopupMenuImpl> create(ChromeClientImpl*, Popup
MenuClient*); |
24 virtual ~PopupMenuImpl(); | 24 ~PopupMenuImpl() override; |
25 | 25 |
26 void update(); | 26 void update(); |
27 | 27 |
28 void dispose(); | 28 void dispose(); |
29 | 29 |
30 private: | 30 private: |
31 PopupMenuImpl(ChromeClientImpl*, PopupMenuClient*); | 31 PopupMenuImpl(ChromeClientImpl*, PopupMenuClient*); |
32 | 32 |
33 class ItemIterationContext; | 33 class ItemIterationContext; |
34 bool hasTooManyItemsForStyling(); | 34 bool hasTooManyItemsForStyling(); |
(...skipping 21 matching lines...) Expand all Loading... |
56 | 56 |
57 ChromeClientImpl* m_chromeClient; | 57 ChromeClientImpl* m_chromeClient; |
58 PopupMenuClient* m_client; | 58 PopupMenuClient* m_client; |
59 PagePopup* m_popup; | 59 PagePopup* m_popup; |
60 bool m_needsUpdate; | 60 bool m_needsUpdate; |
61 }; | 61 }; |
62 | 62 |
63 } | 63 } |
64 | 64 |
65 #endif // PopupMenuImpl_h | 65 #endif // PopupMenuImpl_h |
OLD | NEW |