Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(102)

Side by Side Diff: Source/core/testing/Internals.cpp

Issue 18478003: Vibration cannot be canceled during pattern vibration. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Adoptation for recently changing of NavigatorVibration. Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « Source/core/testing/Internals.h ('k') | Source/core/testing/Internals.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698