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

Side by Side Diff: chrome/browser/chromeos/login/eula_view.cc

Issue 6452011: Rework tree APIs to reflect Google style and more const-correctness.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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) 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 SINGLE_CONTROL_WITH_SHIFT_ROW, 68 SINGLE_CONTROL_WITH_SHIFT_ROW,
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->has_children());
79 host->GetChildViewAt(0)->SetBoundsRect(host->GetContentsBounds()); 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 {
(...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/login/background_view.cc ('k') | chrome/browser/chromeos/login/message_bubble.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698