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

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

Issue 1898633004: Views: Add new SetFocusBehavior method. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Created 4 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
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/download/download_item_view_md.h" 5 #include "chrome/browser/ui/views/download/download_item_view_md.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <vector> 10 #include <vector>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 AddChildView(dropdown_button_); 182 AddChildView(dropdown_button_);
183 183
184 LoadIcon(); 184 LoadIcon();
185 185
186 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance(); 186 ui::ResourceBundle& rb = ui::ResourceBundle::GetSharedInstance();
187 font_list_ = 187 font_list_ =
188 rb.GetFontList(ui::ResourceBundle::BaseFont).DeriveWithSizeDelta(1); 188 rb.GetFontList(ui::ResourceBundle::BaseFont).DeriveWithSizeDelta(1);
189 status_font_list_ = 189 status_font_list_ =
190 rb.GetFontList(ui::ResourceBundle::BaseFont).DeriveWithSizeDelta(-2); 190 rb.GetFontList(ui::ResourceBundle::BaseFont).DeriveWithSizeDelta(-2);
191 191
192 SetAccessibilityFocusable(true); 192 SetFocusBehavior(FocusBehavior::ACCESSIBLE_ONLY);
193 193
194 OnDownloadUpdated(download()); 194 OnDownloadUpdated(download());
195 195
196 SetDropdownState(NORMAL); 196 SetDropdownState(NORMAL);
197 UpdateColorsFromTheme(); 197 UpdateColorsFromTheme();
198 } 198 }
199 199
200 DownloadItemViewMd::~DownloadItemViewMd() { 200 DownloadItemViewMd::~DownloadItemViewMd() {
201 StopDownloadProgress(); 201 StopDownloadProgress();
202 download()->RemoveObserver(this); 202 download()->RemoveObserver(this);
(...skipping 910 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 SchedulePaint(); 1113 SchedulePaint();
1114 } 1114 }
1115 1115
1116 SkColor DownloadItemViewMd::GetTextColor() const { 1116 SkColor DownloadItemViewMd::GetTextColor() const {
1117 return GetTextColorForThemeProvider(GetThemeProvider()); 1117 return GetTextColorForThemeProvider(GetThemeProvider());
1118 } 1118 }
1119 1119
1120 SkColor DownloadItemViewMd::GetDimmedTextColor() const { 1120 SkColor DownloadItemViewMd::GetDimmedTextColor() const {
1121 return SkColorSetA(GetTextColor(), 0xC7); 1121 return SkColorSetA(GetTextColor(), 0xC7);
1122 } 1122 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/download/download_item_view.cc ('k') | chrome/browser/ui/views/exclusive_access_bubble_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698