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

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

Issue 2122023002: Cross-process frames should be notified of device scale factor changes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Version of patch without second test. Created 4 years, 4 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/renderer/render_widget.cc ('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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 const ReadbackRequestCallback& callback, 110 const ReadbackRequestCallback& callback,
111 const SkColorType preferred_color_type) override; 111 const SkColorType preferred_color_type) override;
112 void CopyFromCompositingSurfaceToVideoFrame( 112 void CopyFromCompositingSurfaceToVideoFrame(
113 const gfx::Rect& src_subrect, 113 const gfx::Rect& src_subrect,
114 const scoped_refptr<media::VideoFrame>& target, 114 const scoped_refptr<media::VideoFrame>& target,
115 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 115 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
116 bool CanCopyToVideoFrame() const override; 116 bool CanCopyToVideoFrame() const override;
117 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 117 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
118 void LockCompositingSurface() override {} 118 void LockCompositingSurface() override {}
119 void UnlockCompositingSurface() override {} 119 void UnlockCompositingSurface() override {}
120 void GetScreenInfo(blink::WebScreenInfo* results) override {}
121 gfx::Rect GetBoundsInRootWindow() override; 120 gfx::Rect GetBoundsInRootWindow() override;
122 bool LockMouse() override; 121 bool LockMouse() override;
123 void UnlockMouse() override; 122 void UnlockMouse() override;
124 uint32_t GetSurfaceClientId() override; 123 uint32_t GetSurfaceClientId() override;
125 124
126 bool is_showing() const { return is_showing_; } 125 bool is_showing() const { return is_showing_; }
127 bool is_occluded() const { return is_occluded_; } 126 bool is_occluded() const { return is_occluded_; }
128 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; } 127 bool did_swap_compositor_frame() const { return did_swap_compositor_frame_; }
129 128
130 protected: 129 protected:
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
301 private: 300 private:
302 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors> 301 typedef std::unique_ptr<ui::test::ScopedSetSupportedScaleFactors>
303 ScopedSetSupportedScaleFactors; 302 ScopedSetSupportedScaleFactors;
304 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_; 303 ScopedSetSupportedScaleFactors scoped_set_supported_scale_factors_;
305 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness); 304 DISALLOW_COPY_AND_ASSIGN(RenderViewHostImplTestHarness);
306 }; 305 };
307 306
308 } // namespace content 307 } // namespace content
309 308
310 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_ 309 #endif // CONTENT_TEST_TEST_RENDER_VIEW_HOST_H_
OLDNEW
« no previous file with comments | « content/renderer/render_widget.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698