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"
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