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

Side by Side Diff: chrome/browser/ui/views/extensions/chooser_dialog_view.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
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_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_
7 7
8 #include <memory> 8 #include <memory>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 14 matching lines...) Expand all
25 25
26 // views::WidgetDelegate: 26 // views::WidgetDelegate:
27 base::string16 GetWindowTitle() const override; 27 base::string16 GetWindowTitle() const override;
28 bool ShouldShowCloseButton() const override; 28 bool ShouldShowCloseButton() const override;
29 ui::ModalType GetModalType() const override; 29 ui::ModalType GetModalType() const override;
30 30
31 // views::DialogDelegate: 31 // views::DialogDelegate:
32 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 32 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
33 bool IsDialogButtonEnabled(ui::DialogButton button) const override; 33 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
34 views::View* CreateFootnoteView() override; 34 views::View* CreateFootnoteView() override;
35 views::ClientView* CreateClientView(views::Widget* widget) override;
36 views::NonClientFrameView* CreateNonClientFrameView(
37 views::Widget* widget) override;
38 bool Accept() override; 35 bool Accept() override;
39 bool Cancel() override; 36 bool Cancel() override;
40 bool Close() override; 37 bool Close() override;
41 38
42 // views::DialogDelegateView: 39 // views::DialogDelegateView:
43 views::View* GetContentsView() override; 40 views::View* GetContentsView() override;
44 views::Widget* GetWidget() override; 41 views::Widget* GetWidget() override;
45 const views::Widget* GetWidget() const override; 42 const views::Widget* GetWidget() const override;
46 43
47 // views::TableViewObserver: 44 // views::TableViewObserver:
48 void OnSelectionChanged() override; 45 void OnSelectionChanged() override;
49 46
50 DeviceChooserContentView* device_chooser_content_view_for_test() const; 47 DeviceChooserContentView* device_chooser_content_view_for_test() const;
51 48
52 private: 49 private:
53 DeviceChooserContentView* device_chooser_content_view_; 50 DeviceChooserContentView* device_chooser_content_view_;
54 51
55 DISALLOW_COPY_AND_ASSIGN(ChooserDialogView); 52 DISALLOW_COPY_AND_ASSIGN(ChooserDialogView);
56 }; 53 };
57 54
58 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_ 55 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_CHOOSER_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698