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 "app/l10n_util.h" | 5 #include "app/l10n_util.h" |
6 #include "base/scoped_ptr.h" | 6 #include "base/scoped_ptr.h" |
7 #include "chrome/browser/browser_process.h" | 7 #include "chrome/browser/browser_process.h" |
8 #include "chrome/browser/chromeos/options/internet_page_view.h" | 8 #include "chrome/browser/chromeos/options/internet_page_view.h" |
9 #include "chrome/browser/chromeos/options/system_page_view.h" | 9 #include "chrome/browser/chromeos/options/system_page_view.h" |
10 #include "chrome/browser/gtk/options/advanced_page_gtk.h" | 10 #include "chrome/browser/gtk/options/advanced_page_gtk.h" |
11 #include "chrome/browser/gtk/options/content_page_gtk.h" | 11 #include "chrome/browser/gtk/options/content_page_gtk.h" |
12 #include "chrome/browser/gtk/options/general_page_gtk.h" | 12 #include "chrome/browser/gtk/options/general_page_gtk.h" |
13 #include "chrome/browser/prefs/pref_service.h" | |
14 #include "chrome/browser/profiles/profile.h" | 13 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/ui/browser_list.h" | 14 #include "chrome/browser/ui/browser_list.h" |
16 #include "chrome/browser/ui/browser_window.h" | 15 #include "chrome/browser/ui/browser_window.h" |
17 #include "chrome/browser/ui/options/options_window.h" | 16 #include "chrome/browser/ui/options/options_window.h" |
18 #include "chrome/browser/ui/views/accessible_view_helper.h" | 17 #include "chrome/browser/ui/views/accessible_view_helper.h" |
19 #include "chrome/browser/ui/views/window.h" | 18 #include "chrome/browser/ui/views/window.h" |
20 #include "chrome/browser/ui/window_sizer.h" | 19 #include "chrome/browser/ui/window_sizer.h" |
21 #include "chrome/common/chrome_constants.h" | 20 #include "chrome/common/chrome_constants.h" |
22 #include "chrome/common/pref_names.h" | 21 #include "chrome/common/pref_names.h" |
23 #include "grit/chromium_strings.h" | 22 #include "grit/chromium_strings.h" |
(...skipping 360 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
384 // a new one for the current active browser. | 383 // a new one for the current active browser. |
385 chromeos::CloseOptionsWindow(); | 384 chromeos::CloseOptionsWindow(); |
386 | 385 |
387 OptionsWindowView::instance_ = new OptionsWindowView(profile); | 386 OptionsWindowView::instance_ = new OptionsWindowView(profile); |
388 browser::CreateViewsWindow(chromeos::GetOptionsViewParent(), | 387 browser::CreateViewsWindow(chromeos::GetOptionsViewParent(), |
389 gfx::Rect(), | 388 gfx::Rect(), |
390 OptionsWindowView::instance_); | 389 OptionsWindowView::instance_); |
391 | 390 |
392 OptionsWindowView::instance_->ShowOptionsPage(page, highlight_group); | 391 OptionsWindowView::instance_->ShowOptionsPage(page, highlight_group); |
393 } | 392 } |
OLD | NEW |