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

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

Issue 2922263002: Fix style of profile error dialog. (Closed)
Patch Set: tapted's and pkasting's comments 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
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('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/macros.h" 9 #include "base/macros.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 // the typical. 88 // the typical.
89 virtual void UpdateButton(LabelButton* button, ui::DialogButton type); 89 virtual void UpdateButton(LabelButton* button, ui::DialogButton type);
90 90
91 // Returns true if this dialog should snap the frame width based on the 91 // Returns true if this dialog should snap the frame width based on the
92 // LayoutProvider's snapping. 92 // LayoutProvider's snapping.
93 virtual bool ShouldSnapFrameWidth() const; 93 virtual bool ShouldSnapFrameWidth() const;
94 94
95 // Overridden from ui::DialogModel: 95 // Overridden from ui::DialogModel:
96 int GetDialogButtons() const override; 96 int GetDialogButtons() const override;
97 int GetDefaultDialogButton() const override; 97 int GetDefaultDialogButton() const override;
98 bool ShouldDefaultButtonBeBlue() const override;
99 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override; 98 base::string16 GetDialogButtonLabel(ui::DialogButton button) const override;
100 bool IsDialogButtonEnabled(ui::DialogButton button) const override; 99 bool IsDialogButtonEnabled(ui::DialogButton button) const override;
101 100
102 // Overridden from WidgetDelegate: 101 // Overridden from WidgetDelegate:
103 View* GetInitiallyFocusedView() override; 102 View* GetInitiallyFocusedView() override;
104 DialogDelegate* AsDialogDelegate() override; 103 DialogDelegate* AsDialogDelegate() override;
105 ClientView* CreateClientView(Widget* widget) override; 104 ClientView* CreateClientView(Widget* widget) override;
106 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override; 105 NonClientFrameView* CreateNonClientFrameView(Widget* widget) override;
107 106
108 // Create a frame view using the new dialog style. 107 // Create a frame view using the new dialog style.
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void ViewHierarchyChanged( 152 void ViewHierarchyChanged(
154 const ViewHierarchyChangedDetails& details) override; 153 const ViewHierarchyChangedDetails& details) override;
155 154
156 private: 155 private:
157 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView); 156 DISALLOW_COPY_AND_ASSIGN(DialogDelegateView);
158 }; 157 };
159 158
160 } // namespace views 159 } // namespace views
161 160
162 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_ 161 #endif // UI_VIEWS_WINDOW_DIALOG_DELEGATE_H_
OLDNEW
« no previous file with comments | « ui/views/window/dialog_client_view.cc ('k') | ui/views/window/dialog_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698