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

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

Issue 659093002: Pass the size to the RenderView on creation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@java_enum
Patch Set: rebase Created 6 years, 1 month 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
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 #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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/message_loop/message_loop.h" 12 #include "base/message_loop/message_loop.h"
13 #include "base/strings/string16.h" 13 #include "base/strings/string16.h"
14 #include "content/public/browser/native_web_keyboard_event.h" 14 #include "content/public/browser/native_web_keyboard_event.h"
15 #include "content/public/common/main_function_params.h" 15 #include "content/public/common/main_function_params.h"
16 #include "content/public/common/page_state.h" 16 #include "content/public/common/page_state.h"
17 #include "content/public/test/mock_render_thread.h" 17 #include "content/public/test/mock_render_thread.h"
18 #include "testing/gtest/include/gtest/gtest.h" 18 #include "testing/gtest/include/gtest/gtest.h"
19 #include "third_party/WebKit/public/platform/Platform.h" 19 #include "third_party/WebKit/public/platform/Platform.h"
20 #include "third_party/WebKit/public/web/WebFrame.h" 20 #include "third_party/WebKit/public/web/WebFrame.h"
21 21
22 struct ViewMsg_Resize_Params;
23
22 namespace blink { 24 namespace blink {
23 class WebWidget; 25 class WebWidget;
24 } 26 }
25 27
26 namespace gfx { 28 namespace gfx {
27 class Rect; 29 class Rect;
28 } 30 }
29 31
30 namespace content { 32 namespace content {
31 class ContentBrowserClient; 33 class ContentBrowserClient;
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 void DidNavigateWithinPage(blink::WebLocalFrame* frame, 126 void DidNavigateWithinPage(blink::WebLocalFrame* frame,
125 bool is_new_navigation); 127 bool is_new_navigation);
126 void SendContentStateImmediately(); 128 void SendContentStateImmediately();
127 blink::WebWidget* GetWebWidget(); 129 blink::WebWidget* GetWebWidget();
128 130
129 // Allows a subclass to override the various content client implementations. 131 // Allows a subclass to override the various content client implementations.
130 virtual ContentClient* CreateContentClient(); 132 virtual ContentClient* CreateContentClient();
131 virtual ContentBrowserClient* CreateContentBrowserClient(); 133 virtual ContentBrowserClient* CreateContentBrowserClient();
132 virtual ContentRendererClient* CreateContentRendererClient(); 134 virtual ContentRendererClient* CreateContentRendererClient();
133 135
136 // Allows a subclass to customize the initial size of the RenderView.
137 virtual scoped_ptr<ViewMsg_Resize_Params> initial_size_params();
piman 2014/10/31 20:35:52 nit: per style, if virtual method, name with Camel
mkosiba (inactive) 2014/11/06 00:18:29 Done.
138
134 // testing::Test 139 // testing::Test
135 void SetUp() override; 140 void SetUp() override;
136 141
137 void TearDown() override; 142 void TearDown() override;
138 143
139 base::MessageLoop msg_loop_; 144 base::MessageLoop msg_loop_;
140 scoped_ptr<MockRenderProcess> mock_process_; 145 scoped_ptr<MockRenderProcess> mock_process_;
141 // We use a naked pointer because we don't want to expose RenderViewImpl in 146 // We use a naked pointer because we don't want to expose RenderViewImpl in
142 // the embedder's namespace. 147 // the embedder's namespace.
143 RenderView* view_; 148 RenderView* view_;
(...skipping 12 matching lines...) Expand all
156 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_; 161 scoped_ptr<base::mac::ScopedNSAutoreleasePool> autorelease_pool_;
157 #endif 162 #endif
158 163
159 private: 164 private:
160 void GoToOffset(int offset, const PageState& state); 165 void GoToOffset(int offset, const PageState& state);
161 }; 166 };
162 167
163 } // namespace content 168 } // namespace content
164 169
165 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_ 170 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_TEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698