Chromium Code Reviews| 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_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1173 // the WebContents creation time. | 1173 // the WebContents creation time. |
| 1174 base::TimeTicks last_active_time_; | 1174 base::TimeTicks last_active_time_; |
| 1175 | 1175 |
| 1176 // See description above setter. | 1176 // See description above setter. |
| 1177 bool closed_by_user_gesture_; | 1177 bool closed_by_user_gesture_; |
| 1178 | 1178 |
| 1179 // Minimum/maximum zoom percent. | 1179 // Minimum/maximum zoom percent. |
| 1180 int minimum_zoom_percent_; | 1180 int minimum_zoom_percent_; |
| 1181 int maximum_zoom_percent_; | 1181 int maximum_zoom_percent_; |
| 1182 | 1182 |
| 1183 // Used to correctly handle integer zooming through a smooth scroll device. | |
| 1184 float zoom_scroll_amount_; | |
|
Avi (use Gerrit)
2016/01/05 01:46:24
This holds the non-integer portion of the zoom. Ma
Will Shackleton
2016/01/05 21:50:05
Done.
| |
| 1185 | |
| 1183 // The intrinsic size of the page. | 1186 // The intrinsic size of the page. |
| 1184 gfx::Size preferred_size_; | 1187 gfx::Size preferred_size_; |
| 1185 | 1188 |
| 1186 // The preferred size for content screen capture. When |capturer_count_| > 0, | 1189 // The preferred size for content screen capture. When |capturer_count_| > 0, |
| 1187 // this overrides |preferred_size_|. | 1190 // this overrides |preferred_size_|. |
| 1188 gfx::Size preferred_size_for_capture_; | 1191 gfx::Size preferred_size_for_capture_; |
| 1189 | 1192 |
| 1190 #if defined(OS_ANDROID) && !defined(USE_AURA) | 1193 #if defined(OS_ANDROID) && !defined(USE_AURA) |
| 1191 // Date time chooser opened by this tab. | 1194 // Date time chooser opened by this tab. |
| 1192 // Only used in Android since all other platforms use a multi field UI. | 1195 // Only used in Android since all other platforms use a multi field UI. |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1316 // Adds/removes a callback called on creation of each new WebContents. | 1319 // Adds/removes a callback called on creation of each new WebContents. |
| 1317 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); | 1320 static void AddCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1318 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); | 1321 static void RemoveCreatedCallbackForTesting(const CreatedCallback& callback); |
| 1319 | 1322 |
| 1320 DISALLOW_COPY_AND_ASSIGN(FriendZone); | 1323 DISALLOW_COPY_AND_ASSIGN(FriendZone); |
| 1321 }; | 1324 }; |
| 1322 | 1325 |
| 1323 } // namespace content | 1326 } // namespace content |
| 1324 | 1327 |
| 1325 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ | 1328 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_IMPL_H_ |
| OLD | NEW |