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

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: Add Mac DSF update. 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
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 const ReadbackRequestCallback& callback, 111 const ReadbackRequestCallback& callback,
112 const SkColorType preferred_color_type) override; 112 const SkColorType preferred_color_type) override;
113 void CopyFromCompositingSurfaceToVideoFrame( 113 void CopyFromCompositingSurfaceToVideoFrame(
114 const gfx::Rect& src_subrect, 114 const gfx::Rect& src_subrect,
115 const scoped_refptr<media::VideoFrame>& target, 115 const scoped_refptr<media::VideoFrame>& target,
116 const base::Callback<void(const gfx::Rect&, bool)>& callback) override; 116 const base::Callback<void(const gfx::Rect&, bool)>& callback) override;
117 bool CanCopyToVideoFrame() const override; 117 bool CanCopyToVideoFrame() const override;
118 bool HasAcceleratedSurface(const gfx::Size& desired_size) override; 118 bool HasAcceleratedSurface(const gfx::Size& desired_size) override;
119 void LockCompositingSurface() override {} 119 void LockCompositingSurface() override {}
120 void UnlockCompositingSurface() override {} 120 void UnlockCompositingSurface() override {}
121 void GetScreenInfo(blink::WebScreenInfo* results) override {}
122 gfx::Rect GetBoundsInRootWindow() override; 121 gfx::Rect GetBoundsInRootWindow() override;
123 bool LockMouse() override; 122 bool LockMouse() override;
124 void UnlockMouse() override; 123 void UnlockMouse() override;
125 uint32_t GetSurfaceClientId() override; 124 uint32_t GetSurfaceClientId() override;
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:
(...skipping 170 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

Powered by Google App Engine
This is Rietveld 408576698