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

Side by Side Diff: ui/views/window/dialog_delegate.h

Issue 694363002: ui: Remove unused DialogModel::GetDialogLabel(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 1 month 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 5 #ifndef UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 6 #define UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/accessibility/ax_enums.h" 10 #include "ui/accessibility/ax_enums.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 virtual bool Accept(); 76 virtual bool Accept();
77 77
78 // Called when the user closes the window without selecting an option, 78 // Called when the user closes the window without selecting an option,
79 // e.g. by pressing the close button on the window or using a window manager 79 // e.g. by pressing the close button on the window or using a window manager
80 // gesture. By default, this calls Accept() if the only button in the dialog 80 // gesture. By default, this calls Accept() if the only button in the dialog
81 // is Accept, Cancel() otherwise. This function should return true if the 81 // is Accept, Cancel() otherwise. This function should return true if the
82 // window can be closed after it returns, or false if it must remain open. 82 // window can be closed after it returns, or false if it must remain open.
83 virtual bool Close(); 83 virtual bool Close();
84 84
85 // Overridden from ui::DialogModel: 85 // Overridden from ui::DialogModel:
86 base::string16 GetDialogLabel() const override;
87 base::string16 GetDialogTitle() const override; 86 base::string16 GetDialogTitle() const override;
88 int GetDialogButtons() const override; 87 int GetDialogButtons() const override;
89 int GetDefaultDialogButton() const override; 88 int GetDefaultDialogButton() const override;
90 bool ShouldDefaultButtonBeBlue() const override; 89 bool ShouldDefaultButtonBeBlue() const override;
91 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 90 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
92 bool IsDialogButtonEnabled(ui::DialogButton button) const override; 91 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
93 92
94 // Overridden from WidgetDelegate: 93 // Overridden from WidgetDelegate:
95 View* GetInitiallyFocusedView() override; 94 View* GetInitiallyFocusedView() override;
96 DialogDelegate* AsDialogDelegate() override; 95 DialogDelegate* AsDialogDelegate() override;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
136 const Widget* GetWidget() const override; 135 const Widget* GetWidget() const override;
137 View* GetContentsView() override; 136 View* GetContentsView() override;
138 137
139 private: 138 private:
140 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 139 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
141 }; 140 };
142 141
143 } // namespace views 142 } // namespace views
144 143
145 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 144 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698