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

Side by Side Diff: chrome/browser/views/download_item_view.cc

Issue 2937010: Reland r52336. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 5 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 (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/views/download_item_view.h" 5 #include "chrome/browser/views/download_item_view.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/resource_bundle.h" 10 #include "app/resource_bundle.h"
11 #include "app/text_elider.h" 11 #include "app/text_elider.h"
12 #include "app/theme_provider.h" 12 #include "app/theme_provider.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/histogram.h"
15 #include "base/i18n/rtl.h" 16 #include "base/i18n/rtl.h"
16 #include "base/string_util.h" 17 #include "base/string_util.h"
17 #include "base/sys_string_conversions.h" 18 #include "base/sys_string_conversions.h"
18 #include "chrome/browser/browser_process.h" 19 #include "chrome/browser/browser_process.h"
19 #include "chrome/browser/browser_theme_provider.h" 20 #include "chrome/browser/browser_theme_provider.h"
20 #include "chrome/browser/download/download_item_model.h" 21 #include "chrome/browser/download/download_item_model.h"
21 #include "chrome/browser/download/download_util.h" 22 #include "chrome/browser/download/download_util.h"
22 #include "chrome/browser/views/download_shelf_view.h" 23 #include "chrome/browser/views/download_shelf_view.h"
23 #include "gfx/canvas_skia.h" 24 #include "gfx/canvas_skia.h"
24 #include "gfx/color_utils.h" 25 #include "gfx/color_utils.h"
(...skipping 981 matching lines...) Expand 10 before | Expand all | Expand 10 after
1006 void DownloadItemView::Reenable() { 1007 void DownloadItemView::Reenable() {
1007 disabled_while_opening_ = false; 1008 disabled_while_opening_ = false;
1008 SetEnabled(true); // Triggers a repaint. 1009 SetEnabled(true); // Triggers a repaint.
1009 } 1010 }
1010 1011
1011 bool DownloadItemView::InDropDownButtonXCoordinateRange(int x) { 1012 bool DownloadItemView::InDropDownButtonXCoordinateRange(int x) {
1012 if (x > drop_down_x_left_ && x < drop_down_x_right_) 1013 if (x > drop_down_x_left_ && x < drop_down_x_right_)
1013 return true; 1014 return true;
1014 return false; 1015 return false;
1015 } 1016 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698