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

Side by Side Diff: content/test/test_render_view_host.h

Issue 2388753003: Introduce cc::LocalFrameId and use in SurfaceFactory (Closed)
Patch Set: Fix exo_unittests Created 4 years, 2 months 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_TEST_TEST_RENDER_VIEW_HOST_H_ 5 #ifndef CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 6 #define CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/gtest_prod_util.h" 13 #include "base/gtest_prod_util.h"
14 #include "base/macros.h" 14 #include "base/macros.h"
15 #include "build/build_config.h" 15 #include "build/build_config.h"
16 #include "cc/surfaces/frame_sink_id.h" 16 #include "cc/surfaces/frame_sink_id.h"
17 #include "cc/surfaces/surface_id_allocator.h"
18 #include "content/browser/renderer_host/render_view_host_impl.h" 17 #include "content/browser/renderer_host/render_view_host_impl.h"
19 #include "content/browser/renderer_host/render_widget_host_view_base.h" 18 #include "content/browser/renderer_host/render_widget_host_view_base.h"
20 #include "content/public/common/web_preferences.h" 19 #include "content/public/common/web_preferences.h"
21 #include "content/public/test/mock_render_process_host.h" 20 #include "content/public/test/mock_render_process_host.h"
22 #include "content/public/test/test_renderer_host.h" 21 #include "content/public/test/test_renderer_host.h"
23 #include "ui/base/ime/dummy_text_input_client.h" 22 #include "ui/base/ime/dummy_text_input_client.h"
24 #include "ui/base/layout.h" 23 #include "ui/base/layout.h"
25 #include "ui/base/page_transition_types.h" 24 #include "ui/base/page_transition_types.h"
26 #include "ui/gfx/geometry/vector2d_f.h" 25 #include "ui/gfx/geometry/vector2d_f.h"
27 26
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 125
127 bool is_showing() const { return is_showing_; } 126 bool is_showing() const { return is_showing_; }
128 bool is_occluded() const { return is_occluded_; } 127 bool is_occluded() const { return is_occluded_; }
129 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } 128 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; }
130 129
131 protected: 130 protected:
132 RenderWidgetHostImpl* rwh_; 131 RenderWidgetHostImpl* rwh_;
133 cc::FrameSinkId frame_sink_id_; 132 cc::FrameSinkId frame_sink_id_;
134 133
135 private: 134 private:
136 std::unique_ptr<cc::SurfaceIdAllocator> surface_id_allocator_;
137 bool is_showing_; 135 bool is_showing_;
138 bool is_occluded_; 136 bool is_occluded_;
139 bool did_swap_compositor_frame_; 137 bool did_swap_compositor_frame_;
140 ui::DummyTextInputClient text_input_client_; 138 ui::DummyTextInputClient text_input_client_;
141 }; 139 };
142 140
143 #if defined(COMPILER_MSVC) 141 #if defined(COMPILER_MSVC)
144 // See comment for same warning on RenderViewHostImpl. 142 // See comment for same warning on RenderViewHostImpl.
145 #pragma warning(push) 143 #pragma warning(push)
146 #pragma warning(disable: 4250) 144 #pragma warning(disable: 4250)
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
303 private: 301 private:
304 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> 302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors>
305 ScopedSetSupportedScaleFactors; 303 ScopedSetSupportedScaleFactors;
306 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
307 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
308 }; 306 };
309 307
310 } // namespace content 308 } // namespace content
311 309
312 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698