OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/webui/options/browser_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 1687 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1698 } | 1698 } |
1699 | 1699 |
1700 void BrowserOptionsHandler::HandleRefreshExtensionControlIndicators( | 1700 void BrowserOptionsHandler::HandleRefreshExtensionControlIndicators( |
1701 const base::ListValue* args) { | 1701 const base::ListValue* args) { |
1702 SetupExtensionControlledIndicators(); | 1702 SetupExtensionControlledIndicators(); |
1703 } | 1703 } |
1704 | 1704 |
1705 #if defined(OS_CHROMEOS) | 1705 #if defined(OS_CHROMEOS) |
1706 void BrowserOptionsHandler::HandleOpenWallpaperManager( | 1706 void BrowserOptionsHandler::HandleOpenWallpaperManager( |
1707 const base::ListValue* args) { | 1707 const base::ListValue* args) { |
| 1708 #if !defined(USE_ATHENA) |
1708 ash::Shell::GetInstance()->user_wallpaper_delegate()->OpenSetWallpaperPage(); | 1709 ash::Shell::GetInstance()->user_wallpaper_delegate()->OpenSetWallpaperPage(); |
| 1710 #else |
| 1711 NOTIMPLEMENTED(); |
| 1712 #endif |
1709 } | 1713 } |
1710 | 1714 |
1711 void BrowserOptionsHandler::VirtualKeyboardChangeCallback( | 1715 void BrowserOptionsHandler::VirtualKeyboardChangeCallback( |
1712 const base::ListValue* args) { | 1716 const base::ListValue* args) { |
1713 bool enabled = false; | 1717 bool enabled = false; |
1714 args->GetBoolean(0, &enabled); | 1718 args->GetBoolean(0, &enabled); |
1715 | 1719 |
1716 chromeos::accessibility::EnableVirtualKeyboard(enabled); | 1720 chromeos::accessibility::EnableVirtualKeyboard(enabled); |
1717 } | 1721 } |
1718 | 1722 |
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1985 | 1989 |
1986 void BrowserOptionsHandler::SetMetricsReportingCheckbox(bool checked, | 1990 void BrowserOptionsHandler::SetMetricsReportingCheckbox(bool checked, |
1987 bool disabled) { | 1991 bool disabled) { |
1988 web_ui()->CallJavascriptFunction( | 1992 web_ui()->CallJavascriptFunction( |
1989 "BrowserOptions.setMetricsReportingCheckboxState", | 1993 "BrowserOptions.setMetricsReportingCheckboxState", |
1990 base::FundamentalValue(checked), | 1994 base::FundamentalValue(checked), |
1991 base::FundamentalValue(disabled)); | 1995 base::FundamentalValue(disabled)); |
1992 } | 1996 } |
1993 | 1997 |
1994 } // namespace options | 1998 } // namespace options |
OLD | NEW |