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

Side by Side Diff: chrome/browser/chromeos/password_dialog_view.cc

Issue 341044: Move chromeos code to namespace chromeos. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 1 month 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/password_dialog_view.h" 5 #include "chrome/browser/chromeos/password_dialog_view.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "grit/chromium_strings.h" 8 #include "grit/chromium_strings.h"
9 #include "grit/generated_resources.h" 9 #include "grit/generated_resources.h"
10 #include "grit/locale_settings.h" 10 #include "grit/locale_settings.h"
11 #include "views/controls/textfield/textfield.h" 11 #include "views/controls/textfield/textfield.h"
12 #include "views/window/window.h" 12 #include "views/window/window.h"
13 13
14 namespace chromeos {
15
14 PasswordDialogView::PasswordDialogView(PasswordDialogDelegate* delegate, 16 PasswordDialogView::PasswordDialogView(PasswordDialogDelegate* delegate,
15 const std::string& ssid) 17 const std::string& ssid)
16 : delegate_(delegate), 18 : delegate_(delegate),
17 ssid_(ssid), 19 ssid_(ssid),
18 password_textfield_(NULL) { 20 password_textfield_(NULL) {
19 } 21 }
20 22
21 std::wstring PasswordDialogView::GetWindowTitle() const { 23 std::wstring PasswordDialogView::GetWindowTitle() const {
22 return l10n_util::GetString(IDS_OPTIONS_SETTINGS_SECTION_TITLE_PASSWORD); 24 return l10n_util::GetString(IDS_OPTIONS_SETTINGS_SECTION_TITLE_PASSWORD);
23 } 25 }
(...skipping 28 matching lines...) Expand all
52 views::View* parent, 54 views::View* parent,
53 views::View* child) { 55 views::View* child) {
54 if (is_add && child == this) 56 if (is_add && child == this)
55 Init(); 57 Init();
56 } 58 }
57 59
58 void PasswordDialogView::Init() { 60 void PasswordDialogView::Init() {
59 password_textfield_ = new views::Textfield(views::Textfield::STYLE_PASSWORD); 61 password_textfield_ = new views::Textfield(views::Textfield::STYLE_PASSWORD);
60 AddChildView(password_textfield_); 62 AddChildView(password_textfield_);
61 } 63 }
64
65 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698