| OLD | NEW |
| 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/views/options/passwords_exceptions_window_view.h" | 5 #include "chrome/browser/views/options/passwords_exceptions_window_view.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" |
| 7 #include "chrome/browser/views/options/passwords_page_view.h" | 8 #include "chrome/browser/views/options/passwords_page_view.h" |
| 8 #include "chrome/browser/views/options/exceptions_page_view.h" | 9 #include "chrome/browser/views/options/exceptions_page_view.h" |
| 9 #include "chrome/common/l10n_util.h" | |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 | 11 |
| 12 // static | 12 // static |
| 13 PasswordsExceptionsWindowView* PasswordsExceptionsWindowView::instance_ = NULL; | 13 PasswordsExceptionsWindowView* PasswordsExceptionsWindowView::instance_ = NULL; |
| 14 | 14 |
| 15 static const int kDefaultWindowWidth = 530; | 15 static const int kDefaultWindowWidth = 530; |
| 16 static const int kDefaultWindowHeight = 240; | 16 static const int kDefaultWindowHeight = 240; |
| 17 static const int kDialogPadding = 7; | 17 static const int kDialogPadding = 7; |
| 18 | 18 |
| 19 /////////////////////////////////////////////////////////////////////////////// | 19 /////////////////////////////////////////////////////////////////////////////// |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 90 AddChildView(tabs_); | 90 AddChildView(tabs_); |
| 91 | 91 |
| 92 passwords_page_view_ = new PasswordsPageView(profile_); | 92 passwords_page_view_ = new PasswordsPageView(profile_); |
| 93 tabs_->AddTab(l10n_util::GetString( | 93 tabs_->AddTab(l10n_util::GetString( |
| 94 IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE), passwords_page_view_); | 94 IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE), passwords_page_view_); |
| 95 | 95 |
| 96 exceptions_page_view_ = new ExceptionsPageView(profile_); | 96 exceptions_page_view_ = new ExceptionsPageView(profile_); |
| 97 tabs_->AddTab(l10n_util::GetString( | 97 tabs_->AddTab(l10n_util::GetString( |
| 98 IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE), exceptions_page_view_); | 98 IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE), exceptions_page_view_); |
| 99 } | 99 } |
| OLD | NEW |