Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ | |
| 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ | |
| 7 | |
| 8 #include "base/macros.h" | |
| 9 #include "chrome/browser/ui/views/chooser_content_view.h" | |
|
Reilly Grant (use Gerrit)
2016/06/03 19:27:07
This file appears to be missing from your patch.
msw
2016/06/03 19:46:24
This CL depends on https://codereview.chromium.org
| |
| 10 | |
| 11 class ChooserController; | |
| 12 | |
| 13 namespace content { | |
| 14 class WebContents; | |
| 15 } | |
| 16 | |
| 17 // Displays a chooser dialog as a modal sheet constrained | |
|
msw
2016/06/03 19:46:24
nit: "sheet" is a Mac term, right? Consider: "Disp
juncai
2016/06/07 23:19:39
Done.
| |
| 18 // to the window/tab displaying the given web contents. | |
| 19 class ChooserDialogView : public ChooserContentView { | |
| 20 public: | |
| 21 ChooserDialogView(content::WebContents* web_contents, | |
| 22 ChooserController* controller); | |
| 23 ~ChooserDialogView() override; | |
| 24 | |
| 25 // views::BubbleDialogDelegateView: | |
|
msw
2016/06/03 19:46:24
+estade for sanity checking the use of BubbleDialo
Evan Stade
2016/06/03 21:35:35
yea I think this is going to give some weird behav
juncai
2016/06/07 23:19:39
Done.
| |
| 26 base::string16 GetWindowTitle() const override; | |
| 27 ui::ModalType GetModalType() const override; | |
| 28 void DeleteDelegate() override; | |
| 29 bool Accept() override; | |
| 30 bool Cancel() override; | |
| 31 bool Close() override; | |
| 32 | |
| 33 private: | |
| 34 content::WebContents* web_contents_; | |
| 35 DISALLOW_COPY_AND_ASSIGN(ChooserDialogView); | |
| 36 }; | |
| 37 | |
| 38 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ | |
| OLD | NEW |