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/chromeos/internet_options_handler.h" | 5 #include "chrome/browser/ui/webui/options/chromeos/internet_options_handler.h" |
6 | 6 |
7 #include <ctype.h> | 7 #include <ctype.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 const char kSetAutoConnectMessage[] = "setAutoConnect"; | 153 const char kSetAutoConnectMessage[] = "setAutoConnect"; |
154 const char kSetCarrierMessage[] = "setCarrier"; | 154 const char kSetCarrierMessage[] = "setCarrier"; |
155 const char kSetIPConfigMessage[] = "setIPConfig"; | 155 const char kSetIPConfigMessage[] = "setIPConfig"; |
156 const char kSetPreferNetworkMessage[] = "setPreferNetwork"; | 156 const char kSetPreferNetworkMessage[] = "setPreferNetwork"; |
157 const char kSetServerHostname[] = "setServerHostname"; | 157 const char kSetServerHostname[] = "setServerHostname"; |
158 const char kSetSimCardLockMessage[] = "setSimCardLock"; | 158 const char kSetSimCardLockMessage[] = "setSimCardLock"; |
159 const char kShowMorePlanInfoMessage[] = "showMorePlanInfo"; | 159 const char kShowMorePlanInfoMessage[] = "showMorePlanInfo"; |
160 | 160 |
161 // These are strings used to communicate with JavaScript. | 161 // These are strings used to communicate with JavaScript. |
162 const char kTagActivate[] = "activate"; | 162 const char kTagActivate[] = "activate"; |
163 const char kTagActivated[] = "activated"; | |
164 const char kTagActivationState[] = "activationState"; | 163 const char kTagActivationState[] = "activationState"; |
165 const char kTagAddConnection[] = "add"; | 164 const char kTagAddConnection[] = "add"; |
166 const char kTagApn[] = "apn"; | 165 const char kTagApn[] = "apn"; |
167 const char kTagAutoConnect[] = "autoConnect"; | 166 const char kTagAutoConnect[] = "autoConnect"; |
168 const char kTagBssid[] = "bssid"; | 167 const char kTagBssid[] = "bssid"; |
169 const char kTagCarrierSelectFlag[] = "showCarrierSelect"; | 168 const char kTagCarrierSelectFlag[] = "showCarrierSelect"; |
170 const char kTagCarrierUrl[] = "carrierUrl"; | 169 const char kTagCarrierUrl[] = "carrierUrl"; |
171 const char kTagCellular[] = "cellular"; | 170 const char kTagCellular[] = "cellular"; |
172 const char kTagCellularAvailable[] = "cellularAvailable"; | 171 const char kTagCellularAvailable[] = "cellularAvailable"; |
173 const char kTagCellularEnabled[] = "cellularEnabled"; | 172 const char kTagCellularEnabled[] = "cellularEnabled"; |
174 const char kTagCellularSupportsScan[] = "cellularSupportsScan"; | 173 const char kTagCellularSupportsScan[] = "cellularSupportsScan"; |
175 const char kTagConfigure[] = "configure"; | 174 const char kTagConfigure[] = "configure"; |
176 const char kTagConnect[] = "connect"; | 175 const char kTagConnect[] = "connect"; |
177 const char kTagConnected[] = "connected"; | 176 const char kTagConnected[] = "connected"; |
178 const char kTagConnecting[] = "connecting"; | 177 const char kTagConnecting[] = "connecting"; |
179 const char kTagConnectionState[] = "connectionState"; | 178 const char kTagConnectionState[] = "connectionState"; |
180 const char kTagControlledBy[] = "controlledBy"; | 179 const char kTagControlledBy[] = "controlledBy"; |
181 const char kTagDataRemaining[] = "dataRemaining"; | |
182 const char kTagDeviceConnected[] = "deviceConnected"; | 180 const char kTagDeviceConnected[] = "deviceConnected"; |
183 const char kTagDisableConnectButton[] = "disableConnectButton"; | 181 const char kTagDisableConnectButton[] = "disableConnectButton"; |
184 const char kTagDisconnect[] = "disconnect"; | 182 const char kTagDisconnect[] = "disconnect"; |
185 const char kTagEncryption[] = "encryption"; | 183 const char kTagEncryption[] = "encryption"; |
186 const char kTagErrorState[] = "errorState"; | 184 const char kTagErrorState[] = "errorState"; |
187 const char kTagEsn[] = "esn"; | 185 const char kTagEsn[] = "esn"; |
188 const char kTagFirmwareRevision[] = "firmwareRevision"; | 186 const char kTagFirmwareRevision[] = "firmwareRevision"; |
189 const char kTagForget[] = "forget"; | 187 const char kTagForget[] = "forget"; |
190 const char kTagFrequency[] = "frequency"; | 188 const char kTagFrequency[] = "frequency"; |
191 const char kTagGsm[] = "gsm"; | 189 const char kTagGsm[] = "gsm"; |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
224 const char kTagRememberedList[] = "rememberedList"; | 222 const char kTagRememberedList[] = "rememberedList"; |
225 const char kTagRestrictedPool[] = "restrictedPool"; | 223 const char kTagRestrictedPool[] = "restrictedPool"; |
226 const char kTagRoamingState[] = "roamingState"; | 224 const char kTagRoamingState[] = "roamingState"; |
227 const char kTagServerHostname[] = "serverHostname"; | 225 const char kTagServerHostname[] = "serverHostname"; |
228 const char kTagCarriers[] = "carriers"; | 226 const char kTagCarriers[] = "carriers"; |
229 const char kTagCurrentCarrierIndex[] = "currentCarrierIndex"; | 227 const char kTagCurrentCarrierIndex[] = "currentCarrierIndex"; |
230 const char kTagServiceName[] = "serviceName"; | 228 const char kTagServiceName[] = "serviceName"; |
231 const char kTagServicePath[] = "servicePath"; | 229 const char kTagServicePath[] = "servicePath"; |
232 const char kTagShared[] = "shared"; | 230 const char kTagShared[] = "shared"; |
233 const char kTagShowActivateButton[] = "showActivateButton"; | 231 const char kTagShowActivateButton[] = "showActivateButton"; |
234 const char kTagShowBuyButton[] = "showBuyButton"; | |
235 const char kTagShowPreferred[] = "showPreferred"; | 232 const char kTagShowPreferred[] = "showPreferred"; |
236 const char kTagShowProxy[] = "showProxy"; | 233 const char kTagShowProxy[] = "showProxy"; |
237 const char kTagShowStaticIPConfig[] = "showStaticIPConfig"; | 234 const char kTagShowStaticIPConfig[] = "showStaticIPConfig"; |
238 const char kTagShowViewAccountButton[] = "showViewAccountButton"; | 235 const char kTagShowViewAccountButton[] = "showViewAccountButton"; |
239 const char kTagSimCardLockEnabled[] = "simCardLockEnabled"; | 236 const char kTagSimCardLockEnabled[] = "simCardLockEnabled"; |
240 const char kTagSsid[] = "ssid"; | 237 const char kTagSsid[] = "ssid"; |
241 const char kTagStrength[] = "strength"; | 238 const char kTagStrength[] = "strength"; |
242 const char kTagSupportUrl[] = "supportUrl"; | 239 const char kTagSupportUrl[] = "supportUrl"; |
243 const char kTagTrue[] = "true"; | 240 const char kTagTrue[] = "true"; |
244 const char kTagType[] = "type"; | 241 const char kTagType[] = "type"; |
245 const char kTagUsername[] = "username"; | 242 const char kTagUsername[] = "username"; |
246 const char kTagValue[] = "value"; | 243 const char kTagValue[] = "value"; |
247 const char kTagVpn[] = "vpn"; | 244 const char kTagVpn[] = "vpn"; |
248 const char kTagVpnList[] = "vpnList"; | 245 const char kTagVpnList[] = "vpnList"; |
249 const char kTagWarning[] = "warning"; | |
250 const char kTagWifi[] = "wifi"; | 246 const char kTagWifi[] = "wifi"; |
251 const char kTagWifiAvailable[] = "wifiAvailable"; | 247 const char kTagWifiAvailable[] = "wifiAvailable"; |
252 const char kTagWifiEnabled[] = "wifiEnabled"; | 248 const char kTagWifiEnabled[] = "wifiEnabled"; |
253 const char kTagWimaxAvailable[] = "wimaxAvailable"; | 249 const char kTagWimaxAvailable[] = "wimaxAvailable"; |
254 const char kTagWimaxEnabled[] = "wimaxEnabled"; | 250 const char kTagWimaxEnabled[] = "wimaxEnabled"; |
255 const char kTagWiredList[] = "wiredList"; | 251 const char kTagWiredList[] = "wiredList"; |
256 const char kTagWirelessList[] = "wirelessList"; | 252 const char kTagWirelessList[] = "wirelessList"; |
257 | 253 |
258 const int kPreferredPriority = 1; | 254 const int kPreferredPriority = 1; |
259 | 255 |
(...skipping 1774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2034 dictionary->SetBoolean( | 2030 dictionary->SetBoolean( |
2035 kTagWimaxAvailable, | 2031 kTagWimaxAvailable, |
2036 handler->IsTechnologyAvailable(NetworkTypePattern::Wimax())); | 2032 handler->IsTechnologyAvailable(NetworkTypePattern::Wimax())); |
2037 dictionary->SetBoolean( | 2033 dictionary->SetBoolean( |
2038 kTagWimaxEnabled, | 2034 kTagWimaxEnabled, |
2039 handler->IsTechnologyEnabled(NetworkTypePattern::Wimax())); | 2035 handler->IsTechnologyEnabled(NetworkTypePattern::Wimax())); |
2040 } | 2036 } |
2041 | 2037 |
2042 } // namespace options | 2038 } // namespace options |
2043 } // namespace chromeos | 2039 } // namespace chromeos |
OLD | NEW |