OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009, 2011 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008, 2010 Nokia Corporation and/or its subsidiary(-ies) |
4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. | 4 * Copyright (C) 2012, Samsung Electronics. All rights reserved. |
5 * | 5 * |
6 * This library is free software; you can redistribute it and/or | 6 * This library is free software; you can redistribute it and/or |
7 * modify it under the terms of the GNU Library General Public | 7 * modify it under the terms of the GNU Library General Public |
8 * License as published by the Free Software Foundation; either | 8 * License as published by the Free Software Foundation; either |
9 * version 2 of the License, or (at your option) any later version. | 9 * version 2 of the License, or (at your option) any later version. |
10 * | 10 * |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 Document::PageDismissalType dismissal = | 79 Document::PageDismissalType dismissal = |
80 local_frame.GetDocument()->PageDismissalEventBeingDispatched(); | 80 local_frame.GetDocument()->PageDismissalEventBeingDispatched(); |
81 if (dismissal != Document::kNoDismissal) { | 81 if (dismissal != Document::kNoDismissal) { |
82 return ShouldOpenModalDialogDuringPageDismissal(local_frame, dialog, | 82 return ShouldOpenModalDialogDuringPageDismissal(local_frame, dialog, |
83 message, dismissal); | 83 message, dismissal); |
84 } | 84 } |
85 } | 85 } |
86 return true; | 86 return true; |
87 } | 87 } |
88 | 88 |
89 void ChromeClient::SetWindowFeatures(const WindowFeatures& features) { | |
90 SetToolbarsVisible(features.tool_bar_visible || | |
91 features.location_bar_visible); | |
92 SetStatusbarVisible(features.status_bar_visible); | |
93 SetScrollbarsVisible(features.scrollbars_visible); | |
94 SetMenubarVisible(features.menu_bar_visible); | |
95 SetResizable(features.resizable); | |
96 } | |
97 | |
98 template <typename Delegate> | 89 template <typename Delegate> |
99 static bool OpenJavaScriptDialog(LocalFrame* frame, | 90 static bool OpenJavaScriptDialog(LocalFrame* frame, |
100 const String& message, | 91 const String& message, |
101 ChromeClient::DialogType dialog_type, | 92 ChromeClient::DialogType dialog_type, |
102 const Delegate& delegate) { | 93 const Delegate& delegate) { |
103 // Suspend pages in case the client method runs a new event loop that would | 94 // Suspend pages in case the client method runs a new event loop that would |
104 // otherwise cause the load to continue while we're in the middle of | 95 // otherwise cause the load to continue while we're in the middle of |
105 // executing JavaScript. | 96 // executing JavaScript. |
106 ScopedPageSuspender suspender; | 97 ScopedPageSuspender suspender; |
107 probe::willRunJavaScriptDialog(frame, message, dialog_type); | 98 probe::willRunJavaScriptDialog(frame, message, dialog_type); |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
240 // Suspend pages in case the client method runs a new event loop that would | 231 // Suspend pages in case the client method runs a new event loop that would |
241 // otherwise cause the load to continue while we're in the middle of | 232 // otherwise cause the load to continue while we're in the middle of |
242 // executing JavaScript. | 233 // executing JavaScript. |
243 ScopedPageSuspender suspender; | 234 ScopedPageSuspender suspender; |
244 | 235 |
245 PrintDelegate(frame); | 236 PrintDelegate(frame); |
246 return true; | 237 return true; |
247 } | 238 } |
248 | 239 |
249 } // namespace blink | 240 } // namespace blink |
OLD | NEW |