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 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 6 #define CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 public views::TextfieldController, | 44 public views::TextfieldController, |
45 public views::ButtonListener, | 45 public views::ButtonListener, |
46 public views::ComboboxListener, | 46 public views::ComboboxListener, |
47 public CertLibrary::Observer { | 47 public CertLibrary::Observer { |
48 public: | 48 public: |
49 VPNConfigView(NetworkConfigView* parent, const std::string& service_path); | 49 VPNConfigView(NetworkConfigView* parent, const std::string& service_path); |
50 virtual ~VPNConfigView(); | 50 virtual ~VPNConfigView(); |
51 | 51 |
52 // views::TextfieldController: | 52 // views::TextfieldController: |
53 virtual void ContentsChanged(views::Textfield* sender, | 53 virtual void ContentsChanged(views::Textfield* sender, |
54 const base::string16& new_contents) OVERRIDE; | 54 const base::string16& new_contents) override; |
55 virtual bool HandleKeyEvent(views::Textfield* sender, | 55 virtual bool HandleKeyEvent(views::Textfield* sender, |
56 const ui::KeyEvent& key_event) OVERRIDE; | 56 const ui::KeyEvent& key_event) override; |
57 | 57 |
58 // views::ButtonListener: | 58 // views::ButtonListener: |
59 virtual void ButtonPressed(views::Button* sender, | 59 virtual void ButtonPressed(views::Button* sender, |
60 const ui::Event& event) OVERRIDE; | 60 const ui::Event& event) override; |
61 | 61 |
62 // views::ComboboxListener: | 62 // views::ComboboxListener: |
63 virtual void OnPerformAction(views::Combobox* combobox) OVERRIDE; | 63 virtual void OnPerformAction(views::Combobox* combobox) override; |
64 | 64 |
65 // CertLibrary::Observer: | 65 // CertLibrary::Observer: |
66 virtual void OnCertificatesLoaded(bool initial_load) OVERRIDE; | 66 virtual void OnCertificatesLoaded(bool initial_load) override; |
67 | 67 |
68 // ChildNetworkConfigView: | 68 // ChildNetworkConfigView: |
69 virtual base::string16 GetTitle() const OVERRIDE; | 69 virtual base::string16 GetTitle() const override; |
70 virtual views::View* GetInitiallyFocusedView() OVERRIDE; | 70 virtual views::View* GetInitiallyFocusedView() override; |
71 virtual bool CanLogin() OVERRIDE; | 71 virtual bool CanLogin() override; |
72 virtual bool Login() OVERRIDE; | 72 virtual bool Login() override; |
73 virtual void Cancel() OVERRIDE; | 73 virtual void Cancel() override; |
74 virtual void InitFocus() OVERRIDE; | 74 virtual void InitFocus() override; |
75 | 75 |
76 private: | 76 private: |
77 // Initializes data members and create UI controls. | 77 // Initializes data members and create UI controls. |
78 void Init(); | 78 void Init(); |
79 | 79 |
80 // Callback to initialize fields from uncached network properties. | 80 // Callback to initialize fields from uncached network properties. |
81 void InitFromProperties(const std::string& service_path, | 81 void InitFromProperties(const std::string& service_path, |
82 const base::DictionaryValue& dictionary); | 82 const base::DictionaryValue& dictionary); |
83 void ParseUIProperties(const NetworkState* vpn); | 83 void ParseUIProperties(const NetworkState* vpn); |
84 void GetPropertiesError(const std::string& error_name, | 84 void GetPropertiesError(const std::string& error_name, |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 std::string client_cert_id_; | 189 std::string client_cert_id_; |
190 | 190 |
191 base::WeakPtrFactory<VPNConfigView> weak_ptr_factory_; | 191 base::WeakPtrFactory<VPNConfigView> weak_ptr_factory_; |
192 | 192 |
193 DISALLOW_COPY_AND_ASSIGN(VPNConfigView); | 193 DISALLOW_COPY_AND_ASSIGN(VPNConfigView); |
194 }; | 194 }; |
195 | 195 |
196 } // namespace chromeos | 196 } // namespace chromeos |
197 | 197 |
198 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ | 198 #endif // CHROME_BROWSER_CHROMEOS_OPTIONS_VPN_CONFIG_VIEW_H_ |
OLD | NEW |