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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura_unittest.cc

Issue 2610723002: Unify SurfaceInfo (Closed)
Patch Set: Cleanup offscreen canvas Created 3 years, 11 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 #include "content/browser/renderer_host/render_widget_host_view_aura.h" 5 #include "content/browser/renderer_host/render_widget_host_view_aura.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <tuple> 10 #include <tuple>
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after
252 aura::Window* window_; 252 aura::Window* window_;
253 253
254 // Was |window_| destroyed? 254 // Was |window_| destroyed?
255 bool destroyed_; 255 bool destroyed_;
256 256
257 DISALLOW_COPY_AND_ASSIGN(TestWindowObserver); 257 DISALLOW_COPY_AND_ASSIGN(TestWindowObserver);
258 }; 258 };
259 259
260 class FakeSurfaceObserver : public cc::SurfaceObserver { 260 class FakeSurfaceObserver : public cc::SurfaceObserver {
261 public: 261 public:
262 void OnSurfaceCreated(const cc::SurfaceId& surface_id, 262 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override {}
263 const gfx::Size& frame,
264 float device_scale_factor) override {}
265 263
266 void OnSurfaceDamaged(const cc::SurfaceId& id, bool* changed) override { 264 void OnSurfaceDamaged(const cc::SurfaceId& id, bool* changed) override {
267 *changed = true; 265 *changed = true;
268 } 266 }
269 }; 267 };
270 268
271 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber { 269 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber {
272 public: 270 public:
273 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback) 271 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback)
274 : size_(size), callback_(callback), should_capture_(true) {} 272 : size_(size), callback_(callback), should_capture_(true) {}
(...skipping 4453 matching lines...) Expand 10 before | Expand all | Expand 10 after
4728 4726
4729 // Retrieve the selected text from clipboard and verify it is as expected. 4727 // Retrieve the selected text from clipboard and verify it is as expected.
4730 base::string16 result_text; 4728 base::string16 result_text;
4731 clipboard->ReadText(ui::CLIPBOARD_TYPE_SELECTION, &result_text); 4729 clipboard->ReadText(ui::CLIPBOARD_TYPE_SELECTION, &result_text);
4732 EXPECT_EQ(expected_text, result_text); 4730 EXPECT_EQ(expected_text, result_text);
4733 } 4731 }
4734 } 4732 }
4735 #endif 4733 #endif
4736 4734
4737 } // namespace content 4735 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698