OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 UI_CHROMEOS_NETWORK_NETWORK_LIST_DELEGATE_H_ | 5 #ifndef UI_CHROMEOS_NETWORK_NETWORK_LIST_DELEGATE_H_ |
6 #define UI_CHROMEOS_NETWORK_NETWORK_LIST_DELEGATE_H_ | 6 #define UI_CHROMEOS_NETWORK_NETWORK_LIST_DELEGATE_H_ |
7 | 7 |
8 #include "ui/chromeos/ui_chromeos_export.h" | 8 #include "ui/chromeos/ui_chromeos_export.h" |
9 | 9 |
10 namespace chromeos { | 10 namespace chromeos { |
(...skipping 29 matching lines...) Expand all Loading... |
40 virtual void UpdateViewForNetwork(views::View* view, | 40 virtual void UpdateViewForNetwork(views::View* view, |
41 const NetworkInfo& info) = 0; | 41 const NetworkInfo& info) = 0; |
42 | 42 |
43 // Creates a Label to be displayed in the list to present some information | 43 // Creates a Label to be displayed in the list to present some information |
44 // (e.g. unavailability of network etc.). | 44 // (e.g. unavailability of network etc.). |
45 virtual views::Label* CreateInfoLabel() = 0; | 45 virtual views::Label* CreateInfoLabel() = 0; |
46 | 46 |
47 // Called when the user clicks on an entry representing a network in the list. | 47 // Called when the user clicks on an entry representing a network in the list. |
48 virtual void OnNetworkEntryClicked(views::View* sender) = 0; | 48 virtual void OnNetworkEntryClicked(views::View* sender) = 0; |
49 | 49 |
| 50 // Called when the user clicks on a "Join Other" button. |
| 51 virtual void OnOtherWifiClicked() = 0; |
| 52 |
50 virtual void RelayoutScrollList() = 0; | 53 virtual void RelayoutScrollList() = 0; |
51 }; | 54 }; |
52 | 55 |
53 } // namespace ui | 56 } // namespace ui |
54 | 57 |
55 #endif // UI_CHROMEOS_NETWORK_NETWORK_LIST_DELEGATE_H_ | 58 #endif // UI_CHROMEOS_NETWORK_NETWORK_LIST_DELEGATE_H_ |
OLD | NEW |