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

Side by Side Diff: chrome/browser/thumbnails/content_based_thumbnailing_algorithm.h

Issue 1545223002: Switch to standard integer types in chrome/browser/, part 4 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_THUMBNAILS_CONTENT_BASED_THUMBNAILING_ALGORITHM_H_ 5 #ifndef CHROME_BROWSER_THUMBNAILS_CONTENT_BASED_THUMBNAILING_ALGORITHM_H_
6 #define CHROME_BROWSER_THUMBNAILS_CONTENT_BASED_THUMBNAILING_ALGORITHM_H_ 6 #define CHROME_BROWSER_THUMBNAILS_CONTENT_BASED_THUMBNAILING_ALGORITHM_H_
7 7
8 #include "base/macros.h"
8 #include "chrome/browser/thumbnails/thumbnailing_algorithm.h" 9 #include "chrome/browser/thumbnails/thumbnailing_algorithm.h"
9 10
10 namespace thumbnails { 11 namespace thumbnails {
11 12
12 // Encapsulates a method of creating a thumbnail from a captured tab shot which 13 // Encapsulates a method of creating a thumbnail from a captured tab shot which
13 // attempts to preserve only relevant fragments of the original image. 14 // attempts to preserve only relevant fragments of the original image.
14 // The algorithm detects areas of high activity at low resolution and discards 15 // The algorithm detects areas of high activity at low resolution and discards
15 // rows and columns which do not intersect with these areas. 16 // rows and columns which do not intersect with these areas.
16 class ContentBasedThumbnailingAlgorithm : public ThumbnailingAlgorithm { 17 class ContentBasedThumbnailingAlgorithm : public ThumbnailingAlgorithm {
17 public: 18 public:
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 ClipResult* clip_result); 53 ClipResult* clip_result);
53 54
54 const gfx::Size target_size_; 55 const gfx::Size target_size_;
55 56
56 DISALLOW_COPY_AND_ASSIGN(ContentBasedThumbnailingAlgorithm); 57 DISALLOW_COPY_AND_ASSIGN(ContentBasedThumbnailingAlgorithm);
57 }; 58 };
58 59
59 } // namespace thumbnails 60 } // namespace thumbnails
60 61
61 #endif // CHROME_BROWSER_THUMBNAILS_CONTENT_BASED_THUMBNAILING_ALGORITHM_H_ 62 #endif // CHROME_BROWSER_THUMBNAILS_CONTENT_BASED_THUMBNAILING_ALGORITHM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698