| 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 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <map> | 9 #include <map> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 491 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 502 bool CanComposeInline() override; | 502 bool CanComposeInline() override; |
| 503 void DidCommitCompositorFrame() override; | 503 void DidCommitCompositorFrame() override; |
| 504 void DidCompletePageScaleAnimation() override; | 504 void DidCompletePageScaleAnimation() override; |
| 505 | 505 |
| 506 protected: | 506 protected: |
| 507 explicit RenderViewImpl(const ViewMsg_New_Params& params); | 507 explicit RenderViewImpl(const ViewMsg_New_Params& params); |
| 508 | 508 |
| 509 void Initialize(const ViewMsg_New_Params& params, | 509 void Initialize(const ViewMsg_New_Params& params, |
| 510 CompositorDependencies* compositor_deps, | 510 CompositorDependencies* compositor_deps, |
| 511 bool was_created_by_renderer); | 511 bool was_created_by_renderer); |
| 512 void SetScreenMetricsEmulationParameters(float device_scale_factor, | 512 void SetScreenMetricsEmulationParameters( |
| 513 const gfx::Point& root_layer_offset, | 513 bool enabled, |
| 514 float root_layer_scale) override; | 514 const blink::WebDeviceEmulationParams& params) override; |
| 515 | 515 |
| 516 // Do not delete directly. This class is reference counted. | 516 // Do not delete directly. This class is reference counted. |
| 517 virtual ~RenderViewImpl(); | 517 virtual ~RenderViewImpl(); |
| 518 | 518 |
| 519 private: | 519 private: |
| 520 // For unit tests. | 520 // For unit tests. |
| 521 friend class PepperDeviceTest; | 521 friend class PepperDeviceTest; |
| 522 friend class RenderViewImplTest; | 522 friend class RenderViewImplTest; |
| 523 friend class RenderViewTest; | 523 friend class RenderViewTest; |
| 524 friend class RendererAccessibilityTest; | 524 friend class RendererAccessibilityTest; |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 // use the Observer interface to filter IPC messages and receive frame change | 1049 // use the Observer interface to filter IPC messages and receive frame change |
| 1050 // notifications. | 1050 // notifications. |
| 1051 // --------------------------------------------------------------------------- | 1051 // --------------------------------------------------------------------------- |
| 1052 | 1052 |
| 1053 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1053 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
| 1054 }; | 1054 }; |
| 1055 | 1055 |
| 1056 } // namespace content | 1056 } // namespace content |
| 1057 | 1057 |
| 1058 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1058 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
| OLD | NEW |