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

Side by Side Diff: ios/chrome/browser/snapshots/snapshots_util.mm

Issue 1544743002: Switch to standard integer types in ios/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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
OLDNEW
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 #include "ios/chrome/browser/snapshots/snapshots_util.h" 5 #include "ios/chrome/browser/snapshots/snapshots_util.h"
6 6
7 #import <UIKit/UIKit.h> 7 #import <UIKit/UIKit.h>
8 8
9 #include "base/files/file_util.h" 9 #include "base/files/file_util.h"
10 #include "base/ios/ios_util.h" 10 #include "base/ios/ios_util.h"
11 #include "base/location.h" 11 #include "base/location.h"
12 #include "base/mac/foundation_util.h" 12 #include "base/mac/foundation_util.h"
13 #include "base/macros.h"
13 #include "base/path_service.h" 14 #include "base/path_service.h"
14 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
15 #include "ios/web/public/web_thread.h" 16 #include "ios/web/public/web_thread.h"
16 17
17 namespace { 18 namespace {
18 const char* kOrientationDescriptions[] = { 19 const char* kOrientationDescriptions[] = {
19 "LandscapeLeft", 20 "LandscapeLeft",
20 "LandscapeRight", 21 "LandscapeRight",
21 "Portrait", 22 "Portrait",
22 "PortraitUpsideDown", 23 "PortraitUpsideDown",
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 retinaSuffix = "@3x"; 58 retinaSuffix = "@3x";
58 } 59 }
59 for (unsigned int i = 0; i < arraysize(kOrientationDescriptions); i++) { 60 for (unsigned int i = 0; i < arraysize(kOrientationDescriptions); i++) {
60 std::string snapshotFilename = 61 std::string snapshotFilename =
61 base::StringPrintf("UIApplicationAutomaticSnapshotDefault-%s%s.png", 62 base::StringPrintf("UIApplicationAutomaticSnapshotDefault-%s%s.png",
62 kOrientationDescriptions[i], retinaSuffix); 63 kOrientationDescriptions[i], retinaSuffix);
63 base::FilePath snapshotPath = snapshotsDir.Append(snapshotFilename); 64 base::FilePath snapshotPath = snapshotsDir.Append(snapshotFilename);
64 snapshotsPaths->push_back(snapshotPath); 65 snapshotsPaths->push_back(snapshotPath);
65 } 66 }
66 } 67 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/snapshots/lru_cache.mm ('k') | ios/chrome/browser/suggestions/image_fetcher_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698