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

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

Issue 10855151: Gradient overlay for constrained window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos Created 8 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
« no previous file with comments | « content/public/test/render_view_test.h ('k') | content/renderer/render_view_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 #include "content/public/test/render_view_test.h" 5 #include "content/public/test/render_view_test.h"
6 6
7 #include "content/common/view_messages.h" 7 #include "content/common/view_messages.h"
8 #include "content/public/browser/native_web_keyboard_event.h" 8 #include "content/public/browser/native_web_keyboard_event.h"
9 #include "content/public/common/renderer_preferences.h" 9 #include "content/public/common/renderer_preferences.h"
10 #include "content/renderer/render_thread_impl.h" 10 #include "content/renderer/render_thread_impl.h"
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 params.url = url; 302 params.url = url;
303 params.navigation_type = ViewMsg_Navigate_Type::RELOAD; 303 params.navigation_type = ViewMsg_Navigate_Type::RELOAD;
304 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 304 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
305 impl->OnNavigate(params); 305 impl->OnNavigate(params);
306 } 306 }
307 307
308 uint32 RenderViewTest::GetNavigationIPCType() { 308 uint32 RenderViewTest::GetNavigationIPCType() {
309 return ViewHostMsg_FrameNavigate::ID; 309 return ViewHostMsg_FrameNavigate::ID;
310 } 310 }
311 311
312 void RenderViewTest::Resize(gfx::Size new_size,
313 gfx::Rect resizer_rect,
314 bool is_fullscreen) {
315 scoped_ptr<IPC::Message> resize_message(new ViewMsg_Resize(
316 0, new_size, resizer_rect, is_fullscreen));
317 OnMessageReceived(*resize_message);
318 }
319
312 bool RenderViewTest::OnMessageReceived(const IPC::Message& msg) { 320 bool RenderViewTest::OnMessageReceived(const IPC::Message& msg) {
313 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 321 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
314 return impl->OnMessageReceived(msg); 322 return impl->OnMessageReceived(msg);
315 } 323 }
316 324
317 void RenderViewTest::DidNavigateWithinPage(WebKit::WebFrame* frame, 325 void RenderViewTest::DidNavigateWithinPage(WebKit::WebFrame* frame,
318 bool is_new_navigation) { 326 bool is_new_navigation) {
319 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_); 327 RenderViewImpl* impl = static_cast<RenderViewImpl*>(view_);
320 impl->didNavigateWithinPage(frame, is_new_navigation); 328 impl->didNavigateWithinPage(frame, is_new_navigation);
321 } 329 }
(...skipping 28 matching lines...) Expand all
350 358
351 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params); 359 ViewMsg_Navigate navigate_message(impl->GetRoutingID(), navigate_params);
352 OnMessageReceived(navigate_message); 360 OnMessageReceived(navigate_message);
353 361
354 // The load actually happens asynchronously, so we pump messages to process 362 // The load actually happens asynchronously, so we pump messages to process
355 // the pending continuation. 363 // the pending continuation.
356 ProcessPendingMessages(); 364 ProcessPendingMessages();
357 } 365 }
358 366
359 } // namespace content 367 } // namespace content
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698