| OLD | NEW |
| 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/chromeos/login/eula_view.h" | 5 #include "chrome/browser/chromeos/login/eula_view.h" |
| 6 | 6 |
| 7 #include <signal.h> | 7 #include <signal.h> |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 SINGLE_LINK_WITH_SHIFT_ROW, | 66 SINGLE_LINK_WITH_SHIFT_ROW, |
| 67 LAST_ROW | 67 LAST_ROW |
| 68 }; | 68 }; |
| 69 | 69 |
| 70 // A simple LayoutManager that causes the associated view's one child to be | 70 // A simple LayoutManager that causes the associated view's one child to be |
| 71 // sized to match the bounds of its parent except the bounds, if set. | 71 // sized to match the bounds of its parent except the bounds, if set. |
| 72 struct FillLayoutWithBorder : public views::LayoutManager { | 72 struct FillLayoutWithBorder : public views::LayoutManager { |
| 73 // Overridden from LayoutManager: | 73 // Overridden from LayoutManager: |
| 74 virtual void Layout(views::View* host) { | 74 virtual void Layout(views::View* host) { |
| 75 DCHECK(host->has_children()); | 75 DCHECK(host->has_children()); |
| 76 host->GetChildViewAt(0)->SetBoundsRect(host->GetContentsBounds()); | 76 host->child_at(0)->SetBoundsRect(host->GetContentsBounds()); |
| 77 } | 77 } |
| 78 virtual gfx::Size GetPreferredSize(views::View* host) { | 78 virtual gfx::Size GetPreferredSize(views::View* host) { |
| 79 return gfx::Size(host->width(), host->height()); | 79 return gfx::Size(host->width(), host->height()); |
| 80 } | 80 } |
| 81 }; | 81 }; |
| 82 | 82 |
| 83 } // namespace | 83 } // namespace |
| 84 | 84 |
| 85 // System security setting dialog. | 85 // System security setting dialog. |
| 86 class TpmInfoView : public views::DialogDelegateView { | 86 class TpmInfoView : public views::DialogDelegateView { |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 } | 519 } |
| 520 | 520 |
| 521 bool EulaView::FadeInOnShow() { | 521 bool EulaView::FadeInOnShow() { |
| 522 return false; | 522 return false; |
| 523 } | 523 } |
| 524 | 524 |
| 525 void EulaView::OnLinkActivated(size_t index) { | 525 void EulaView::OnLinkActivated(size_t index) { |
| 526 } | 526 } |
| 527 | 527 |
| 528 } // namespace chromeos | 528 } // namespace chromeos |
| OLD | NEW |