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

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

Issue 2344133003: Add help link when Bluetooth adapter is off for WebBluetooth chooser (Closed)
Patch Set: address more comments Created 4 years, 2 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 10
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after
107 // Called when the user presses the 'Cancel' button in the dialog. 107 // Called when the user presses the 'Cancel' button in the dialog.
108 virtual void Cancel() = 0; 108 virtual void Cancel() = 0;
109 109
110 // Called when the user clicks outside the dialog or the dialog otherwise 110 // Called when the user clicks outside the dialog or the dialog otherwise
111 // closes without the user taking an explicit action. 111 // closes without the user taking an explicit action.
112 virtual void Close() = 0; 112 virtual void Close() = 0;
113 113
114 // Open help center URL. 114 // Open help center URL.
115 virtual void OpenHelpCenterUrl() const = 0; 115 virtual void OpenHelpCenterUrl() const = 0;
116 116
117 // Provide help information when the adapter is off.
118 virtual void OpenAdapterOffHelpUrl() const;
119
117 // Only one view may be registered at a time. 120 // Only one view may be registered at a time.
118 void set_view(View* view) { view_ = view; } 121 void set_view(View* view) { view_ = view; }
119 View* view() const { return view_; } 122 View* view() const { return view_; }
120 123
121 private: 124 private:
122 content::RenderFrameHost* const owning_frame_; 125 content::RenderFrameHost* const owning_frame_;
123 const int title_string_id_origin_; 126 const int title_string_id_origin_;
124 const int title_string_id_extension_; 127 const int title_string_id_extension_;
125 View* view_ = nullptr; 128 View* view_ = nullptr;
126 129
127 DISALLOW_COPY_AND_ASSIGN(ChooserController); 130 DISALLOW_COPY_AND_ASSIGN(ChooserController);
128 }; 131 };
129 132
130 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_ 133 #endif // CHROME_BROWSER_CHOOSER_CONTROLLER_CHOOSER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/chooser_controller/chooser_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698