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

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
« no previous file with comments | « ui/base/models/dialog_model.h ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 void ViewHierarchyChanged( 140 void ViewHierarchyChanged(
142 const ViewHierarchyChangedDetails& details) override; 141 const ViewHierarchyChangedDetails& details) override;
143 142
144 private: 143 private:
145 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 144 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
146 }; 145 };
147 146
148 } // namespace views 147 } // namespace views
149 148
150 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 149 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/base/models/dialog_model.h ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698