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

Side by Side Diff: content/browser/screen_orientation/screen_orientation_browsertest.cc

Issue 476113004: Replace overdraw_bottom_height with top_controls_layout_height. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix ScrollViewportRounding test Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 <stdlib.h> 5 #include <stdlib.h>
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "content/browser/renderer_host/render_widget_host_impl.h" 8 #include "content/browser/renderer_host/render_widget_host_impl.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "content/public/browser/render_widget_host.h" 10 #include "content/public/browser/render_widget_host.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 } else if (strType == "landscape-secondary") { 63 } else if (strType == "landscape-secondary") {
64 type = blink::WebScreenOrientationLandscapeSecondary; 64 type = blink::WebScreenOrientationLandscapeSecondary;
65 } 65 }
66 ASSERT_NE(blink::WebScreenOrientationUndefined, type); 66 ASSERT_NE(blink::WebScreenOrientationUndefined, type);
67 screen_info.orientationType = type; 67 screen_info.orientationType = type;
68 68
69 ViewMsg_Resize_Params params; 69 ViewMsg_Resize_Params params;
70 params.screen_info = screen_info; 70 params.screen_info = screen_info;
71 params.new_size = gfx::Size(0, 0); 71 params.new_size = gfx::Size(0, 0);
72 params.physical_backing_size = gfx::Size(300, 300); 72 params.physical_backing_size = gfx::Size(300, 300);
73 params.overdraw_bottom_height = 0.f; 73 params.top_controls_layout_height = 0.f;
74 params.resizer_rect = gfx::Rect(); 74 params.resizer_rect = gfx::Rect();
75 params.is_fullscreen = false; 75 params.is_fullscreen = false;
76 rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params)); 76 rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params));
77 } 77 }
78 78
79 int GetOrientationAngle() { 79 int GetOrientationAngle() {
80 int angle; 80 int angle;
81 ExecuteScriptAndGetValue(shell()->web_contents()->GetMainFrame(), 81 ExecuteScriptAndGetValue(shell()->web_contents()->GetMainFrame(),
82 "screen.orientation.angle")->GetAsInteger(&angle); 82 "screen.orientation.angle")->GetAsInteger(&angle);
83 return angle; 83 return angle;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 #if defined(OS_ANDROID) 209 #if defined(OS_ANDROID)
210 "SecurityError"; // WebContents need to be fullscreen. 210 "SecurityError"; // WebContents need to be fullscreen.
211 #else 211 #else
212 "NotSupportedError"; // Locking isn't supported. 212 "NotSupportedError"; // Locking isn't supported.
213 #endif 213 #endif
214 214
215 EXPECT_EQ(expected, shell()->web_contents()->GetLastCommittedURL().ref()); 215 EXPECT_EQ(expected, shell()->web_contents()->GetLastCommittedURL().ref());
216 } 216 }
217 217
218 } // namespace content 218 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/render_widget_host_view_base.cc ('k') | content/common/cc_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698