| 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 "app/l10n_util.h" |
| 8 #include "chrome/browser/views/options/passwords_page_view.h" | 8 #include "chrome/browser/views/options/passwords_page_view.h" |
| 9 #include "chrome/browser/views/options/exceptions_page_view.h" | 9 #include "chrome/browser/views/options/exceptions_page_view.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 #include "views/controls/tabbed_pane/tabbed_pane.h" |
| 11 | 12 |
| 12 // static | 13 // static |
| 13 PasswordsExceptionsWindowView* PasswordsExceptionsWindowView::instance_ = NULL; | 14 PasswordsExceptionsWindowView* PasswordsExceptionsWindowView::instance_ = NULL; |
| 14 | 15 |
| 15 static const int kDefaultWindowWidth = 530; | 16 static const int kDefaultWindowWidth = 530; |
| 16 static const int kDefaultWindowHeight = 240; | 17 static const int kDefaultWindowHeight = 240; |
| 17 static const int kDialogPadding = 7; | 18 static const int kDialogPadding = 7; |
| 18 | 19 |
| 19 namespace browser { | 20 namespace browser { |
| 20 | 21 |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 AddChildView(tabs_); | 100 AddChildView(tabs_); |
| 100 | 101 |
| 101 passwords_page_view_ = new PasswordsPageView(profile_); | 102 passwords_page_view_ = new PasswordsPageView(profile_); |
| 102 tabs_->AddTab(l10n_util::GetString( | 103 tabs_->AddTab(l10n_util::GetString( |
| 103 IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE), passwords_page_view_); | 104 IDS_PASSWORDS_SHOW_PASSWORDS_TAB_TITLE), passwords_page_view_); |
| 104 | 105 |
| 105 exceptions_page_view_ = new ExceptionsPageView(profile_); | 106 exceptions_page_view_ = new ExceptionsPageView(profile_); |
| 106 tabs_->AddTab(l10n_util::GetString( | 107 tabs_->AddTab(l10n_util::GetString( |
| 107 IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE), exceptions_page_view_); | 108 IDS_PASSWORDS_EXCEPTIONS_TAB_TITLE), exceptions_page_view_); |
| 108 } | 109 } |
| OLD | NEW |