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

Side by Side Diff: chrome/browser/views/options/passwords_exceptions_window_view.cc

Issue 155668: Refactoring of tabbed-pane component so it can be ported to Linux toolkit_view (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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
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/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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/views/options/passwords_exceptions_window_view.h ('k') | views/controls/tabbed_pane.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698