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 #include "web/PopupMenuImpl.h" | 5 #include "web/PopupMenuImpl.h" |
6 | 6 |
7 #include "core/HTMLNames.h" | 7 #include "core/HTMLNames.h" |
8 #include "core/css/CSSFontSelector.h" | 8 #include "core/css/CSSFontSelector.h" |
9 #include "core/dom/ElementTraversal.h" | 9 #include "core/dom/ElementTraversal.h" |
10 #include "core/dom/NodeComputedStyle.h" | 10 #include "core/dom/NodeComputedStyle.h" |
11 #include "core/dom/StyleEngine.h" | 11 #include "core/dom/StyleEngine.h" |
12 #include "core/dom/TaskRunnerHelper.h" | 12 #include "core/dom/TaskRunnerHelper.h" |
13 #include "core/events/ScopedEventQueue.h" | 13 #include "core/events/ScopedEventQueue.h" |
| 14 #include "core/exported/WebViewBase.h" |
14 #include "core/frame/FrameView.h" | 15 #include "core/frame/FrameView.h" |
15 #include "core/frame/LocalFrame.h" | 16 #include "core/frame/LocalFrame.h" |
16 #include "core/html/HTMLHRElement.h" | 17 #include "core/html/HTMLHRElement.h" |
17 #include "core/html/HTMLOptGroupElement.h" | 18 #include "core/html/HTMLOptGroupElement.h" |
18 #include "core/html/HTMLOptionElement.h" | 19 #include "core/html/HTMLOptionElement.h" |
19 #include "core/html/HTMLSelectElement.h" | 20 #include "core/html/HTMLSelectElement.h" |
20 #include "core/html/parser/HTMLParserIdioms.h" | 21 #include "core/html/parser/HTMLParserIdioms.h" |
21 #include "core/layout/LayoutTheme.h" | 22 #include "core/layout/LayoutTheme.h" |
22 #include "core/page/PagePopup.h" | 23 #include "core/page/PagePopup.h" |
23 #include "platform/geometry/IntRect.h" | 24 #include "platform/geometry/IntRect.h" |
24 #include "platform/text/PlatformLocale.h" | 25 #include "platform/text/PlatformLocale.h" |
25 #include "public/platform/Platform.h" | 26 #include "public/platform/Platform.h" |
| 27 #include "public/platform/WebMouseEvent.h" |
26 #include "public/web/WebColorChooser.h" | 28 #include "public/web/WebColorChooser.h" |
27 #include "web/ChromeClientImpl.h" | 29 #include "web/ChromeClientImpl.h" |
28 #include "web/WebViewImpl.h" | |
29 | 30 |
30 namespace blink { | 31 namespace blink { |
31 | 32 |
32 namespace { | 33 namespace { |
33 | 34 |
34 const char* FontWeightToString(FontWeight weight) { | 35 const char* FontWeightToString(FontWeight weight) { |
35 switch (weight) { | 36 switch (weight) { |
36 case kFontWeight100: | 37 case kFontWeight100: |
37 return "100"; | 38 return "100"; |
38 case kFontWeight200: | 39 case kFontWeight200: |
(...skipping 539 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
578 } | 579 } |
579 | 580 |
580 void PopupMenuImpl::DisconnectClient() { | 581 void PopupMenuImpl::DisconnectClient() { |
581 owner_element_ = nullptr; | 582 owner_element_ = nullptr; |
582 // Cannot be done during finalization, so instead done when the | 583 // Cannot be done during finalization, so instead done when the |
583 // layout object is destroyed and disconnected. | 584 // layout object is destroyed and disconnected. |
584 Dispose(); | 585 Dispose(); |
585 } | 586 } |
586 | 587 |
587 } // namespace blink | 588 } // namespace blink |
OLD | NEW |