OLD | NEW |
---|---|
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
55 , m_textInputController(new TextInputController()) | 55 , m_textInputController(new TextInputController()) |
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 WebRuntimeFeatures::enableDeviceMotion(true); | |
abarth-chromium
2013/05/13 18:39:56
In RuntimeEnabledFeatures.in, you should mark devi
timvolodine
2013/05/14 18:07:46
Done.
| |
65 | 66 |
66 resetAll(); | 67 resetAll(); |
67 } | 68 } |
68 | 69 |
69 TestInterfaces::~TestInterfaces() | 70 TestInterfaces::~TestInterfaces() |
70 { | 71 { |
71 m_accessibilityController->setWebView(0); | 72 m_accessibilityController->setWebView(0); |
72 m_eventSender->setWebView(0); | 73 m_eventSender->setWebView(0); |
73 // m_gamepadController doesn't depend on WebView. | 74 // m_gamepadController doesn't depend on WebView. |
74 m_textInputController->setWebView(0); | 75 m_textInputController->setWebView(0); |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
200 m_themeEngine.reset(new WebTestThemeEngineWin()); | 201 m_themeEngine.reset(new WebTestThemeEngineWin()); |
201 return m_themeEngine.get(); | 202 return m_themeEngine.get(); |
202 #elif defined(__APPLE__) | 203 #elif defined(__APPLE__) |
203 if (!m_themeEngine.get()) | 204 if (!m_themeEngine.get()) |
204 m_themeEngine.reset(new WebTestThemeEngineMac()); | 205 m_themeEngine.reset(new WebTestThemeEngineMac()); |
205 return m_themeEngine.get(); | 206 return m_themeEngine.get(); |
206 #endif | 207 #endif |
207 } | 208 } |
208 | 209 |
209 } | 210 } |
OLD | NEW |