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

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

Issue 113169: Move win_util.h from common to app. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/gfx/chrome_canvas.h" 9 #include "app/gfx/chrome_canvas.h"
10 #include "app/gfx/text_elider.h" 10 #include "app/gfx/text_elider.h"
11 #include "app/l10n_util.h" 11 #include "app/l10n_util.h"
12 #include "app/resource_bundle.h" 12 #include "app/resource_bundle.h"
13 #include "app/win_util.h"
13 #include "base/file_path.h" 14 #include "base/file_path.h"
14 #include "base/string_util.h" 15 #include "base/string_util.h"
15 #include "chrome/browser/browser_process.h" 16 #include "chrome/browser/browser_process.h"
16 #include "chrome/browser/download/download_item_model.h" 17 #include "chrome/browser/download/download_item_model.h"
17 #include "chrome/browser/download/download_util.h" 18 #include "chrome/browser/download/download_util.h"
18 #include "chrome/browser/views/download_shelf_view.h" 19 #include "chrome/browser/views/download_shelf_view.h"
19 #include "chrome/common/win_util.h"
20 #include "grit/generated_resources.h" 20 #include "grit/generated_resources.h"
21 #include "grit/theme_resources.h" 21 #include "grit/theme_resources.h"
22 #include "views/controls/button/native_button.h" 22 #include "views/controls/button/native_button.h"
23 #include "views/controls/menu/menu.h" 23 #include "views/controls/menu/menu.h"
24 #include "views/widget/root_view.h" 24 #include "views/widget/root_view.h"
25 #include "views/widget/widget.h" 25 #include "views/widget/widget.h"
26 26
27 using base::TimeDelta; 27 using base::TimeDelta;
28 28
29 // TODO(paulg): These may need to be adjusted when download progress 29 // TODO(paulg): These may need to be adjusted when download progress
(...skipping 896 matching lines...) Expand 10 before | Expand all | Expand 10 after
926 size = dangerous_download_label_->GetPreferredSize(); 926 size = dangerous_download_label_->GetPreferredSize();
927 927
928 dangerous_download_label_->SetBounds(0, 0, size.width(), size.height()); 928 dangerous_download_label_->SetBounds(0, 0, size.width(), size.height());
929 dangerous_download_label_sized_ = true; 929 dangerous_download_label_sized_ = true;
930 } 930 }
931 931
932 void DownloadItemView::Reenable() { 932 void DownloadItemView::Reenable() {
933 disabled_while_opening_ = false; 933 disabled_while_opening_ = false;
934 SetEnabled(true); // Triggers a repaint. 934 SetEnabled(true); // Triggers a repaint.
935 } 935 }
OLDNEW
« no previous file with comments | « chrome/browser/views/constrained_window_impl.cc ('k') | chrome/browser/views/frame/browser_frame.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698