OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ |
6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ | 6 #define CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
10 | 10 |
(...skipping 28 matching lines...) Expand all Loading... |
39 // GetOption(index) from inside a call to OnOptionAdded will see the | 39 // GetOption(index) from inside a call to OnOptionAdded will see the |
40 // added string since the options have already been updated. | 40 // added string since the options have already been updated. |
41 virtual void OnOptionAdded(size_t index) = 0; | 41 virtual void OnOptionAdded(size_t index) = 0; |
42 | 42 |
43 // Called when GetOption(index) is no longer present, and all later | 43 // Called when GetOption(index) is no longer present, and all later |
44 // options have been moved earlier by 1 slot. Calling GetOption(index) | 44 // options have been moved earlier by 1 slot. Calling GetOption(index) |
45 // from inside a call to OnOptionRemoved will NOT see the removed string | 45 // from inside a call to OnOptionRemoved will NOT see the removed string |
46 // since the options have already been updated. | 46 // since the options have already been updated. |
47 virtual void OnOptionRemoved(size_t index) = 0; | 47 virtual void OnOptionRemoved(size_t index) = 0; |
48 | 48 |
| 49 // Called when the option at |index| has been updated. |
| 50 virtual void OnOptionUpdated(size_t index) = 0; |
| 51 |
49 // Called when the device adapter is turned on or off. | 52 // Called when the device adapter is turned on or off. |
50 virtual void OnAdapterEnabledChanged(bool enabled) = 0; | 53 virtual void OnAdapterEnabledChanged(bool enabled) = 0; |
51 | 54 |
52 // Called when refreshing options is in progress or complete. | 55 // Called when refreshing options is in progress or complete. |
53 virtual void OnRefreshStateChanged(bool refreshing) = 0; | 56 virtual void OnRefreshStateChanged(bool refreshing) = 0; |
54 | 57 |
55 protected: | 58 protected: |
56 virtual ~View() {} | 59 virtual ~View() {} |
57 }; | 60 }; |
58 | 61 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 private: | 104 private: |
102 content::RenderFrameHost* const owning_frame_; | 105 content::RenderFrameHost* const owning_frame_; |
103 const int title_string_id_origin_; | 106 const int title_string_id_origin_; |
104 const int title_string_id_extension_; | 107 const int title_string_id_extension_; |
105 View* view_ = nullptr; | 108 View* view_ = nullptr; |
106 | 109 |
107 DISALLOW_COPY_AND_ASSIGN(ChooserController); | 110 DISALLOW_COPY_AND_ASSIGN(ChooserController); |
108 }; | 111 }; |
109 | 112 |
110 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ | 113 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ |
OLD | NEW |