OLD | NEW |
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_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ | 5 #ifndef UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ |
6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ | 6 #define UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 views::WebView* web_view_; | 131 views::WebView* web_view_; |
132 | 132 |
133 // Whether user is attempting to close the dialog and we are processing | 133 // Whether user is attempting to close the dialog and we are processing |
134 // beforeunload event. | 134 // beforeunload event. |
135 bool is_attempting_close_dialog_; | 135 bool is_attempting_close_dialog_; |
136 | 136 |
137 // Whether beforeunload event has been fired and we have finished processing | 137 // Whether beforeunload event has been fired and we have finished processing |
138 // beforeunload event. | 138 // beforeunload event. |
139 bool before_unload_fired_; | 139 bool before_unload_fired_; |
140 | 140 |
141 // Whether the dialog is closed from WebUI in response to a "DialogClose" | 141 // Whether the dialog is closed from WebUI in response to a "dialogClose" |
142 // message. | 142 // message. |
143 bool closed_via_webui_; | 143 bool closed_via_webui_; |
144 | 144 |
145 // A json string returned to WebUI from a "DialogClosed" message. | 145 // A json string returned to WebUI from a "dialogClose" message. |
146 std::string dialog_close_retval_; | 146 std::string dialog_close_retval_; |
147 | 147 |
148 // Whether CloseContents() has been called. | 148 // Whether CloseContents() has been called. |
149 bool close_contents_called_; | 149 bool close_contents_called_; |
150 | 150 |
151 DISALLOW_COPY_AND_ASSIGN(WebDialogView); | 151 DISALLOW_COPY_AND_ASSIGN(WebDialogView); |
152 }; | 152 }; |
153 | 153 |
154 } // namespace views | 154 } // namespace views |
155 | 155 |
156 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ | 156 #endif // UI_VIEWS_CONTROLS_WEBVIEW_WEB_DIALOG_VIEW_H_ |
OLD | NEW |