| 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/ExecutionContextTask.h" | 10 #include "core/dom/ExecutionContextTask.h" |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 return "oblique"; | 66 return "oblique"; |
| 67 case FontStyleItalic: | 67 case FontStyleItalic: |
| 68 return "italic"; | 68 return "italic"; |
| 69 } | 69 } |
| 70 NOTREACHED(); | 70 NOTREACHED(); |
| 71 return nullptr; | 71 return nullptr; |
| 72 } | 72 } |
| 73 | 73 |
| 74 const char* textTransformToString(ETextTransform transform) { | 74 const char* textTransformToString(ETextTransform transform) { |
| 75 switch (transform) { | 75 switch (transform) { |
| 76 case CAPITALIZE: | 76 case ETextTransform::Capitalize: |
| 77 return "capitalize"; | 77 return "capitalize"; |
| 78 case UPPERCASE: | 78 case ETextTransform::Uppercase: |
| 79 return "uppercase"; | 79 return "uppercase"; |
| 80 case LOWERCASE: | 80 case ETextTransform::Lowercase: |
| 81 return "lowercase"; | 81 return "lowercase"; |
| 82 case TTNONE: | 82 case ETextTransform::None: |
| 83 return "none"; | 83 return "none"; |
| 84 } | 84 } |
| 85 NOTREACHED(); | 85 NOTREACHED(); |
| 86 return ""; | 86 return ""; |
| 87 } | 87 } |
| 88 | 88 |
| 89 } // anonymous namespace | 89 } // anonymous namespace |
| 90 | 90 |
| 91 class PopupMenuCSSFontSelector : public CSSFontSelector, | 91 class PopupMenuCSSFontSelector : public CSSFontSelector, |
| 92 private CSSFontSelectorClient { | 92 private CSSFontSelectorClient { |
| (...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 552 } | 552 } |
| 553 | 553 |
| 554 void PopupMenuImpl::disconnectClient() { | 554 void PopupMenuImpl::disconnectClient() { |
| 555 m_ownerElement = nullptr; | 555 m_ownerElement = nullptr; |
| 556 // Cannot be done during finalization, so instead done when the | 556 // Cannot be done during finalization, so instead done when the |
| 557 // layout object is destroyed and disconnected. | 557 // layout object is destroyed and disconnected. |
| 558 dispose(); | 558 dispose(); |
| 559 } | 559 } |
| 560 | 560 |
| 561 } // namespace blink | 561 } // namespace blink |
| OLD | NEW |