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

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

Issue 2395393003: Remove grow box rect support, renderer part. (Closed)
Patch Set: rebase Created 4 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 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "build/build_config.h" 9 #include "build/build_config.h"
10 #include "content/browser/renderer_host/render_widget_host_impl.h" 10 #include "content/browser/renderer_host/render_widget_host_impl.h"
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 } 49 }
50 ASSERT_NE(SCREEN_ORIENTATION_VALUES_DEFAULT, type); 50 ASSERT_NE(SCREEN_ORIENTATION_VALUES_DEFAULT, type);
51 screen_info.orientation_type = type; 51 screen_info.orientation_type = type;
52 52
53 ResizeParams params; 53 ResizeParams params;
54 params.screen_info = screen_info; 54 params.screen_info = screen_info;
55 params.new_size = gfx::Size(0, 0); 55 params.new_size = gfx::Size(0, 0);
56 params.physical_backing_size = gfx::Size(300, 300); 56 params.physical_backing_size = gfx::Size(300, 300);
57 params.top_controls_height = 0.f; 57 params.top_controls_height = 0.f;
58 params.top_controls_shrink_blink_size = false; 58 params.top_controls_shrink_blink_size = false;
59 params.resizer_rect = gfx::Rect();
60 params.is_fullscreen_granted = false; 59 params.is_fullscreen_granted = false;
61 rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params)); 60 rwh->Send(new ViewMsg_Resize(rwh->GetRoutingID(), params));
62 } 61 }
63 62
64 int GetOrientationAngle() { 63 int GetOrientationAngle() {
65 int angle; 64 int angle;
66 ExecuteScriptAndGetValue(shell()->web_contents()->GetMainFrame(), 65 ExecuteScriptAndGetValue(shell()->web_contents()->GetMainFrame(),
67 "screen.orientation.angle")->GetAsInteger(&angle); 66 "screen.orientation.angle")->GetAsInteger(&angle);
68 return angle; 67 return angle;
69 } 68 }
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 239
241 TestNavigationObserver navigation_observer(shell()->web_contents(), 1); 240 TestNavigationObserver navigation_observer(shell()->web_contents(), 1);
242 navigation_observer.Wait(); 241 navigation_observer.Wait();
243 EXPECT_EQ("NotSupportedError", 242 EXPECT_EQ("NotSupportedError",
244 shell()->web_contents()->GetLastCommittedURL().ref()); 243 shell()->web_contents()->GetLastCommittedURL().ref());
245 } 244 }
246 } 245 }
247 #endif // defined(OS_ANDROID) 246 #endif // defined(OS_ANDROID)
248 247
249 } // namespace content 248 } // namespace content
OLDNEW
« no previous file with comments | « components/printing/test/print_web_view_helper_browsertest.cc ('k') | content/common/resize_params.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698