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

Side by Side Diff: chrome/browser/chromeos/options/wimax_config_view.cc

Issue 10382144: Change SetImage, SetBackground, and SetToggledImage to take in a gfx::ImageSkia (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 8 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) 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/chromeos/options/wimax_config_view.h" 5 #include "chrome/browser/chromeos/options/wimax_config_view.h"
6 6
7 #include "base/string_util.h" 7 #include "base/string_util.h"
8 #include "base/stringprintf.h" 8 #include "base/stringprintf.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/chromeos/cros/cros_library.h" 10 #include "chrome/browser/chromeos/cros/cros_library.h"
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 passphrase_visible_button_ = new views::ToggleImageButton(this); 267 passphrase_visible_button_ = new views::ToggleImageButton(this);
268 passphrase_visible_button_->SetTooltipText( 268 passphrase_visible_button_->SetTooltipText(
269 l10n_util::GetStringUTF16( 269 l10n_util::GetStringUTF16(
270 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSPHRASE_SHOW)); 270 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSPHRASE_SHOW));
271 passphrase_visible_button_->SetToggledTooltipText( 271 passphrase_visible_button_->SetToggledTooltipText(
272 l10n_util::GetStringUTF16( 272 l10n_util::GetStringUTF16(
273 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSPHRASE_HIDE)); 273 IDS_OPTIONS_SETTINGS_INTERNET_OPTIONS_PASSPHRASE_HIDE));
274 passphrase_visible_button_->SetImage( 274 passphrase_visible_button_->SetImage(
275 views::ImageButton::BS_NORMAL, 275 views::ImageButton::BS_NORMAL,
276 ResourceBundle::GetSharedInstance(). 276 ResourceBundle::GetSharedInstance().
277 GetBitmapNamed(IDR_NETWORK_SHOW_PASSWORD_OFF)); 277 GetImageSkiaNamed(IDR_NETWORK_SHOW_PASSWORD_OFF));
278 passphrase_visible_button_->SetImage( 278 passphrase_visible_button_->SetImage(
279 views::ImageButton::BS_HOT, 279 views::ImageButton::BS_HOT,
280 ResourceBundle::GetSharedInstance(). 280 ResourceBundle::GetSharedInstance().
281 GetBitmapNamed(IDR_NETWORK_SHOW_PASSWORD_HOVER)); 281 GetImageSkiaNamed(IDR_NETWORK_SHOW_PASSWORD_HOVER));
282 passphrase_visible_button_->SetToggledImage( 282 passphrase_visible_button_->SetToggledImage(
283 views::ImageButton::BS_NORMAL, 283 views::ImageButton::BS_NORMAL,
284 ResourceBundle::GetSharedInstance(). 284 ResourceBundle::GetSharedInstance().
285 GetBitmapNamed(IDR_NETWORK_SHOW_PASSWORD_ON)); 285 GetImageSkiaNamed(IDR_NETWORK_SHOW_PASSWORD_ON));
286 passphrase_visible_button_->SetImageAlignment( 286 passphrase_visible_button_->SetImageAlignment(
287 views::ImageButton::ALIGN_CENTER, views::ImageButton::ALIGN_MIDDLE); 287 views::ImageButton::ALIGN_CENTER, views::ImageButton::ALIGN_MIDDLE);
288 layout->AddView(passphrase_visible_button_); 288 layout->AddView(passphrase_visible_button_);
289 } 289 }
290 290
291 layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing); 291 layout->AddPaddingRow(0, views::kRelatedControlVerticalSpacing);
292 292
293 // Checkboxes. 293 // Checkboxes.
294 294
295 // Save credentials 295 // Save credentials
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
327 UpdateErrorLabel(); 327 UpdateErrorLabel();
328 } 328 }
329 329
330 void WimaxConfigView::InitFocus() { 330 void WimaxConfigView::InitFocus() {
331 views::View* view_to_focus = GetInitiallyFocusedView(); 331 views::View* view_to_focus = GetInitiallyFocusedView();
332 if (view_to_focus) 332 if (view_to_focus)
333 view_to_focus->RequestFocus(); 333 view_to_focus->RequestFocus();
334 } 334 }
335 335
336 } // namespace chromeos 336 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/options/wifi_config_view.cc ('k') | chrome/browser/first_run/try_chrome_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698