OLD | NEW |
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 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 5 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 6 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
117 bool OnMessageReceived(const IPC::Message& msg); | 117 bool OnMessageReceived(const IPC::Message& msg); |
118 void DidNavigateWithinPage(WebKit::WebFrame* frame, bool is_new_navigation); | 118 void DidNavigateWithinPage(WebKit::WebFrame* frame, bool is_new_navigation); |
119 void SendContentStateImmediately(); | 119 void SendContentStateImmediately(); |
120 WebKit::WebWidget* GetWebWidget(); | 120 WebKit::WebWidget* GetWebWidget(); |
121 | 121 |
122 // testing::Test | 122 // testing::Test |
123 virtual void SetUp() OVERRIDE; | 123 virtual void SetUp() OVERRIDE; |
124 | 124 |
125 virtual void TearDown() OVERRIDE; | 125 virtual void TearDown() OVERRIDE; |
126 | 126 |
127 MessageLoop msg_loop_; | 127 base::MessageLoop msg_loop_; |
128 scoped_ptr<MockRenderProcess> mock_process_; | 128 scoped_ptr<MockRenderProcess> mock_process_; |
129 // We use a naked pointer because we don't want to expose RenderViewImpl in | 129 // We use a naked pointer because we don't want to expose RenderViewImpl in |
130 // the embedder's namespace. | 130 // the embedder's namespace. |
131 RenderView* view_; | 131 RenderView* view_; |
132 RendererWebKitPlatformSupportImplNoSandbox webkit_platform_support_; | 132 RendererWebKitPlatformSupportImplNoSandbox webkit_platform_support_; |
133 ContentRendererClient content_renderer_client_; | 133 ContentRendererClient content_renderer_client_; |
134 scoped_ptr<MockRenderThread> render_thread_; | 134 scoped_ptr<MockRenderThread> render_thread_; |
135 | 135 |
136 // Used to setup the process so renderers can run. | 136 // Used to setup the process so renderers can run. |
137 scoped_ptr<RendererMainPlatformDelegate> platform_; | 137 scoped_ptr<RendererMainPlatformDelegate> platform_; |
138 scoped_ptr<MainFunctionParams> params_; | 138 scoped_ptr<MainFunctionParams> params_; |
139 scoped_ptr<CommandLine> command_line_; | 139 scoped_ptr<CommandLine> command_line_; |
140 | 140 |
141 private: | 141 private: |
142 void GoToOffset(int offset, const WebKit::WebHistoryItem& history_item); | 142 void GoToOffset(int offset, const WebKit::WebHistoryItem& history_item); |
143 }; | 143 }; |
144 | 144 |
145 } // namespace content | 145 } // namespace content |
146 | 146 |
147 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ | 147 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ |
OLD | NEW |