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

Side by Side Diff: Tools/DumpRenderTree/chromium/TestRunner/src/TestInterfaces.cpp

Issue 14460010: Implement the Blink part of the Device Motion API. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: made WebDeviceMotionData more "POD-ish" Created 7 years, 7 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 , m_testRunner(new TestRunner(this)) 56 , m_testRunner(new TestRunner(this))
57 , m_webView(0) 57 , m_webView(0)
58 , m_delegate(0) 58 , m_delegate(0)
59 { 59 {
60 WebKit::setLayoutTestMode(true); 60 WebKit::setLayoutTestMode(true);
61 61
62 WebRuntimeFeatures::enableStableFeatures(true); 62 WebRuntimeFeatures::enableStableFeatures(true);
63 WebRuntimeFeatures::enableExperimentalFeatures(true); 63 WebRuntimeFeatures::enableExperimentalFeatures(true);
64 WebRuntimeFeatures::enableTestOnlyFeatures(true); 64 WebRuntimeFeatures::enableTestOnlyFeatures(true);
65 65
66 // NOTE: please don't put feature specific enable flags here,
67 // instead add them to RuntimeEnabledFeatures.in
68
66 resetAll(); 69 resetAll();
67 } 70 }
68 71
69 TestInterfaces::~TestInterfaces() 72 TestInterfaces::~TestInterfaces()
70 { 73 {
71 m_accessibilityController->setWebView(0); 74 m_accessibilityController->setWebView(0);
72 m_eventSender->setWebView(0); 75 m_eventSender->setWebView(0);
73 // m_gamepadController doesn't depend on WebView. 76 // m_gamepadController doesn't depend on WebView.
74 m_textInputController->setWebView(0); 77 m_textInputController->setWebView(0);
75 m_testRunner->setWebView(0, 0); 78 m_testRunner->setWebView(0, 0);
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 m_themeEngine.reset(new WebTestThemeEngineWin()); 203 m_themeEngine.reset(new WebTestThemeEngineWin());
201 return m_themeEngine.get(); 204 return m_themeEngine.get();
202 #elif defined(__APPLE__) 205 #elif defined(__APPLE__)
203 if (!m_themeEngine.get()) 206 if (!m_themeEngine.get())
204 m_themeEngine.reset(new WebTestThemeEngineMac()); 207 m_themeEngine.reset(new WebTestThemeEngineMac());
205 return m_themeEngine.get(); 208 return m_themeEngine.get();
206 #endif 209 #endif
207 } 210 }
208 211
209 } 212 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698