OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #import "ios/web/navigation/crw_session_entry.h" | 5 #import "ios/web/navigation/crw_session_entry.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
11 #include "base/mac/scoped_nsobject.h" | 11 #import "base/mac/scoped_nsobject.h" |
12 #include "base/strings/sys_string_conversions.h" | 12 #include "base/strings/sys_string_conversions.h" |
13 #include "ios/web/navigation/navigation_item_impl.h" | 13 #import "ios/web/navigation/navigation_item_impl.h" |
14 #include "ios/web/navigation/nscoder_util.h" | 14 #import "ios/web/navigation/nscoder_util.h" |
15 #include "ios/web/public/navigation_item.h" | 15 #import "ios/web/public/navigation_item.h" |
16 #include "ios/web/public/web_state/page_display_state.h" | 16 #include "ios/web/public/web_state/page_display_state.h" |
17 #import "net/base/mac/url_conversions.h" | 17 #import "net/base/mac/url_conversions.h" |
18 | 18 |
19 #if !defined(__has_feature) || !__has_feature(objc_arc) | 19 #if !defined(__has_feature) || !__has_feature(objc_arc) |
20 #error "This file requires ARC support." | 20 #error "This file requires ARC support." |
21 #endif | 21 #endif |
22 | 22 |
23 namespace web { | 23 namespace web { |
24 // Keys used to serialize web::PageScrollState properties. | 24 // Keys used to serialize web::PageScrollState properties. |
25 NSString* const kSessionEntryPageScrollStateKey = @"state"; | 25 NSString* const kSessionEntryPageScrollStateKey = @"state"; |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
246 return | 246 return |
247 [NSString stringWithFormat:kPageScrollStateDescriptionFormat, | 247 [NSString stringWithFormat:kPageScrollStateDescriptionFormat, |
248 displayState.scroll_state().offset_x(), | 248 displayState.scroll_state().offset_x(), |
249 displayState.scroll_state().offset_y(), | 249 displayState.scroll_state().offset_y(), |
250 displayState.zoom_state().minimum_zoom_scale(), | 250 displayState.zoom_state().minimum_zoom_scale(), |
251 displayState.zoom_state().maximum_zoom_scale(), | 251 displayState.zoom_state().maximum_zoom_scale(), |
252 displayState.zoom_state().zoom_scale()]; | 252 displayState.zoom_state().zoom_scale()]; |
253 } | 253 } |
254 | 254 |
255 @end | 255 @end |
OLD | NEW |