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

Side by Side Diff: content/public/test/layouttest_support.h

Issue 5222955109842944: Add plumbing for platform based Device Motion testing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: forward declare of WebDeviceMotionData 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 | « no previous file | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 5 #ifndef CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 6 #define CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
7 7
8 #include "base/callback_forward.h" 8 #include "base/callback_forward.h"
9 9
10 namespace WebKit { 10 namespace WebKit {
11 class WebDeviceMotionData;
11 class WebGamepads; 12 class WebGamepads;
12 struct WebSize; 13 struct WebSize;
13 } 14 }
14 15
15 namespace WebTestRunner { 16 namespace WebTestRunner {
16 class WebTestProxyBase; 17 class WebTestProxyBase;
17 } 18 }
18 19
19 namespace content { 20 namespace content {
20 21
(...skipping 11 matching lines...) Expand all
32 // Enable injecting of a WebTestProxy between WebViews and RenderViews. 33 // Enable injecting of a WebTestProxy between WebViews and RenderViews.
33 // |callback| is invoked with a pointer to WebTestProxyBase for each created 34 // |callback| is invoked with a pointer to WebTestProxyBase for each created
34 // WebTestProxy. 35 // WebTestProxy.
35 void EnableWebTestProxyCreation(const base::Callback< 36 void EnableWebTestProxyCreation(const base::Callback<
36 void(RenderView*, WebTestRunner::WebTestProxyBase*)>& callback); 37 void(RenderView*, WebTestRunner::WebTestProxyBase*)>& callback);
37 38
38 // Sets the WebGamepads that should be returned by 39 // Sets the WebGamepads that should be returned by
39 // WebKitPlatformSupport::sampleGamepads(). 40 // WebKitPlatformSupport::sampleGamepads().
40 void SetMockGamepads(const WebKit::WebGamepads& pads); 41 void SetMockGamepads(const WebKit::WebGamepads& pads);
41 42
43 // Sets WebDeviceMotionData that should be used when registering
44 // a listener through WebKitPlatformSupport::setDeviceMotionListener().
45 void SetMockDeviceMotionData(const WebKit::WebDeviceMotionData& data);
46
42 // Returns the length of the local session history of a render view. 47 // Returns the length of the local session history of a render view.
43 int GetLocalSessionHistoryLength(RenderView* render_view); 48 int GetLocalSessionHistoryLength(RenderView* render_view);
44 49
45 // Sync the current session history to the browser process. 50 // Sync the current session history to the browser process.
46 void SyncNavigationState(RenderView* render_view); 51 void SyncNavigationState(RenderView* render_view);
47 52
48 // Sets the focus of the render view depending on |enable|. This only overrides 53 // Sets the focus of the render view depending on |enable|. This only overrides
49 // the state of the renderer, and does not sync the focus to the browser 54 // the state of the renderer, and does not sync the focus to the browser
50 // process. 55 // process.
51 void SetFocusAndActivate(RenderView* render_view, bool enable); 56 void SetFocusAndActivate(RenderView* render_view, bool enable);
(...skipping 11 matching lines...) Expand all
63 const WebKit::WebSize& max_size); 68 const WebKit::WebSize& max_size);
64 void DisableAutoResizeMode(RenderView* render_view, 69 void DisableAutoResizeMode(RenderView* render_view,
65 const WebKit::WebSize& new_size); 70 const WebKit::WebSize& new_size);
66 71
67 // Forces the |render_view| to use mock media streams. 72 // Forces the |render_view| to use mock media streams.
68 void UseMockMediaStreams(RenderView* render_view); 73 void UseMockMediaStreams(RenderView* render_view);
69 74
70 } // namespace content 75 } // namespace content
71 76
72 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_ 77 #endif // CONTENT_PUBLIC_TEST_LAYOUTTEST_SUPPORT_H_
OLDNEW
« no previous file with comments | « no previous file | content/renderer/renderer_webkitplatformsupport_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698