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

Side by Side Diff: content/renderer/render_view_impl.h

Issue 23364004: Implementation of device metrics emulation in render view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Fixed reviewers comments Created 7 years, 2 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 | Annotate | Revision Log
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 #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
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698