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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <deque> | 9 #include <deque> |
10 #include <map> | 10 #include <map> |
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1013 // scroll bars on windows smaller than this size. Used for windows that the | 1013 // scroll bars on windows smaller than this size. Used for windows that the |
1014 // browser resizes to the size of the content, such as browser action popups. | 1014 // browser resizes to the size of the content, such as browser action popups. |
1015 // If a render view is set to the minimum size of its content, webkit may add | 1015 // If a render view is set to the minimum size of its content, webkit may add |
1016 // scroll bars. This makes sense for fixed sized windows, but it does not | 1016 // scroll bars. This makes sense for fixed sized windows, but it does not |
1017 // make sense when the size of the view was chosen to fit the content. | 1017 // make sense when the size of the view was chosen to fit the content. |
1018 // This setting ensures that no scroll bars are drawn. The size limit exists | 1018 // This setting ensures that no scroll bars are drawn. The size limit exists |
1019 // because if the view grows beyond a size known to the browser, scroll bars | 1019 // because if the view grows beyond a size known to the browser, scroll bars |
1020 // should be drawn. | 1020 // should be drawn. |
1021 gfx::Size disable_scrollbars_size_limit_; | 1021 gfx::Size disable_scrollbars_size_limit_; |
1022 | 1022 |
1023 int default_device_scale_factor_; | |
1024 | |
1025 // Loading state ------------------------------------------------------------- | 1023 // Loading state ------------------------------------------------------------- |
1026 | 1024 |
1027 // True if the top level frame is currently being loaded. | 1025 // True if the top level frame is currently being loaded. |
1028 bool is_loading_; | 1026 bool is_loading_; |
1029 | 1027 |
1030 // The gesture that initiated the current navigation. | 1028 // The gesture that initiated the current navigation. |
1031 NavigationGesture navigation_gesture_; | 1029 NavigationGesture navigation_gesture_; |
1032 | 1030 |
1033 // Used for popups. | 1031 // Used for popups. |
1034 bool opened_by_user_gesture_; | 1032 bool opened_by_user_gesture_; |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1288 // bunch of stuff, you should probably create a helper class and put your | 1286 // bunch of stuff, you should probably create a helper class and put your |
1289 // data and methods on that to avoid bloating RenderView more. You can | 1287 // data and methods on that to avoid bloating RenderView more. You can |
1290 // use the Observer interface to filter IPC messages and receive frame change | 1288 // use the Observer interface to filter IPC messages and receive frame change |
1291 // notifications. | 1289 // notifications. |
1292 // --------------------------------------------------------------------------- | 1290 // --------------------------------------------------------------------------- |
1293 | 1291 |
1294 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); | 1292 DISALLOW_COPY_AND_ASSIGN(RenderViewImpl); |
1295 }; | 1293 }; |
1296 | 1294 |
1297 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ | 1295 #endif // CONTENT_RENDERER_RENDER_VIEW_IMPL_H_ |
OLD | NEW |