Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4027)

Unified Diff: chrome/browser/chromeos/options/wifi_config_view.h

Issue 22340006: Show notifications for Network Config errors (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase + move comment Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/options/wifi_config_view.h
diff --git a/chrome/browser/chromeos/options/wifi_config_view.h b/chrome/browser/chromeos/options/wifi_config_view.h
index 573cad63bed561ccb454030f43b68159413a8f72..795649923b6efd0d0a8b4e79c7d4b7b9ea9807cc 100644
--- a/chrome/browser/chromeos/options/wifi_config_view.h
+++ b/chrome/browser/chromeos/options/wifi_config_view.h
@@ -15,6 +15,7 @@
#include "chrome/browser/chromeos/cros/cert_library.h"
#include "chrome/browser/chromeos/cros/network_property_ui_data.h"
#include "chrome/browser/chromeos/options/network_config_view.h"
+#include "chromeos/network/network_state_handler_observer.h"
#include "third_party/cros_system_api/dbus/service_constants.h"
#include "ui/base/models/combobox_model.h"
#include "ui/views/controls/button/button.h"
@@ -45,30 +46,31 @@ class WifiConfigView : public ChildNetworkConfigView,
public views::TextfieldController,
public views::ButtonListener,
public views::ComboboxListener,
- public CertLibrary::Observer {
+ public CertLibrary::Observer,
+ public NetworkStateHandlerObserver {
public:
WifiConfigView(NetworkConfigView* parent,
const std::string& service_path,
bool show_8021x);
virtual ~WifiConfigView();
- // views::TextfieldController:
+ // views::TextfieldController
virtual void ContentsChanged(views::Textfield* sender,
const string16& new_contents) OVERRIDE;
virtual bool HandleKeyEvent(views::Textfield* sender,
const ui::KeyEvent& key_event) OVERRIDE;
- // views::ButtonListener:
+ // views::ButtonListener
virtual void ButtonPressed(views::Button* sender,
const ui::Event& event) OVERRIDE;
- // views::ComboboxListener:
+ // views::ComboboxListener
virtual void OnSelectedIndexChanged(views::Combobox* combobox) OVERRIDE;
- // CertLibrary::Observer:
+ // CertLibrary::Observer
virtual void OnCertificatesLoaded(bool initial_load) OVERRIDE;
- // ChildNetworkConfigView:
+ // ChildNetworkConfigView
virtual string16 GetTitle() const OVERRIDE;
virtual views::View* GetInitiallyFocusedView() OVERRIDE;
virtual bool CanLogin() OVERRIDE;
@@ -76,6 +78,9 @@ class WifiConfigView : public ChildNetworkConfigView,
virtual void Cancel() OVERRIDE;
virtual void InitFocus() OVERRIDE;
+ // NetworkStateHandlerObserver
+ virtual void NetworkPropertiesUpdated(const NetworkState* network) OVERRIDE;
+
// Parses a WiFi UI |property| from the ONC associated with |network|. |key|
// is the property name within the ONC WiFi dictionary.
static void ParseWiFiUIProperty(NetworkPropertyUIData* property_ui_data,
« no previous file with comments | « chrome/browser/chromeos/options/network_connect.cc ('k') | chrome/browser/chromeos/options/wifi_config_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698