| 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 #include <string> | 9 #include <string> |
| 10 | 10 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 SINGLE_LINK_WITH_SHIFT_ROW, | 69 SINGLE_LINK_WITH_SHIFT_ROW, |
| 70 LAST_ROW | 70 LAST_ROW |
| 71 }; | 71 }; |
| 72 | 72 |
| 73 // A simple LayoutManager that causes the associated view's one child to be | 73 // A simple LayoutManager that causes the associated view's one child to be |
| 74 // sized to match the bounds of its parent except the bounds, if set. | 74 // sized to match the bounds of its parent except the bounds, if set. |
| 75 struct FillLayoutWithBorder : public views::LayoutManager { | 75 struct FillLayoutWithBorder : public views::LayoutManager { |
| 76 // Overridden from LayoutManager: | 76 // Overridden from LayoutManager: |
| 77 virtual void Layout(views::View* host) { | 77 virtual void Layout(views::View* host) { |
| 78 DCHECK(host->GetChildViewCount()); | 78 DCHECK(host->GetChildViewCount()); |
| 79 host->GetChildViewAt(0)->SetBoundsRect(host->GetLocalBounds()); | 79 host->GetChildViewAt(0)->SetBoundsRect(host->GetContentsBounds()); |
| 80 } | 80 } |
| 81 virtual gfx::Size GetPreferredSize(views::View* host) { | 81 virtual gfx::Size GetPreferredSize(views::View* host) { |
| 82 return gfx::Size(host->width(), host->height()); | 82 return gfx::Size(host->width(), host->height()); |
| 83 } | 83 } |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 // System security setting dialog. | 86 // System security setting dialog. |
| 87 class TpmInfoView : public views::View, | 87 class TpmInfoView : public views::View, |
| 88 public views::DialogDelegate { | 88 public views::DialogDelegate { |
| 89 public: | 89 public: |
| (...skipping 444 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 534 bool EulaView::OnKeyPressed(const views::KeyEvent&) { | 534 bool EulaView::OnKeyPressed(const views::KeyEvent&) { |
| 535 // Close message bubble if shown. bubble_ will be set to NULL in callback. | 535 // Close message bubble if shown. bubble_ will be set to NULL in callback. |
| 536 if (bubble_) { | 536 if (bubble_) { |
| 537 bubble_->Close(); | 537 bubble_->Close(); |
| 538 return true; | 538 return true; |
| 539 } | 539 } |
| 540 return false; | 540 return false; |
| 541 } | 541 } |
| 542 | 542 |
| 543 } // namespace chromeos | 543 } // namespace chromeos |
| OLD | NEW |