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

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

Issue 2695093005: Remove RWHV::SetBounds() from the public API, and make comments clearer.
Patch Set: Revert web_contents_sizer to its previous shenanigans (http://crbug.com/693953). Created 3 years, 10 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
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // without having side-effects. 58 // without having side-effects.
59 class TestRenderWidgetHostView : public RenderWidgetHostViewBase { 59 class TestRenderWidgetHostView : public RenderWidgetHostViewBase {
60 public: 60 public:
61 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh); 61 explicit TestRenderWidgetHostView(RenderWidgetHost* rwh);
62 ~TestRenderWidgetHostView() override; 62 ~TestRenderWidgetHostView() override;
63 63
64 // RenderWidgetHostView implementation. 64 // RenderWidgetHostView implementation.
65 void InitAsChild(gfx::NativeView parent_view) override {} 65 void InitAsChild(gfx::NativeView parent_view) override {}
66 RenderWidgetHost* GetRenderWidgetHost() const override; 66 RenderWidgetHost* GetRenderWidgetHost() const override;
67 void SetSize(const gfx::Size& size) override {} 67 void SetSize(const gfx::Size& size) override {}
68 void SetBounds(const gfx::Rect& rect) override {}
69 gfx::Vector2dF GetLastScrollOffset() const override; 68 gfx::Vector2dF GetLastScrollOffset() const override;
70 gfx::NativeView GetNativeView() const override; 69 gfx::NativeView GetNativeView() const override;
71 gfx::NativeViewAccessible GetNativeViewAccessible() override; 70 gfx::NativeViewAccessible GetNativeViewAccessible() override;
72 ui::TextInputClient* GetTextInputClient() override; 71 ui::TextInputClient* GetTextInputClient() override;
73 bool HasFocus() const override; 72 bool HasFocus() const override;
74 bool IsSurfaceAvailableForCopy() const override; 73 bool IsSurfaceAvailableForCopy() const override;
75 void Show() override; 74 void Show() override;
76 void Hide() override; 75 void Hide() override;
77 bool IsShowing() override; 76 bool IsShowing() override;
78 void WasUnOccluded() override; 77 void WasUnOccluded() override;
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
302 private: 301 private:
303 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> 302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors>
304 ScopedSetSupportedScaleFactors; 303 ScopedSetSupportedScaleFactors;
305 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
306 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
307 }; 306 };
308 307
309 } // namespace content 308 } // namespace content
310 309
311 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/public/browser/render_widget_host_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698