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

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

Issue 2660553005: Harmony - convert hung renderer dialog. (Closed)
Patch Set: disable dialog test on osx Created 3 years, 10 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/views_delegate.cc ('k') | ui/views/window/dialog_client_view.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_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 "base/gtest_prod_util.h" 8 #include "base/gtest_prod_util.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 91
92 // Returns the height of the buttons. 92 // Returns the height of the buttons.
93 int GetButtonHeight() const; 93 int GetButtonHeight() const;
94 94
95 // Returns the height of the extra view. 95 // Returns the height of the extra view.
96 int GetExtraViewHeight() const; 96 int GetExtraViewHeight() const;
97 97
98 // Returns the height of the row containing the buttons and the extra view. 98 // Returns the height of the row containing the buttons and the extra view.
99 int GetButtonsAndExtraViewRowHeight() const; 99 int GetButtonsAndExtraViewRowHeight() const;
100 100
101 // Returns the insets for the buttons and extra view. 101 // Returns the insets for the buttons and extra view, including the vertical
102 // padding between them and the contents view.
102 gfx::Insets GetButtonRowInsets() const; 103 gfx::Insets GetButtonRowInsets() const;
103 104
104 // Returns the vertical padding to place between the contents view and the
105 // buttons/extra view.
106 int GetButtonsAndExtraViewRowTopPadding() const;
107
108 // Sets up the focus chain for the child views. This is required since the 105 // Sets up the focus chain for the child views. This is required since the
109 // delegate may choose to add/remove views at any time. 106 // delegate may choose to add/remove views at any time.
110 void SetupFocusChain(); 107 void SetupFocusChain();
111 108
112 // How much to inset the button row. 109 // How much to inset the button row.
113 gfx::Insets button_row_insets_; 110 gfx::Insets button_row_insets_;
114 111
115 // The minimum size of this dialog, regardless of the size of its content 112 // The minimum size of this dialog, regardless of the size of its content
116 // view. 113 // view.
117 gfx::Size minimum_size_; 114 gfx::Size minimum_size_;
(...skipping 10 matching lines...) Expand all
128 // http://crbug.com/71940). This is used to avoid notifying the delegate 125 // http://crbug.com/71940). This is used to avoid notifying the delegate
129 // twice, which can have bad consequences. 126 // twice, which can have bad consequences.
130 bool delegate_allowed_close_ = false; 127 bool delegate_allowed_close_ = false;
131 128
132 DISALLOW_COPY_AND_ASSIGN(DialogClientView); 129 DISALLOW_COPY_AND_ASSIGN(DialogClientView);
133 }; 130 };
134 131
135 } // namespace views 132 } // namespace views
136 133
137 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_ 134 #endif // UI_VIEWS_WINDOW_DIALOG_CLIENT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/views_delegate.cc ('k') | ui/views/window/dialog_client_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698