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

Side by Side Diff: chrome/browser/ui/website_settings/chooser_bubble_delegate.h

Issue 1473393003: Add chooser permission UI code for Mac (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@wpu_1
Patch Set: updated code to calculate width for table column Created 5 years 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ 5 #ifndef CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_
6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ 6 #define CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "components/bubble/bubble_delegate.h" 9 #include "components/bubble/bubble_delegate.h"
10 10
11 class Browser;
11 class ChooserOptions; 12 class ChooserOptions;
12 13
13 class ChooserBubbleDelegate : public BubbleDelegate { 14 class ChooserBubbleDelegate : public BubbleDelegate {
14 public: 15 public:
15 ChooserBubbleDelegate(); 16 explicit ChooserBubbleDelegate(Browser* browser);
16 ~ChooserBubbleDelegate() override; 17 ~ChooserBubbleDelegate() override;
17 18
18 // BubbleDelegate: 19 // BubbleDelegate:
19 std::string GetName() const override; 20 std::string GetName() const override;
21 scoped_ptr<BubbleUi> BuildBubbleUi() override;
22
23 static scoped_ptr<BubbleUi> CreateBubbleUi(
24 Browser* browser,
25 ChooserOptions* chooser_options,
26 ChooserBubbleDelegate* chooser_bubble_delegate);
Reilly Grant (use Gerrit) 2015/12/08 19:26:57 This function does not need to be static. If it is
juncai 2015/12/09 03:23:54 Done.
20 27
21 virtual void Select(int index) = 0; 28 virtual void Select(int index) = 0;
22 virtual void Cancel() = 0; 29 virtual void Cancel() = 0;
23 virtual void Close() = 0; 30 virtual void Close() = 0;
24 31
25 protected: 32 protected:
26 scoped_ptr<ChooserOptions> chooser_options_; 33 scoped_ptr<ChooserOptions> chooser_options_;
27 34
28 private: 35 private:
36 Browser* browser_;
29 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleDelegate); 37 DISALLOW_COPY_AND_ASSIGN(ChooserBubbleDelegate);
30 }; 38 };
31 39
32 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_ 40 #endif // CHROME_BROWSER_UI_WEBSITE_SETTINGS_CHOOSER_BUBBLE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698