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

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

Issue 7349021: Convert some more view methods to the ui/views style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 5 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/views_oobe_display.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 #include <string> 10 #include <string>
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/views_oobe_display.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698