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

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

Issue 8598031: views: Move widget/ directory to ui/views. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reland for real Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/download/download_item_view.h" 5 #include "chrome/browser/ui/views/download/download_item_view.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 16 matching lines...) Expand all
27 #include "grit/generated_resources.h" 27 #include "grit/generated_resources.h"
28 #include "grit/theme_resources.h" 28 #include "grit/theme_resources.h"
29 #include "ui/base/accessibility/accessible_view_state.h" 29 #include "ui/base/accessibility/accessible_view_state.h"
30 #include "ui/base/animation/slide_animation.h" 30 #include "ui/base/animation/slide_animation.h"
31 #include "ui/base/l10n/l10n_util.h" 31 #include "ui/base/l10n/l10n_util.h"
32 #include "ui/base/resource/resource_bundle.h" 32 #include "ui/base/resource/resource_bundle.h"
33 #include "ui/base/text/text_elider.h" 33 #include "ui/base/text/text_elider.h"
34 #include "ui/gfx/canvas_skia.h" 34 #include "ui/gfx/canvas_skia.h"
35 #include "ui/gfx/color_utils.h" 35 #include "ui/gfx/color_utils.h"
36 #include "ui/gfx/image/image.h" 36 #include "ui/gfx/image/image.h"
37 #include "ui/views/widget/root_view.h"
38 #include "ui/views/widget/widget.h"
37 #include "unicode/uchar.h" 39 #include "unicode/uchar.h"
38 #include "views/controls/button/text_button.h" 40 #include "views/controls/button/text_button.h"
39 #include "views/controls/label.h" 41 #include "views/controls/label.h"
40 #include "views/widget/root_view.h"
41 #include "views/widget/widget.h"
42 42
43 // TODO(paulg): These may need to be adjusted when download progress 43 // TODO(paulg): These may need to be adjusted when download progress
44 // animation is added, and also possibly to take into account 44 // animation is added, and also possibly to take into account
45 // different screen resolutions. 45 // different screen resolutions.
46 static const int kTextWidth = 140; // Pixels 46 static const int kTextWidth = 140; // Pixels
47 static const int kDangerousTextWidth = 200; // Pixels 47 static const int kDangerousTextWidth = 200; // Pixels
48 static const int kHorizontalTextPadding = 2; // Pixels 48 static const int kHorizontalTextPadding = 2; // Pixels
49 static const int kVerticalPadding = 3; // Pixels 49 static const int kVerticalPadding = 3; // Pixels
50 static const int kVerticalTextSpacer = 2; // Pixels 50 static const int kVerticalTextSpacer = 2; // Pixels
51 static const int kVerticalTextPadding = 2; // Pixels 51 static const int kVerticalTextPadding = 2; // Pixels
(...skipping 1072 matching lines...) Expand 10 before | Expand all | Expand 10 after
1124 // If the name has changed, notify assistive technology that the name 1124 // If the name has changed, notify assistive technology that the name
1125 // has changed so they can announce it immediately. 1125 // has changed so they can announce it immediately.
1126 if (new_name != accessible_name_) { 1126 if (new_name != accessible_name_) {
1127 accessible_name_ = new_name; 1127 accessible_name_ = new_name;
1128 if (GetWidget()) { 1128 if (GetWidget()) {
1129 GetWidget()->NotifyAccessibilityEvent( 1129 GetWidget()->NotifyAccessibilityEvent(
1130 this, ui::AccessibilityTypes::EVENT_NAME_CHANGED, true); 1130 this, ui::AccessibilityTypes::EVENT_NAME_CHANGED, true);
1131 } 1131 }
1132 } 1132 }
1133 } 1133 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698