| 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 <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 // Open help center URL. | 123 // Open help center URL. |
| 124 virtual void OpenHelpCenterUrl() const = 0; | 124 virtual void OpenHelpCenterUrl() const = 0; |
| 125 | 125 |
| 126 // Provide help information when the adapter is off. | 126 // Provide help information when the adapter is off. |
| 127 virtual void OpenAdapterOffHelpUrl() const; | 127 virtual void OpenAdapterOffHelpUrl() const; |
| 128 | 128 |
| 129 // Only one view may be registered at a time. | 129 // Only one view may be registered at a time. |
| 130 void set_view(View* view) { view_ = view; } | 130 void set_view(View* view) { view_ = view; } |
| 131 View* view() const { return view_; } | 131 View* view() const { return view_; } |
| 132 | 132 |
| 133 protected: |
| 134 void set_title_for_testing(const base::string16& title) { title_ = title; } |
| 135 |
| 133 private: | 136 private: |
| 134 base::string16 title_; | 137 base::string16 title_; |
| 135 View* view_ = nullptr; | 138 View* view_ = nullptr; |
| 136 | 139 |
| 137 DISALLOW_COPY_AND_ASSIGN(ChooserController); | 140 DISALLOW_COPY_AND_ASSIGN(ChooserController); |
| 138 }; | 141 }; |
| 139 | 142 |
| 140 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ | 143 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ |
| OLD | NEW |