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

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: Rebase 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
« no previous file with comments | « content/renderer/external_popup_menu.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 756 matching lines...) Expand 10 before | Expand all | Expand 10 after
767 virtual void InstrumentWillBeginFrame() OVERRIDE; 767 virtual void InstrumentWillBeginFrame() OVERRIDE;
768 virtual void InstrumentDidBeginFrame() OVERRIDE; 768 virtual void InstrumentDidBeginFrame() OVERRIDE;
769 virtual void InstrumentDidCancelFrame() OVERRIDE; 769 virtual void InstrumentDidCancelFrame() OVERRIDE;
770 virtual void InstrumentWillComposite() OVERRIDE; 770 virtual void InstrumentWillComposite() OVERRIDE;
771 virtual bool AllowPartialSwap() const OVERRIDE; 771 virtual bool AllowPartialSwap() const OVERRIDE;
772 772
773 protected: 773 protected:
774 explicit RenderViewImpl(RenderViewImplParams* params); 774 explicit RenderViewImpl(RenderViewImplParams* params);
775 775
776 void Initialize(RenderViewImplParams* params); 776 void Initialize(RenderViewImplParams* params);
777 virtual void SetScreenMetricsEmulationParameters(
778 float device_scale_factor, float root_layer_scale) OVERRIDE;
777 779
778 // Do not delete directly. This class is reference counted. 780 // Do not delete directly. This class is reference counted.
779 virtual ~RenderViewImpl(); 781 virtual ~RenderViewImpl();
780 782
781 private: 783 private:
782 // For unit tests. 784 // For unit tests.
783 friend class ExternalPopupMenuTest; 785 friend class ExternalPopupMenuTest;
784 friend class PepperDeviceTest; 786 friend class PepperDeviceTest;
785 friend class RendererAccessibilityTest; 787 friend class RendererAccessibilityTest;
786 friend class RenderViewTest; 788 friend class RenderViewTest;
(...skipping 743 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 // use the Observer interface to filter IPC messages and receive frame change 1532 // use the Observer interface to filter IPC messages and receive frame change
1531 // notifications. 1533 // notifications.
1532 // --------------------------------------------------------------------------- 1534 // ---------------------------------------------------------------------------
1533 1535
1534 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1536 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1535 }; 1537 };
1536 1538
1537 } // namespace content 1539 } // namespace content
1538 1540
1539 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1541 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/renderer/external_popup_menu.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698