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 757 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
768 virtual void InstrumentWillBeginFrame() OVERRIDE; | 768 virtual void InstrumentWillBeginFrame() OVERRIDE; |
769 virtual void InstrumentDidBeginFrame() OVERRIDE; | 769 virtual void InstrumentDidBeginFrame() OVERRIDE; |
770 virtual void InstrumentDidCancelFrame() OVERRIDE; | 770 virtual void InstrumentDidCancelFrame() OVERRIDE; |
771 virtual void InstrumentWillComposite() OVERRIDE; | 771 virtual void InstrumentWillComposite() OVERRIDE; |
772 virtual bool AllowPartialSwap() const OVERRIDE; | 772 virtual bool AllowPartialSwap() const OVERRIDE; |
773 | 773 |
774 protected: | 774 protected: |
775 explicit RenderViewImpl(RenderViewImplParams* params); | 775 explicit RenderViewImpl(RenderViewImplParams* params); |
776 | 776 |
777 void Initialize(RenderViewImplParams* params); | 777 void Initialize(RenderViewImplParams* params); |
| 778 virtual void SetScreenMetricsEmulationParameters(bool enabled, |
| 779 float device_scale_factor, float root_layer_scale) OVERRIDE; |
778 | 780 |
779 // Do not delete directly. This class is reference counted. | 781 // Do not delete directly. This class is reference counted. |
780 virtual ~RenderViewImpl(); | 782 virtual ~RenderViewImpl(); |
781 | 783 |
782 private: | 784 private: |
783 // For unit tests. | 785 // For unit tests. |
784 friend class ExternalPopupMenuTest; | 786 friend class ExternalPopupMenuTest; |
785 friend class PepperDeviceTest; | 787 friend class PepperDeviceTest; |
786 friend class RendererAccessibilityTest; | 788 friend class RendererAccessibilityTest; |
787 friend class RenderViewTest; | 789 friend class RenderViewTest; |
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1529 // use the Observer interface to filter IPC messages and receive frame change | 1531 // use the Observer interface to filter IPC messages and receive frame change |
1530 // notifications. | 1532 // notifications. |
1531 // --------------------------------------------------------------------------- | 1533 // --------------------------------------------------------------------------- |
1532 | 1534 |
1533 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1535 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1534 }; | 1536 }; |
1535 | 1537 |
1536 } // namespace content | 1538 } // namespace content |
1537 | 1539 |
1538 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1540 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |