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

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

Issue 14895004: Fixing autocheckout progress bar repaint bug. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 7 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 | Annotate | Revision Log
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_CLIENT_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_
6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ 6 #define UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_
7 7
8 #include "ui/base/ui_base_types.h" 8 #include "ui/base/ui_base_types.h"
9 #include "ui/views/controls/button/button.h" 9 #include "ui/views/controls/button/button.h"
10 #include "ui/views/focus/focus_manager.h" 10 #include "ui/views/focus/focus_manager.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Returns the DialogDelegate for the window. Virtual for testing. 74 // Returns the DialogDelegate for the window. Virtual for testing.
75 virtual DialogDelegate* GetDialogDelegate() const; 75 virtual DialogDelegate* GetDialogDelegate() const;
76 76
77 // Create and add the extra view, if supplied by the delegate. 77 // Create and add the extra view, if supplied by the delegate.
78 void CreateExtraView(); 78 void CreateExtraView();
79 79
80 // Creates and adds the footnote view, if supplied by the delegate. 80 // Creates and adds the footnote view, if supplied by the delegate.
81 void CreateFootnoteView(); 81 void CreateFootnoteView();
82 82
83 // View implementation.
84 virtual void ChildPreferredSizeChanged(View* child) OVERRIDE;
85 virtual void ChildVisibilityChanged(View* child) OVERRIDE;
86
83 private: 87 private:
84 bool has_dialog_buttons() const { return ok_button_ || cancel_button_; } 88 bool has_dialog_buttons() const { return ok_button_ || cancel_button_; }
85 89
86 // Create a dialog button of the appropriate type. 90 // Create a dialog button of the appropriate type.
87 LabelButton* CreateDialogButton(ui::DialogButton type); 91 LabelButton* CreateDialogButton(ui::DialogButton type);
88 92
89 // Returns the height of the row containing the buttons and the extra view. 93 // Returns the height of the row containing the buttons and the extra view.
90 int GetButtonsAndExtraViewRowHeight() const; 94 int GetButtonsAndExtraViewRowHeight() const;
91 95
92 // Returns the insets for the buttons and extra view. 96 // Returns the insets for the buttons and extra view.
(...skipping 23 matching lines...) Expand all
116 // http://crbug.com/71940). This is used to avoid notifying the delegate 120 // http://crbug.com/71940). This is used to avoid notifying the delegate
117 // twice, which can have bad consequences. 121 // twice, which can have bad consequences.
118 bool notified_delegate_; 122 bool notified_delegate_;
119 123
120 DISALLOW_COPY_AND_ASSIGN(DialogClientView); 124 DISALLOW_COPY_AND_ASSIGN(DialogClientView);
121 }; 125 };
122 126
123 } // namespace views 127 } // namespace views
124 128
125 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ 129 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/autofill/autofill_dialog_views.cc ('k') | ui/views/window/dialog_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698