OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_CHROMEOS_WEBUI_INTERNET_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_WEBUI_INTERNET_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_WEBUI_INTERNET_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_WEBUI_INTERNET_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "chrome/browser/chromeos/cros/network_library.h" | 10 #include "chrome/browser/chromeos/cros/network_library.h" |
11 #include "chrome/browser/ui/webui/options/options_ui.h" | 11 #include "chrome/browser/chromeos/webui/cros_options_page_ui_handler.h" |
12 | 12 |
13 class SkBitmap; | 13 class SkBitmap; |
14 namespace views { | 14 namespace views { |
15 class WindowDelegate; | 15 class WindowDelegate; |
16 } | 16 } |
17 | 17 |
18 // ChromeOS internet options page UI handler. | 18 // ChromeOS internet options page UI handler. |
19 class InternetOptionsHandler | 19 class InternetOptionsHandler |
20 : public OptionsPageUIHandler, | 20 : public chromeos::CrosOptionsPageUIHandler, |
21 public chromeos::NetworkLibrary::NetworkManagerObserver, | 21 public chromeos::NetworkLibrary::NetworkManagerObserver, |
22 public chromeos::NetworkLibrary::NetworkObserver, | 22 public chromeos::NetworkLibrary::NetworkObserver, |
23 public chromeos::NetworkLibrary::CellularDataPlanObserver { | 23 public chromeos::NetworkLibrary::CellularDataPlanObserver { |
24 public: | 24 public: |
25 InternetOptionsHandler(); | 25 InternetOptionsHandler(); |
26 virtual ~InternetOptionsHandler(); | 26 virtual ~InternetOptionsHandler(); |
27 | 27 |
28 // OptionsPageUIHandler implementation. | 28 // OptionsPageUIHandler implementation. |
29 virtual void GetLocalizedValues(DictionaryValue* localized_strings); | 29 virtual void GetLocalizedValues(DictionaryValue* localized_strings); |
30 | 30 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 void MonitorNetworks(chromeos::NetworkLibrary* cros); | 123 void MonitorNetworks(chromeos::NetworkLibrary* cros); |
124 | 124 |
125 // A boolean flag of whether to use WebUI for connect UI. True to use WebUI | 125 // A boolean flag of whether to use WebUI for connect UI. True to use WebUI |
126 // and false to use Views dialogs. | 126 // and false to use Views dialogs. |
127 bool use_settings_ui_; | 127 bool use_settings_ui_; |
128 | 128 |
129 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 129 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
130 }; | 130 }; |
131 | 131 |
132 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_INTERNET_OPTIONS_HANDLER_H_ | 132 #endif // CHROME_BROWSER_CHROMEOS_WEBUI_INTERNET_OPTIONS_HANDLER_H_ |
OLD | NEW |