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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
108 #include "core/page/PagePopupController.h" | 108 #include "core/page/PagePopupController.h" |
109 #include "core/platform/graphics/GraphicsLayer.h" | 109 #include "core/platform/graphics/GraphicsLayer.h" |
110 #include "core/platform/graphics/filters/FilterOperation.h" | 110 #include "core/platform/graphics/filters/FilterOperation.h" |
111 #include "core/platform/graphics/filters/FilterOperations.h" | 111 #include "core/platform/graphics/filters/FilterOperations.h" |
112 #include "core/rendering/RenderLayerBacking.h" | 112 #include "core/rendering/RenderLayerBacking.h" |
113 | 113 |
114 #include "core/platform/mock/PlatformSpeechSynthesizerMock.h" | 114 #include "core/platform/mock/PlatformSpeechSynthesizerMock.h" |
115 #include "modules/speech/DOMWindowSpeechSynthesis.h" | 115 #include "modules/speech/DOMWindowSpeechSynthesis.h" |
116 #include "modules/speech/SpeechSynthesis.h" | 116 #include "modules/speech/SpeechSynthesis.h" |
117 | 117 |
118 // FIXME : Need to be removed this include statement | |
119 // after implementing Partial interface for Internals's IDL. | |
120 // This will be handled on the 261467 issue. | |
121 #include "modules/vibration/NavigatorVibration.h" | |
abarth-chromium
2013/07/18 07:39:07
This is a bad dependency. Rather than adding tech
| |
122 | |
118 namespace WebCore { | 123 namespace WebCore { |
119 | 124 |
120 static MockPagePopupDriver* s_pagePopupDriver = 0; | 125 static MockPagePopupDriver* s_pagePopupDriver = 0; |
121 | 126 |
122 using namespace HTMLNames; | 127 using namespace HTMLNames; |
123 | 128 |
124 class InspectorFrontendChannelDummy : public InspectorFrontendChannel { | 129 class InspectorFrontendChannelDummy : public InspectorFrontendChannel { |
125 public: | 130 public: |
126 explicit InspectorFrontendChannelDummy(Page*); | 131 explicit InspectorFrontendChannelDummy(Page*); |
127 virtual ~InspectorFrontendChannelDummy() { } | 132 virtual ~InspectorFrontendChannelDummy() { } |
(...skipping 1870 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1998 HTMLSelectElement* select = toHTMLSelectElement(node); | 2003 HTMLSelectElement* select = toHTMLSelectElement(node); |
1999 | 2004 |
2000 RenderObject* renderer = select->renderer(); | 2005 RenderObject* renderer = select->renderer(); |
2001 if (!renderer->isMenuList()) | 2006 if (!renderer->isMenuList()) |
2002 return false; | 2007 return false; |
2003 | 2008 |
2004 RenderMenuList* menuList = toRenderMenuList(renderer); | 2009 RenderMenuList* menuList = toRenderMenuList(renderer); |
2005 return menuList->popupIsVisible(); | 2010 return menuList->popupIsVisible(); |
2006 } | 2011 } |
2007 | 2012 |
2013 bool Internals::isVibrating(Document* document) | |
2014 { | |
2015 ASSERT(document && document->page()); | |
2016 | |
2017 return NavigatorVibration::from(document->page())->isVibrating(); | |
2008 } | 2018 } |
2019 | |
2020 } | |
OLD | NEW |