| OLD | NEW |
| 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "chrome/browser/prefs/pref_member.h" | 9 #include "chrome/browser/prefs/pref_member.h" |
| 10 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" | 10 #include "chrome/browser/printing/cloud_print/cloud_print_setup_handler.h" |
| 11 #include "chrome/browser/ui/select_file_dialog.h" | 11 #include "chrome/browser/ui/select_file_dialog.h" |
| 12 #include "chrome/browser/ui/webui/options/options_ui.h" | 12 #include "chrome/browser/ui/webui/options/options_ui.h" |
| 13 | 13 |
| 14 #if !defined(OS_CHROMEOS) | 14 #if !defined(OS_CHROMEOS) |
| 15 #include "chrome/browser/prefs/pref_set_observer.h" | 15 #include "chrome/browser/prefs/pref_set_observer.h" |
| 16 #endif // !defined(OS_CHROMEOS) | 16 #endif // !defined(OS_CHROMEOS) |
| 17 | 17 |
| 18 class CloudPrintSetupHandler; | 18 class CloudPrintSetupHandler; |
| 19 | 19 |
| 20 // Chrome advanced options page UI handler. | 20 // Chrome advanced options page UI handler. |
| 21 class AdvancedOptionsHandler | 21 class AdvancedOptionsHandler |
| 22 : public OptionsPageUIHandler, | 22 : public OptionsPageUIHandler, |
| 23 public SelectFileDialog::Listener, | 23 public SelectFileDialog::Listener, |
| 24 public CloudPrintSetupHandlerDelegate { | 24 public CloudPrintSetupHandlerDelegate { |
| 25 public: | 25 public: |
| 26 AdvancedOptionsHandler(); | 26 AdvancedOptionsHandler(); |
| 27 virtual ~AdvancedOptionsHandler(); | 27 virtual ~AdvancedOptionsHandler(); |
| 28 | 28 |
| 29 // OptionsPageUIHandler implementation. | 29 // OptionsPageUIHandler implementation. |
| 30 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; | 30 virtual void GetLocalizedValues(DictionaryValue* localized_strings) OVERRIDE; |
| 31 virtual void Initialize() OVERRIDE; | 31 virtual void InitializeHandler() OVERRIDE; |
| 32 | 32 |
| 33 // WebUIMessageHandler implementation. | 33 // WebUIMessageHandler implementation. |
| 34 virtual void RegisterMessages() OVERRIDE; | 34 virtual void RegisterMessages() OVERRIDE; |
| 35 | 35 |
| 36 // content::NotificationObserver implementation. | 36 // content::NotificationObserver implementation. |
| 37 virtual void Observe(int type, | 37 virtual void Observe(int type, |
| 38 const content::NotificationSource& source, | 38 const content::NotificationSource& source, |
| 39 const content::NotificationDetails& details) OVERRIDE; | 39 const content::NotificationDetails& details) OVERRIDE; |
| 40 | 40 |
| 41 // SelectFileDialog::Listener implementation | 41 // SelectFileDialog::Listener implementation |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 DoublePrefMember default_zoom_level_; | 174 DoublePrefMember default_zoom_level_; |
| 175 | 175 |
| 176 #if !defined(OS_CHROMEOS) | 176 #if !defined(OS_CHROMEOS) |
| 177 scoped_ptr<PrefSetObserver> proxy_prefs_; | 177 scoped_ptr<PrefSetObserver> proxy_prefs_; |
| 178 #endif // !defined(OS_CHROMEOS) | 178 #endif // !defined(OS_CHROMEOS) |
| 179 | 179 |
| 180 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); | 180 DISALLOW_COPY_AND_ASSIGN(AdvancedOptionsHandler); |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ | 183 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_ADVANCED_OPTIONS_HANDLER_H_ |
| OLD | NEW |