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" |
| 42 #include "wtf/PassRefPtr.h" |
| 43 #include "wtf/Vector.h" |
46 | 44 |
47 namespace WebCore { | 45 namespace WebCore { |
48 | 46 |
49 using namespace HTMLNames; | 47 using namespace HTMLNames; |
50 using namespace std; | 48 using namespace std; |
51 | 49 |
52 Chrome::Chrome(Page* page, ChromeClient* client) | 50 Chrome::Chrome(Page* page, ChromeClient* client) |
53 : m_page(page) | 51 : m_page(page) |
54 , m_client(client) | 52 , m_client(client) |
55 { | 53 { |
(...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 } | 434 } |
437 | 435 |
438 void Chrome::notifyPopupOpeningObservers() const | 436 void Chrome::notifyPopupOpeningObservers() const |
439 { | 437 { |
440 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); | 438 const Vector<PopupOpeningObserver*> observers(m_popupOpeningObservers); |
441 for (size_t i = 0; i < observers.size(); ++i) | 439 for (size_t i = 0; i < observers.size(); ++i) |
442 observers[i]->willOpenPopup(); | 440 observers[i]->willOpenPopup(); |
443 } | 441 } |
444 | 442 |
445 } // namespace WebCore | 443 } // namespace WebCore |
OLD | NEW |