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

Side by Side Diff: content/test/layouttest_support.cc

Issue 1414573003: Rename enums in WebPlatformEventType.h to follow blink style (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/public/test/layouttest_support.h" 5 #include "content/public/test/layouttest_support.h"
6 6
7 #include "base/callback.h" 7 #include "base/callback.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "components/test_runner/test_common.h" 9 #include "components/test_runner/test_common.h"
10 #include "components/test_runner/web_frame_test_proxy.h" 10 #include "components/test_runner/web_frame_test_proxy.h"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 false, 136 false,
137 base::Bind(&FetchManifestDoneCallback, 137 base::Bind(&FetchManifestDoneCallback,
138 base::Passed(&autodeleter), 138 base::Passed(&autodeleter),
139 callback)); 139 callback));
140 } 140 }
141 141
142 void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider) { 142 void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider) {
143 RenderThreadImpl::current() 143 RenderThreadImpl::current()
144 ->blink_platform_impl() 144 ->blink_platform_impl()
145 ->SetPlatformEventObserverForTesting( 145 ->SetPlatformEventObserverForTesting(
146 blink::WebPlatformEventGamepad, 146 blink::WebPlatformEventTypeGamepad,
147 provider.Pass()); 147 provider.Pass());
148 } 148 }
149 149
150 void SetMockDeviceLightData(const double data) { 150 void SetMockDeviceLightData(const double data) {
151 RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(data); 151 RendererBlinkPlatformImpl::SetMockDeviceLightDataForTesting(data);
152 } 152 }
153 153
154 void SetMockDeviceMotionData(const WebDeviceMotionData& data) { 154 void SetMockDeviceMotionData(const WebDeviceMotionData& data) {
155 RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(data); 155 RendererBlinkPlatformImpl::SetMockDeviceMotionDataForTesting(data);
156 } 156 }
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 result.append( 451 result.append(
452 DumpHistoryItem(entry->root_history_node(), 452 DumpHistoryItem(entry->root_history_node(),
453 8, 453 8,
454 index == current_index)); 454 index == current_index));
455 } 455 }
456 result.append("===============================================\n"); 456 result.append("===============================================\n");
457 return result; 457 return result;
458 } 458 }
459 459
460 } // namespace content 460 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_blink_platform_impl.cc ('k') | third_party/WebKit/Source/modules/battery/BatteryDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698