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

Side by Side Diff: content/public/test/render_view_test.cc

Issue 964403003: Make it possible to set the display mode from Chromium (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Allowed include of "third_party/WebKit/public/platform/WebDisplayMode.h" Created 5 years, 8 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/render_view_test.h" 5 #include "content/public/test/render_view_test.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "content/common/dom_storage/dom_storage_types.h" 8 #include "content/common/dom_storage/dom_storage_types.h"
9 #include "content/common/frame_messages.h" 9 #include "content/common/frame_messages.h"
10 #include "content/common/input_messages.h" 10 #include "content/common/input_messages.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 gfx::Rect resizer_rect, 382 gfx::Rect resizer_rect,
383 bool is_fullscreen) { 383 bool is_fullscreen) {
384 ViewMsg_Resize_Params params; 384 ViewMsg_Resize_Params params;
385 params.screen_info = blink::WebScreenInfo(); 385 params.screen_info = blink::WebScreenInfo();
386 params.new_size = new_size; 386 params.new_size = new_size;
387 params.physical_backing_size = new_size; 387 params.physical_backing_size = new_size;
388 params.top_controls_height = 0.f; 388 params.top_controls_height = 0.f;
389 params.top_controls_shrink_blink_size = false; 389 params.top_controls_shrink_blink_size = false;
390 params.resizer_rect = resizer_rect; 390 params.resizer_rect = resizer_rect;
391 params.is_fullscreen = is_fullscreen; 391 params.is_fullscreen = is_fullscreen;
392 params.display_mode = blink::WebDisplayModeBrowser;
392 scoped_ptr<IPC::Message> resize_message(new ViewMsg_Resize(0, params)); 393 scoped_ptr<IPC::Message> resize_message(new ViewMsg_Resize(0, params));
393 OnMessageReceived(*resize_message); 394 OnMessageReceived(*resize_message);
394 } 395 }
395 396
396 bool RenderViewTest::OnMessageReceived(const IPC::Message& msg) { 397 bool RenderViewTest::OnMessageReceived(const IPC::Message& msg) {
397 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 398 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
398 return impl->OnMessageReceived(msg); 399 return impl->OnMessageReceived(msg);
399 } 400 }
400 401
401 void RenderViewTest::DidNavigateWithinPage(blink::WebLocalFrame* frame, 402 void RenderViewTest::DidNavigateWithinPage(blink::WebLocalFrame* frame,
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 458
458 impl->GetMainRenderFrame()->OnNavigate(common_params, StartNavigationParams(), 459 impl->GetMainRenderFrame()->OnNavigate(common_params, StartNavigationParams(),
459 request_params); 460 request_params);
460 461
461 // The load actually happens asynchronously, so we pump messages to process 462 // The load actually happens asynchronously, so we pump messages to process
462 // the pending continuation. 463 // the pending continuation.
463 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait(); 464 FrameLoadWaiter(view_->GetMainRenderFrame()).Wait();
464 } 465 }
465 466
466 } // namespace content 467 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698