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

Side by Side Diff: chrome/browser/chooser_controller/chooser_controller.h

Issue 2932243002: Refactor ChooserDialogView to use borders instead of content margins. (Closed)
Patch Set: nits Created 3 years, 6 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 unified diff | Download patch
« no previous file with comments | « no previous file | chrome/browser/chooser_controller/mock_chooser_controller.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chooser_controller/mock_chooser_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698