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

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

Issue 7831028: Compute pageScaleFactor on page so that fixed layout page fits width of window. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Fixed common.gypi to have default value for enable_viewport Created 8 years, 10 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/public/common/content_switches.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 #pragma once 7 #pragma once
8 8
9 #include <deque> 9 #include <deque>
10 #include <map> 10 #include <map>
(...skipping 994 matching lines...) Expand 10 before | Expand all | Expand 10 after
1005 // scroll bars on windows smaller than this size. Used for windows that the 1005 // scroll bars on windows smaller than this size. Used for windows that the
1006 // browser resizes to the size of the content, such as browser action popups. 1006 // browser resizes to the size of the content, such as browser action popups.
1007 // If a render view is set to the minimum size of its content, webkit may add 1007 // If a render view is set to the minimum size of its content, webkit may add
1008 // scroll bars. This makes sense for fixed sized windows, but it does not 1008 // scroll bars. This makes sense for fixed sized windows, but it does not
1009 // make sense when the size of the view was chosen to fit the content. 1009 // make sense when the size of the view was chosen to fit the content.
1010 // This setting ensures that no scroll bars are drawn. The size limit exists 1010 // This setting ensures that no scroll bars are drawn. The size limit exists
1011 // because if the view grows beyond a size known to the browser, scroll bars 1011 // because if the view grows beyond a size known to the browser, scroll bars
1012 // should be drawn. 1012 // should be drawn.
1013 gfx::Size disable_scrollbars_size_limit_; 1013 gfx::Size disable_scrollbars_size_limit_;
1014 1014
1015 int default_device_scale_factor_;
1016
1015 // Loading state ------------------------------------------------------------- 1017 // Loading state -------------------------------------------------------------
1016 1018
1017 // True if the top level frame is currently being loaded. 1019 // True if the top level frame is currently being loaded.
1018 bool is_loading_; 1020 bool is_loading_;
1019 1021
1020 // The gesture that initiated the current navigation. 1022 // The gesture that initiated the current navigation.
1021 NavigationGesture navigation_gesture_; 1023 NavigationGesture navigation_gesture_;
1022 1024
1023 // Used for popups. 1025 // Used for popups.
1024 bool opened_by_user_gesture_; 1026 bool opened_by_user_gesture_;
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 // bunch of stuff, you should probably create a helper class and put your 1280 // bunch of stuff, you should probably create a helper class and put your
1279 // data and methods on that to avoid bloating RenderView more. You can 1281 // data and methods on that to avoid bloating RenderView more. You can
1280 // use the Observer interface to filter IPC messages and receive frame change 1282 // use the Observer interface to filter IPC messages and receive frame change
1281 // notifications. 1283 // notifications.
1282 // --------------------------------------------------------------------------- 1284 // ---------------------------------------------------------------------------
1283 1285
1284 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); 1286 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl);
1285 }; 1287 };
1286 1288
1287 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ 1289 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698