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 * |
11 * This library is distributed in the hope that it will be useful, | 11 * This library is distributed in the hope that it will be useful, |
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 * Library General Public License for more details. | 14 * Library General Public License for more details. |
15 * | 15 * |
16 * You should have received a copy of the GNU Library General Public License | 16 * You should have received a copy of the GNU Library General Public License |
17 * along with this library; see the file COPYING.LIB. If not, write to | 17 * along with this library; see the file COPYING.LIB. If not, write to |
18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, | 18 * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
19 * Boston, MA 02110-1301, USA. | 19 * Boston, MA 02110-1301, USA. |
20 */ | 20 */ |
21 | 21 |
22 #include "config.h" | 22 #include "config.h" |
23 #include "core/page/Chrome.h" | 23 #include "core/page/Chrome.h" |
24 | 24 |
25 #include "public/platform/WebScreenInfo.h" | 25 #include "public/platform/WebScreenInfo.h" |
26 #include <wtf/PassRefPtr.h> | |
27 #include <wtf/RefPtr.h> | |
28 #include <wtf/text/StringBuilder.h> | |
29 #include <wtf/Vector.h> | |
30 #include "HTMLNames.h" | 26 #include "HTMLNames.h" |
31 #include "core/dom/Document.h" | 27 #include "core/dom/Document.h" |
32 #include "core/html/HTMLInputElement.h" | 28 #include "core/html/HTMLInputElement.h" |
33 #include "core/inspector/InspectorInstrumentation.h" | 29 #include "core/inspector/InspectorInstrumentation.h" |
34 #include "core/page/ChromeClient.h" | 30 #include "core/page/ChromeClient.h" |
35 #include "core/page/Frame.h" | 31 #include "core/page/Frame.h" |
36 #include "core/page/FrameTree.h" | 32 #include "core/page/FrameTree.h" |
37 #include "core/page/Page.h" | 33 #include "core/page/Page.h" |
38 #include "core/page/PageGroupLoadDeferrer.h" | 34 #include "core/page/PageGroupLoadDeferrer.h" |
39 #include "core/page/PopupOpeningObserver.h" | 35 #include "core/page/PopupOpeningObserver.h" |
40 #include "core/platform/ColorChooser.h" | 36 #include "core/platform/ColorChooser.h" |
41 #include "core/platform/DateTimeChooser.h" | 37 #include "core/platform/DateTimeChooser.h" |
42 #include "core/platform/FileChooser.h" | 38 #include "core/platform/FileChooser.h" |
43 #include "core/platform/graphics/FloatRect.h" | 39 #include "core/platform/graphics/FloatRect.h" |
44 #include "core/platform/network/DNS.h" | 40 #include "core/platform/network/DNS.h" |
45 #include "core/rendering/HitTestResult.h" | 41 #include "core/rendering/HitTestResult.h" |
46 #include "core/storage/StorageNamespace.h" | 42 #include "core/storage/StorageNamespace.h" |
| 43 #include "wtf/PassRefPtr.h" |
| 44 #include "wtf/RefPtr.h" |
| 45 #include "wtf/Vector.h" |
47 | 46 |
48 namespace WebCore { | 47 namespace WebCore { |
49 | 48 |
50 using namespace HTMLNames; | 49 using namespace HTMLNames; |
51 using namespace std; | 50 using namespace std; |
52 | 51 |
53 Chrome::Chrome(Page* page, ChromeClient* client) | 52 Chrome::Chrome(Page* page, ChromeClient* client) |
54 : m_page(page) | 53 : m_page(page) |
55 , m_client(client) | 54 , m_client(client) |
56 { | 55 { |
(...skipping 392 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
449 } | 448 } |
450 | 449 |
451 void Chrome::notifyPopupOpeningObservers() const | 450 void Chrome::notifyPopupOpeningObservers() const |
452 { | 451 { |
453 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); | 452 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); |
454 for (size_t i = 0; i < observers.size(); ++i) | 453 for (size_t i = 0; i < observers.size(); ++i) |
455 observers[i]->willOpenPopup(); | 454 observers[i]->willOpenPopup(); |
456 } | 455 } |
457 | 456 |
458 } // namespace WebCore | 457 } // namespace WebCore |
OLD | NEW |