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

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: GetTitle not virtual 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
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(base::string16 title) { title_ = title; }
Jeffrey Yasskin 2017/06/15 22:06:30 Either const base::string16& or std::move(title).
juncai 2017/06/15 22:14:57 drive-by comment: Since this function is only for
Peter Kasting 2017/06/15 22:26:14 Since I just looked this up an hour ago: we prefer
Bret 2017/06/15 22:50:14 All done.
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

Powered by Google App Engine
This is Rietveld 408576698