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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 #include "core/page/scrolling/ScrollingCoordinator.h" | 93 #include "core/page/scrolling/ScrollingCoordinator.h" |
94 #include "core/platform/ColorChooser.h" | 94 #include "core/platform/ColorChooser.h" |
95 #include "core/platform/Cursor.h" | 95 #include "core/platform/Cursor.h" |
96 #include "core/platform/Language.h" | 96 #include "core/platform/Language.h" |
97 #include "core/platform/graphics/IntRect.h" | 97 #include "core/platform/graphics/IntRect.h" |
98 #include "core/rendering/RenderMenuList.h" | 98 #include "core/rendering/RenderMenuList.h" |
99 #include "core/rendering/RenderObject.h" | 99 #include "core/rendering/RenderObject.h" |
100 #include "core/rendering/RenderTreeAsText.h" | 100 #include "core/rendering/RenderTreeAsText.h" |
101 #include "core/rendering/RenderView.h" | 101 #include "core/rendering/RenderView.h" |
102 #include "core/workers/WorkerThread.h" | 102 #include "core/workers/WorkerThread.h" |
| 103 #include "modules/vibration/NavigatorVibration.h" |
103 #include "weborigin/SchemeRegistry.h" | 104 #include "weborigin/SchemeRegistry.h" |
104 #include "wtf/dtoa.h" | 105 #include "wtf/dtoa.h" |
105 #include "wtf/text/StringBuffer.h" | 106 #include "wtf/text/StringBuffer.h" |
106 | 107 |
107 #include "core/page/PagePopupController.h" | 108 #include "core/page/PagePopupController.h" |
108 #include "core/platform/graphics/GraphicsLayer.h" | 109 #include "core/platform/graphics/GraphicsLayer.h" |
109 #include "core/platform/graphics/filters/FilterOperation.h" | 110 #include "core/platform/graphics/filters/FilterOperation.h" |
110 #include "core/platform/graphics/filters/FilterOperations.h" | 111 #include "core/platform/graphics/filters/FilterOperations.h" |
111 #include "core/rendering/RenderLayerBacking.h" | 112 #include "core/rendering/RenderLayerBacking.h" |
112 | 113 |
(...skipping 1853 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 HTMLSelectElement* select = toHTMLSelectElement(node); | 1967 HTMLSelectElement* select = toHTMLSelectElement(node); |
1967 | 1968 |
1968 RenderObject* renderer = select->renderer(); | 1969 RenderObject* renderer = select->renderer(); |
1969 if (!renderer->isMenuList()) | 1970 if (!renderer->isMenuList()) |
1970 return false; | 1971 return false; |
1971 | 1972 |
1972 RenderMenuList* menuList = toRenderMenuList(renderer); | 1973 RenderMenuList* menuList = toRenderMenuList(renderer); |
1973 return menuList->popupIsVisible(); | 1974 return menuList->popupIsVisible(); |
1974 } | 1975 } |
1975 | 1976 |
| 1977 bool Internals::isVibrating() |
| 1978 { |
| 1979 Document* document = contextDocument(); |
| 1980 ASSERT(document && document->domWindow()); |
| 1981 |
| 1982 fprintf(stderr, "isVibrating()\n"); |
| 1983 return NavigatorVibration::from(document->domWindow()->navigator())->isVibra
ting(); |
1976 } | 1984 } |
| 1985 |
| 1986 } |
OLD | NEW |