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/views/options/content_settings_window_view.h" | 5 #include "chrome/browser/views/options/content_settings_window_view.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "base/stl_util-inl.h" | 8 #include "base/stl_util-inl.h" |
9 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
10 #include "chrome/browser/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profile.h" |
12 #include "chrome/browser/views/options/advanced_page_view.h" | 12 #include "chrome/browser/views/options/advanced_page_view.h" |
13 #include "chrome/browser/views/options/content_filter_page_view.h" | 13 #include "chrome/browser/views/options/content_filter_page_view.h" |
14 #include "chrome/browser/views/options/cookie_filter_page_view.h" | 14 #include "chrome/browser/views/options/cookie_filter_page_view.h" |
15 #include "chrome/browser/views/options/general_page_view.h" | 15 #include "chrome/browser/views/options/general_page_view.h" |
16 #include "chrome/browser/views/options/plugin_filter_page_view.h" | 16 #include "chrome/browser/views/options/plugin_filter_page_view.h" |
17 #include "chrome/common/chrome_constants.h" | 17 #include "chrome/common/chrome_constants.h" |
18 #include "chrome/common/pref_names.h" | 18 #include "chrome/common/pref_names.h" |
19 #include "grit/chromium_strings.h" | 19 #include "grit/chromium_strings.h" |
20 #include "grit/generated_resources.h" | 20 #include "grit/generated_resources.h" |
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 current_page_ = page; | 201 current_page_ = page; |
202 AddChildView(pages_[current_page_]); | 202 AddChildView(pages_[current_page_]); |
203 Layout(); | 203 Layout(); |
204 SchedulePaint(); | 204 SchedulePaint(); |
205 } | 205 } |
206 | 206 |
207 const OptionsPageView* | 207 const OptionsPageView* |
208 ContentSettingsWindowView::GetCurrentContentSettingsTabView() const { | 208 ContentSettingsWindowView::GetCurrentContentSettingsTabView() const { |
209 return static_cast<OptionsPageView*>(pages_[current_page_]); | 209 return static_cast<OptionsPageView*>(pages_[current_page_]); |
210 } | 210 } |
OLD | NEW |