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

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

Issue 115309: Remove even more ATL dependencies. (Closed) Base URL: svn://svn.chromium.org/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
« no previous file with comments | « chrome/browser/views/bookmark_table_view.cc ('k') | chrome/browser/views/frame/browser_frame.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) 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"
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 status_text_(l10n_util::GetString(IDS_DOWNLOAD_STATUS_STARTING)), 136 status_text_(l10n_util::GetString(IDS_DOWNLOAD_STATUS_STARTING)),
137 show_status_text_(true), 137 show_status_text_(true),
138 dragging_(false), 138 dragging_(false),
139 starting_drag_(false), 139 starting_drag_(false),
140 warning_icon_(NULL), 140 warning_icon_(NULL),
141 save_button_(NULL), 141 save_button_(NULL),
142 discard_button_(NULL), 142 discard_button_(NULL),
143 dangerous_download_label_(NULL), 143 dangerous_download_label_(NULL),
144 dangerous_download_label_sized_(false), 144 dangerous_download_label_sized_(false),
145 creation_time_(base::Time::Now()), 145 creation_time_(base::Time::Now()),
146 reenable_method_factory_(this), 146 ALLOW_THIS_IN_INITIALIZER_LIST(reenable_method_factory_(this)),
147 disabled_while_opening_(false) { 147 disabled_while_opening_(false) {
148 // TODO(idana) Bug# 1163334 148 // TODO(idana) Bug# 1163334
149 // 149 //
150 // We currently do not mirror each download item on the download shelf (even 150 // We currently do not mirror each download item on the download shelf (even
151 // though the download shelf itself is mirrored and the items appear from 151 // though the download shelf itself is mirrored and the items appear from
152 // right to left on RTL UIs). 152 // right to left on RTL UIs).
153 // 153 //
154 // We explicitly disable mirroring for the item because the code that draws 154 // We explicitly disable mirroring for the item because the code that draws
155 // the download progress animation relies on the View's UI layout setting 155 // the download progress animation relies on the View's UI layout setting
156 // when positioning the animation so we should make sure that code doesn't 156 // when positioning the animation so we should make sure that code doesn't
(...skipping 769 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/bookmark_table_view.cc ('k') | chrome/browser/views/frame/browser_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698