OLD | NEW |
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 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
283 DISALLOW_COPY_AND_ASSIGN(TestWindowObserver); | 283 DISALLOW_COPY_AND_ASSIGN(TestWindowObserver); |
284 }; | 284 }; |
285 | 285 |
286 class FakeSurfaceObserver : public cc::SurfaceObserver { | 286 class FakeSurfaceObserver : public cc::SurfaceObserver { |
287 public: | 287 public: |
288 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override {} | 288 void OnSurfaceCreated(const cc::SurfaceInfo& surface_info) override {} |
289 | 289 |
290 void OnSurfaceDamaged(const cc::SurfaceId& id, bool* changed) override { | 290 void OnSurfaceDamaged(const cc::SurfaceId& id, bool* changed) override { |
291 *changed = true; | 291 *changed = true; |
292 } | 292 } |
| 293 |
| 294 void OnSurfaceDiscarded(const cc::SurfaceId& id) override {} |
293 }; | 295 }; |
294 | 296 |
295 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber { | 297 class FakeFrameSubscriber : public RenderWidgetHostViewFrameSubscriber { |
296 public: | 298 public: |
297 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback) | 299 FakeFrameSubscriber(gfx::Size size, base::Callback<void(bool)> callback) |
298 : size_(size), | 300 : size_(size), |
299 callback_(callback), | 301 callback_(callback), |
300 should_capture_(true), | 302 should_capture_(true), |
301 source_id_for_copy_request_(base::UnguessableToken::Create()) {} | 303 source_id_for_copy_request_(base::UnguessableToken::Create()) {} |
302 | 304 |
(...skipping 5239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5542 // There is no composition in the beginning. | 5544 // There is no composition in the beginning. |
5543 EXPECT_FALSE(has_composition_text()); | 5545 EXPECT_FALSE(has_composition_text()); |
5544 SetHasCompositionTextToTrue(); | 5546 SetHasCompositionTextToTrue(); |
5545 view->ImeCancelComposition(); | 5547 view->ImeCancelComposition(); |
5546 // The composition must have been canceled. | 5548 // The composition must have been canceled. |
5547 EXPECT_FALSE(has_composition_text()); | 5549 EXPECT_FALSE(has_composition_text()); |
5548 } | 5550 } |
5549 } | 5551 } |
5550 | 5552 |
5551 } // namespace content | 5553 } // namespace content |
OLD | NEW |