| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/passwords/manage_passwords_bubble_view.h" | 5 #include "chrome/browser/ui/views/passwords/manage_passwords_bubble_view.h" |
| 6 | 6 |
| 7 #include "chrome/browser/chrome_notification_types.h" | 7 #include "chrome/browser/chrome_notification_types.h" |
| 8 #include "chrome/browser/ui/browser.h" | 8 #include "chrome/browser/ui/browser.h" |
| 9 #include "chrome/browser/ui/browser_finder.h" | 9 #include "chrome/browser/ui/browser_finder.h" |
| 10 #include "chrome/browser/ui/browser_window.h" | 10 #include "chrome/browser/ui/browser_window.h" |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 317 1, | 317 1, |
| 318 0, | 318 0, |
| 319 GetNativeTheme()->GetSystemColor( | 319 GetNativeTheme()->GetSystemColor( |
| 320 ui::NativeTheme::kColorId_EnabledMenuButtonBorderColor))); | 320 ui::NativeTheme::kColorId_EnabledMenuButtonBorderColor))); |
| 321 } | 321 } |
| 322 layout->AddView(item); | 322 layout->AddView(item); |
| 323 } | 323 } |
| 324 | 324 |
| 325 manage_link_ = | 325 manage_link_ = |
| 326 new views::Link(manage_passwords_bubble_model_->manage_link()); | 326 new views::Link(manage_passwords_bubble_model_->manage_link()); |
| 327 manage_link_->SetUnderline(false); |
| 327 manage_link_->set_listener(this); | 328 manage_link_->set_listener(this); |
| 328 layout->StartRowWithPadding(0, kSingleButtonSetId, | 329 layout->StartRowWithPadding(0, kSingleButtonSetId, |
| 329 0, views::kRelatedControlVerticalSpacing); | 330 0, views::kRelatedControlVerticalSpacing); |
| 330 layout->AddView(manage_link_); | 331 layout->AddView(manage_link_); |
| 331 | 332 |
| 332 done_button_ = | 333 done_button_ = |
| 333 new views::LabelButton(this, l10n_util::GetStringUTF16(IDS_DONE)); | 334 new views::LabelButton(this, l10n_util::GetStringUTF16(IDS_DONE)); |
| 334 done_button_->SetStyle(views::Button::STYLE_BUTTON); | 335 done_button_->SetStyle(views::Button::STYLE_BUTTON); |
| 335 layout->AddView(done_button_); | 336 layout->AddView(done_button_); |
| 336 } | 337 } |
| (...skipping 18 matching lines...) Expand all Loading... |
| 355 manage_passwords_bubble_model_->manage_passwords_bubble_state() == | 356 manage_passwords_bubble_model_->manage_passwords_bubble_state() == |
| 356 ManagePasswordsBubbleModel::PASSWORD_TO_BE_SAVED); | 357 ManagePasswordsBubbleModel::PASSWORD_TO_BE_SAVED); |
| 357 Close(); | 358 Close(); |
| 358 } | 359 } |
| 359 | 360 |
| 360 void ManagePasswordsBubbleView::LinkClicked(views::Link* source, | 361 void ManagePasswordsBubbleView::LinkClicked(views::Link* source, |
| 361 int event_flags) { | 362 int event_flags) { |
| 362 DCHECK_EQ(source, manage_link_); | 363 DCHECK_EQ(source, manage_link_); |
| 363 manage_passwords_bubble_model_->OnManageLinkClicked(); | 364 manage_passwords_bubble_model_->OnManageLinkClicked(); |
| 364 } | 365 } |
| OLD | NEW |