Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / public / test / render_widget_test.h
blob3f1a071c0d6886485a77f4944b439f27cc9ed0d5
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 #ifndef CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_
6 #define CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_
8 #include "base/basictypes.h"
9 #include "base/files/file_path.h"
10 #include "content/public/test/render_view_test.h"
12 class SkBitmap;
13 struct ViewMsg_Resize_Params;
15 namespace gfx {
16 class Size;
19 namespace content {
20 class RenderWidget;
22 class RenderWidgetTest : public RenderViewTest {
23 public:
24 RenderWidgetTest();
26 protected:
27 RenderWidget* widget();
28 void OnResize(const ViewMsg_Resize_Params& params);
29 bool next_paint_is_resize_ack();
31 static const int kNumBytesPerPixel;
32 static const int kLargeWidth;
33 static const int kLargeHeight;
34 static const int kSmallWidth;
35 static const int kSmallHeight;
36 static const int kTextPositionX;
37 static const int kTextPositionY;
38 static const uint32 kRedARGB;
41 } // namespace content
43 #endif // CONTENT_PUBLIC_TEST_RENDER_WIDGET_TEST_H_