Content settings: remove some plugin-related code/resources when... there are no...
[chromium-blink-merge.git] / content / public / test / render_widget_test.cc
blob1e9bd6ea0a7470b972c43747e49d5ad77e3a4557
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
3 // found in the LICENSE file.
5 #include "content/public/test/render_widget_test.h"
7 #include "base/basictypes.h"
8 #include "content/renderer/render_view_impl.h"
10 namespace content {
12 const int RenderWidgetTest::kNumBytesPerPixel = 4;
13 const int RenderWidgetTest::kLargeWidth = 1024;
14 const int RenderWidgetTest::kLargeHeight = 768;
15 const int RenderWidgetTest::kSmallWidth = 600;
16 const int RenderWidgetTest::kSmallHeight = 450;
17 const int RenderWidgetTest::kTextPositionX = 800;
18 const int RenderWidgetTest::kTextPositionY = 600;
19 const uint32 RenderWidgetTest::kRedARGB = 0xFFFF0000;
21 RenderWidgetTest::RenderWidgetTest() {}
23 RenderWidget* RenderWidgetTest::widget() {
24 return static_cast<RenderViewImpl*>(view_);
27 void RenderWidgetTest::OnResize(const ViewMsg_Resize_Params& params) {
28 widget()->OnResize(params);
31 bool RenderWidgetTest::next_paint_is_resize_ack() {
32 return widget()->next_paint_is_resize_ack();
35 } // namespace content