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 771 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 virtual void InstrumentWillBeginFrame() OVERRIDE; | 782 virtual void InstrumentWillBeginFrame() OVERRIDE; |
783 virtual void InstrumentDidBeginFrame() OVERRIDE; | 783 virtual void InstrumentDidBeginFrame() OVERRIDE; |
784 virtual void InstrumentDidCancelFrame() OVERRIDE; | 784 virtual void InstrumentDidCancelFrame() OVERRIDE; |
785 virtual void InstrumentWillComposite() OVERRIDE; | 785 virtual void InstrumentWillComposite() OVERRIDE; |
786 virtual bool AllowPartialSwap() const OVERRIDE; | 786 virtual bool AllowPartialSwap() const OVERRIDE; |
787 | 787 |
788 protected: | 788 protected: |
789 explicit RenderViewImpl(RenderViewImplParams* params); | 789 explicit RenderViewImpl(RenderViewImplParams* params); |
790 | 790 |
791 void Initialize(RenderViewImplParams* params); | 791 void Initialize(RenderViewImplParams* params); |
| 792 virtual void SetDeviceEmulationParameters(bool enabled, |
| 793 float device_scale_factor, float root_layer_scale) OVERRIDE; |
792 | 794 |
793 // Do not delete directly. This class is reference counted. | 795 // Do not delete directly. This class is reference counted. |
794 virtual ~RenderViewImpl(); | 796 virtual ~RenderViewImpl(); |
795 | 797 |
796 private: | 798 private: |
797 // For unit tests. | 799 // For unit tests. |
798 friend class ExternalPopupMenuTest; | 800 friend class ExternalPopupMenuTest; |
799 friend class PepperDeviceTest; | 801 friend class PepperDeviceTest; |
800 friend class RendererAccessibilityTest; | 802 friend class RendererAccessibilityTest; |
801 friend class RenderViewTest; | 803 friend class RenderViewTest; |
(...skipping 751 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1553 // use the Observer interface to filter IPC messages and receive frame change | 1555 // use the Observer interface to filter IPC messages and receive frame change |
1554 // notifications. | 1556 // notifications. |
1555 // --------------------------------------------------------------------------- | 1557 // --------------------------------------------------------------------------- |
1556 | 1558 |
1557 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1559 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1558 }; | 1560 }; |
1559 | 1561 |
1560 } // namespace content | 1562 } // namespace content |
1561 | 1563 |
1562 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1564 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |