OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * Copyright (C) 2013 Apple Inc. All rights reserved. | 3 * Copyright (C) 2013 Apple Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 668 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
679 #if ENABLE(INPUT_TYPE_COLOR) | 679 #if ENABLE(INPUT_TYPE_COLOR) |
680 void Internals::selectColorInColorChooser(Element* element, const String& colorV
alue) | 680 void Internals::selectColorInColorChooser(Element* element, const String& colorV
alue) |
681 { | 681 { |
682 if (!element->hasTagName(inputTag)) | 682 if (!element->hasTagName(inputTag)) |
683 return; | 683 return; |
684 HTMLInputElement* inputElement = element->toInputElement(); | 684 HTMLInputElement* inputElement = element->toInputElement(); |
685 if (!inputElement) | 685 if (!inputElement) |
686 return; | 686 return; |
687 inputElement->selectColorInColorChooser(Color(colorValue)); | 687 inputElement->selectColorInColorChooser(Color(colorValue)); |
688 } | 688 } |
| 689 |
| 690 bool Internals::isColorChooserShown(Element* element) |
| 691 { |
| 692 if (!element->hasTagName(inputTag)) |
| 693 return false; |
| 694 HTMLInputElement* inputElement = element->toInputElement(); |
| 695 if (!inputElement) |
| 696 return false; |
| 697 return inputElement->isColorChooserShown(); |
| 698 } |
| 699 |
689 #endif | 700 #endif |
690 | 701 |
691 Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& e
c) | 702 Vector<String> Internals::formControlStateOfPreviousHistoryItem(ExceptionCode& e
c) |
692 { | 703 { |
693 HistoryItem* mainItem = frame()->loader()->history()->previousItem(); | 704 HistoryItem* mainItem = frame()->loader()->history()->previousItem(); |
694 if (!mainItem) { | 705 if (!mainItem) { |
695 ec = INVALID_ACCESS_ERR; | 706 ec = INVALID_ACCESS_ERR; |
696 return Vector<String>(); | 707 return Vector<String>(); |
697 } | 708 } |
698 String uniqueName = frame()->tree()->uniqueName(); | 709 String uniqueName = frame()->tree()->uniqueName(); |
(...skipping 1225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1924 | 1935 |
1925 RenderObject* renderer = select->renderer(); | 1936 RenderObject* renderer = select->renderer(); |
1926 if (!renderer->isMenuList()) | 1937 if (!renderer->isMenuList()) |
1927 return false; | 1938 return false; |
1928 | 1939 |
1929 RenderMenuList* menuList = toRenderMenuList(renderer); | 1940 RenderMenuList* menuList = toRenderMenuList(renderer); |
1930 return menuList->popupIsVisible(); | 1941 return menuList->popupIsVisible(); |
1931 } | 1942 } |
1932 | 1943 |
1933 } | 1944 } |
OLD | NEW |