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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 284583003: Use WebScreenInfo members to provide screen orientation information for layout test support. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased patch. Created 6 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
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_view_impl.cc » ('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_RENDERER_RENDER_VIEW_IMPL_H_ 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
7 7
8 #include <deque> 8 #include <deque>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 unsigned GetLocalSessionHistoryLengthForTesting() const; 353 unsigned GetLocalSessionHistoryLengthForTesting() const;
354 354
355 // Invokes OnSetFocus and marks the widget as active depending on the value 355 // Invokes OnSetFocus and marks the widget as active depending on the value
356 // of |enable|. This is used for layout tests that need to control the focus 356 // of |enable|. This is used for layout tests that need to control the focus
357 // synchronously from the renderer. 357 // synchronously from the renderer.
358 void SetFocusAndActivateForTesting(bool enable); 358 void SetFocusAndActivateForTesting(bool enable);
359 359
360 // Change the device scale factor and force the compositor to resize. 360 // Change the device scale factor and force the compositor to resize.
361 void SetDeviceScaleFactorForTesting(float factor); 361 void SetDeviceScaleFactorForTesting(float factor);
362 362
363 // Change screen orientation and force the compositor to resize.
364 void SetScreenOrientationForTesting(
365 const blink::WebScreenOrientationType& orientation);
366
363 // Change the device ICC color profile while running a layout test. 367 // Change the device ICC color profile while running a layout test.
364 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile); 368 void SetDeviceColorProfileForTesting(const std::vector<char>& color_profile);
365 369
366 // Used to force the size of a window when running layout tests. 370 // Used to force the size of a window when running layout tests.
367 void ForceResizeForTesting(const gfx::Size& new_size); 371 void ForceResizeForTesting(const gfx::Size& new_size);
368 372
369 void UseSynchronousResizeModeForTesting(bool enable); 373 void UseSynchronousResizeModeForTesting(bool enable);
370 374
371 // Control autoresize mode. 375 // Control autoresize mode.
372 void EnableAutoResizeForTesting(const gfx::Size& min_size, 376 void EnableAutoResizeForTesting(const gfx::Size& min_size,
(...skipping 839 matching lines...) Expand 10 before | Expand all | Expand 10 after
1212 // use the Observer interface to filter IPC messages and receive frame change 1216 // use the Observer interface to filter IPC messages and receive frame change
1213 // notifications. 1217 // notifications.
1214 // --------------------------------------------------------------------------- 1218 // ---------------------------------------------------------------------------
1215 1219
1216 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1220 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1217 }; 1221 };
1218 1222
1219 } // namespace content 1223 } // namespace content
1220 1224
1221 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1225 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698