| 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/options_window.h" | 5 #include "chrome/browser/options_window.h" |
| 6 | 6 |
| 7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
| 8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
| 9 #include "chrome/browser/browser_list.h" | |
| 10 #include "chrome/browser/browser_process.h" | 9 #include "chrome/browser/browser_process.h" |
| 11 #include "chrome/browser/browser_window.h" | |
| 12 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| 13 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profile.h" |
| 14 #include "chrome/browser/views/options/advanced_page_view.h" | 12 #include "chrome/browser/ui/browser_list.h" |
| 15 #include "chrome/browser/views/options/content_page_view.h" | 13 #include "chrome/browser/ui/browser_window.h" |
| 16 #include "chrome/browser/views/options/general_page_view.h" | 14 #include "chrome/browser/ui/views/options/advanced_page_view.h" |
| 17 #include "chrome/browser/window_sizer.h" | 15 #include "chrome/browser/ui/views/options/content_page_view.h" |
| 16 #include "chrome/browser/ui/views/options/general_page_view.h" |
| 17 #include "chrome/browser/ui/window_sizer.h" |
| 18 #include "chrome/common/chrome_constants.h" | 18 #include "chrome/common/chrome_constants.h" |
| 19 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 20 #include "grit/chromium_strings.h" | 20 #include "grit/chromium_strings.h" |
| 21 #include "grit/generated_resources.h" | 21 #include "grit/generated_resources.h" |
| 22 #include "grit/locale_settings.h" | 22 #include "grit/locale_settings.h" |
| 23 #include "views/controls/tabbed_pane/tabbed_pane.h" | 23 #include "views/controls/tabbed_pane/tabbed_pane.h" |
| 24 #include "views/widget/root_view.h" | 24 #include "views/widget/root_view.h" |
| 25 #include "views/window/dialog_delegate.h" | 25 #include "views/window/dialog_delegate.h" |
| 26 #include "views/window/window.h" | 26 #include "views/window/window.h" |
| 27 | 27 |
| (...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 235 // If there's already an existing options window, activate it and switch to | 235 // If there's already an existing options window, activate it and switch to |
| 236 // the specified page. | 236 // the specified page. |
| 237 // TODO(beng): note this is not multi-simultaneous-profile-safe. When we care | 237 // TODO(beng): note this is not multi-simultaneous-profile-safe. When we care |
| 238 // about this case this will have to be fixed. | 238 // about this case this will have to be fixed. |
| 239 if (!instance_) { | 239 if (!instance_) { |
| 240 instance_ = new OptionsWindowView(profile); | 240 instance_ = new OptionsWindowView(profile); |
| 241 views::Window::CreateChromeWindow(NULL, gfx::Rect(), instance_); | 241 views::Window::CreateChromeWindow(NULL, gfx::Rect(), instance_); |
| 242 } | 242 } |
| 243 instance_->ShowOptionsPage(page, highlight_group); | 243 instance_->ShowOptionsPage(page, highlight_group); |
| 244 } | 244 } |
| OLD | NEW |