| OLD | NEW |
| 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/autofill/autofill_dialog_views.h" | 5 #include "chrome/browser/ui/views/autofill/autofill_dialog_views.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/location.h" | 10 #include "base/location.h" |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 304 tooltip_icon->SetBounds( | 304 tooltip_icon->SetBounds( |
| 305 right_bound, 0, | 305 right_bound, 0, |
| 306 icon_width + kDialogEdgePadding, GetLocalBounds().height()); | 306 icon_width + kDialogEdgePadding, GetLocalBounds().height()); |
| 307 } | 307 } |
| 308 | 308 |
| 309 child_at(0)->SetBounds(bounds.x(), bounds.y(), | 309 child_at(0)->SetBounds(bounds.x(), bounds.y(), |
| 310 right_bound - bounds.x(), bounds.height()); | 310 right_bound - bounds.x(), bounds.height()); |
| 311 } | 311 } |
| 312 | 312 |
| 313 // views::StyledLabelListener implementation. | 313 // views::StyledLabelListener implementation. |
| 314 void StyledLabelLinkClicked(const gfx::Range& range, | 314 void StyledLabelLinkClicked(views::StyledLabel* label, |
| 315 const gfx::Range& range, |
| 315 int event_flags) override { | 316 int event_flags) override { |
| 316 delegate_->LinkClicked(data_.link_url()); | 317 delegate_->LinkClicked(data_.link_url()); |
| 317 } | 318 } |
| 318 | 319 |
| 319 private: | 320 private: |
| 320 // The model data for this notification. | 321 // The model data for this notification. |
| 321 DialogNotification data_; | 322 DialogNotification data_; |
| 322 | 323 |
| 323 // The delegate that handles interaction with |this|. | 324 // The delegate that handles interaction with |this|. |
| 324 AutofillDialogViewDelegate* delegate_; | 325 AutofillDialogViewDelegate* delegate_; |
| (...skipping 1575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1900 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) | 1901 AutofillDialogViews::DetailsGroup::DetailsGroup(DialogSection section) |
| 1901 : section(section), | 1902 : section(section), |
| 1902 container(NULL), | 1903 container(NULL), |
| 1903 manual_input(NULL), | 1904 manual_input(NULL), |
| 1904 suggested_info(NULL), | 1905 suggested_info(NULL), |
| 1905 suggested_button(NULL) {} | 1906 suggested_button(NULL) {} |
| 1906 | 1907 |
| 1907 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} | 1908 AutofillDialogViews::DetailsGroup::~DetailsGroup() {} |
| 1908 | 1909 |
| 1909 } // namespace autofill | 1910 } // namespace autofill |
| OLD | NEW |