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

Side by Side Diff: chrome/browser/ui/views/tabs/tab.cc

Issue 1545153002: Switch to standard integer types in chrome/browser/ui/views/. (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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.h ('k') | chrome/browser/ui/views/tabs/tab_drag_controller.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 #include "chrome/browser/ui/views/tabs/tab.h" 5 #include "chrome/browser/ui/views/tabs/tab.h"
6 6
7 #include <stddef.h>
8
7 #include <limits> 9 #include <limits>
8 10
9 #include "base/command_line.h" 11 #include "base/command_line.h"
10 #include "base/debug/alias.h" 12 #include "base/debug/alias.h"
13 #include "base/macros.h"
11 #include "base/profiler/scoped_tracker.h" 14 #include "base/profiler/scoped_tracker.h"
12 #include "base/strings/utf_string_conversions.h" 15 #include "base/strings/utf_string_conversions.h"
16 #include "build/build_config.h"
13 #include "chrome/browser/themes/theme_properties.h" 17 #include "chrome/browser/themes/theme_properties.h"
14 #include "chrome/browser/ui/browser.h" 18 #include "chrome/browser/ui/browser.h"
15 #include "chrome/browser/ui/layout_constants.h" 19 #include "chrome/browser/ui/layout_constants.h"
16 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" 20 #include "chrome/browser/ui/tab_contents/core_tab_helper.h"
17 #include "chrome/browser/ui/tabs/tab_utils.h" 21 #include "chrome/browser/ui/tabs/tab_utils.h"
18 #include "chrome/browser/ui/view_ids.h" 22 #include "chrome/browser/ui/view_ids.h"
19 #include "chrome/browser/ui/views/tabs/media_indicator_button.h" 23 #include "chrome/browser/ui/views/tabs/media_indicator_button.h"
20 #include "chrome/browser/ui/views/tabs/tab_controller.h" 24 #include "chrome/browser/ui/views/tabs/tab_controller.h"
21 #include "chrome/browser/ui/views/theme_image_mapper.h" 25 #include "chrome/browser/ui/views/theme_image_mapper.h"
22 #include "chrome/browser/ui/views/touch_uma/touch_uma.h" 26 #include "chrome/browser/ui/views/touch_uma/touch_uma.h"
(...skipping 1723 matching lines...) Expand 10 before | Expand all | Expand 10 after
1746 const gfx::ImageSkia& image) { 1750 const gfx::ImageSkia& image) {
1747 DCHECK_NE(scale_factor, ui::SCALE_FACTOR_NONE); 1751 DCHECK_NE(scale_factor, ui::SCALE_FACTOR_NONE);
1748 ImageCacheEntry entry; 1752 ImageCacheEntry entry;
1749 entry.resource_id = resource_id; 1753 entry.resource_id = resource_id;
1750 entry.scale_factor = scale_factor; 1754 entry.scale_factor = scale_factor;
1751 entry.image = image; 1755 entry.image = image;
1752 image_cache_->push_front(entry); 1756 image_cache_->push_front(entry);
1753 if (image_cache_->size() > kMaxImageCacheSize) 1757 if (image_cache_->size() > kMaxImageCacheSize)
1754 image_cache_->pop_back(); 1758 image_cache_->pop_back();
1755 } 1759 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab.h ('k') | chrome/browser/ui/views/tabs/tab_drag_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698