OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/network_selection_view.h" | 5 #include "chrome/browser/chromeos/login/network_selection_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 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 CONTENTS_ROW, | 54 CONTENTS_ROW, |
55 }; | 55 }; |
56 | 56 |
57 // Grid layout constants. | 57 // Grid layout constants. |
58 const int kBorderSize = 10; | 58 const int kBorderSize = 10; |
59 const int kWelcomeTitlePadding = 10; | 59 const int kWelcomeTitlePadding = 10; |
60 const int kPaddingColumnWidth = 55; | 60 const int kPaddingColumnWidth = 55; |
61 const int kMediumPaddingColumnWidth = 20; | 61 const int kMediumPaddingColumnWidth = 20; |
62 const int kControlPaddingRow = 15; | 62 const int kControlPaddingRow = 15; |
63 | 63 |
64 // Size to add to the welcome title font. | |
65 const int kWelcomeTitleFontDelta = 5; | |
66 | |
67 // Fixed size for language/keyboard/network controls height. | 64 // Fixed size for language/keyboard/network controls height. |
68 const int kSelectionBoxHeight = 29; | 65 const int kSelectionBoxHeight = 29; |
69 | 66 |
70 // Menu button is drawn using our custom icons in resources. See | 67 // Menu button is drawn using our custom icons in resources. See |
71 // TextButtonBorder::Paint() for details. So this offset compensate | 68 // TextButtonBorder::Paint() for details. So this offset compensate |
72 // horizontal size, eaten by those icons. | 69 // horizontal size, eaten by those icons. |
73 const int kMenuHorizontalOffset = -3; | 70 const int kMenuHorizontalOffset = -3; |
74 | 71 |
75 // Vertical addition to the menu window to make it appear exactly below | 72 // Vertical addition to the menu window to make it appear exactly below |
76 // MenuButton. | 73 // MenuButton. |
(...skipping 376 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
453 l10n_util::GetString(IDS_NETWORK_SELECTION_CONTINUE_BUTTON)); | 450 l10n_util::GetString(IDS_NETWORK_SELECTION_CONTINUE_BUTTON)); |
454 continue_button_->SetEnabled(is_continue_enabled); | 451 continue_button_->SetEnabled(is_continue_enabled); |
455 } | 452 } |
456 | 453 |
457 void NetworkSelectionView::UpdateConnectingNetworkLabel() { | 454 void NetworkSelectionView::UpdateConnectingNetworkLabel() { |
458 connecting_network_label_->SetText(l10n_util::GetStringF( | 455 connecting_network_label_->SetText(l10n_util::GetStringF( |
459 IDS_NETWORK_SELECTION_CONNECTING, UTF16ToWide(network_id_))); | 456 IDS_NETWORK_SELECTION_CONNECTING, UTF16ToWide(network_id_))); |
460 } | 457 } |
461 | 458 |
462 } // namespace chromeos | 459 } // namespace chromeos |
OLD | NEW |