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_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "chrome/browser/chromeos/cros/network_library.h" | 11 #include "chrome/browser/chromeos/cros/network_library.h" |
| 12 #include "chrome/browser/chromeos/cros/network_ui_data.h" |
12 #include "chrome/browser/ui/webui/options/options_ui.h" | 13 #include "chrome/browser/ui/webui/options/options_ui.h" |
13 #include "content/public/browser/notification_registrar.h" | 14 #include "content/public/browser/notification_registrar.h" |
14 #include "ui/gfx/native_widget_types.h" | 15 #include "ui/gfx/native_widget_types.h" |
15 | 16 |
16 class SkBitmap; | 17 class SkBitmap; |
17 namespace views { | 18 namespace views { |
18 class WidgetDelegate; | 19 class WidgetDelegate; |
19 } | 20 } |
20 | 21 |
21 // ChromeOS internet options page UI handler. | 22 // ChromeOS internet options page UI handler. |
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 base::ListValue* GetRememberedList(); | 123 base::ListValue* GetRememberedList(); |
123 // Fills network information into JS dictionary for displaying network lists. | 124 // Fills network information into JS dictionary for displaying network lists. |
124 void FillNetworkInfo(base::DictionaryValue* dictionary); | 125 void FillNetworkInfo(base::DictionaryValue* dictionary); |
125 // Refreshes the display of network information. | 126 // Refreshes the display of network information. |
126 void RefreshNetworkData(); | 127 void RefreshNetworkData(); |
127 // Adds observers for wireless networks, if any, so that we can dynamically | 128 // Adds observers for wireless networks, if any, so that we can dynamically |
128 // display the correct icon for that network's signal strength and, in the | 129 // display the correct icon for that network's signal strength and, in the |
129 // case of cellular networks, network technology and roaming status. | 130 // case of cellular networks, network technology and roaming status. |
130 void MonitorNetworks(); | 131 void MonitorNetworks(); |
131 | 132 |
| 133 // Stores a dictionary under |key| in |settings| that is suitable to be sent |
| 134 // to the webui that contains the actual value of a setting and whether it's |
| 135 // controlled by policy. Takes ownership of |value|. |
| 136 void SetValueDictionary(DictionaryValue* settings, |
| 137 const char* key, |
| 138 base::Value* value, |
| 139 const chromeos::NetworkPropertyUIData& ui_data); |
| 140 |
132 // Convenience pointer to netwrok library (will not change). | 141 // Convenience pointer to netwrok library (will not change). |
133 chromeos::NetworkLibrary* cros_; | 142 chromeos::NetworkLibrary* cros_; |
134 | 143 |
135 content::NotificationRegistrar registrar_; | 144 content::NotificationRegistrar registrar_; |
136 | 145 |
137 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); | 146 DISALLOW_COPY_AND_ASSIGN(InternetOptionsHandler); |
138 }; | 147 }; |
139 | 148 |
140 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ | 149 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_CHROMEOS_INTERNET_OPTIONS_HANDLER_H_ |
OLD | NEW |