OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2006, 2007, 2009 Apple Inc. All rights reserved. |
3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 3 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
4 * | 4 * |
5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
9 * | 9 * |
10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "config.h" | 21 #include "config.h" |
22 #include "Chrome.h" | 22 #include "Chrome.h" |
23 | 23 |
24 #include "ChromeClient.h" | 24 #include "ChromeClient.h" |
25 #include "DNS.h" | 25 #include "DNS.h" |
26 #include "Document.h" | 26 #include "Document.h" |
27 #include "FileList.h" | 27 #include "FileList.h" |
28 #include "FloatRect.h" | 28 #include "FloatRect.h" |
29 #include "Frame.h" | 29 #include "Frame.h" |
30 #include "FrameTree.h" | 30 #include "FrameTree.h" |
| 31 #include "Geolocation.h" |
31 #include "HTMLFormElement.h" | 32 #include "HTMLFormElement.h" |
32 #include "HTMLInputElement.h" | 33 #include "HTMLInputElement.h" |
33 #include "HTMLNames.h" | 34 #include "HTMLNames.h" |
34 #include "HitTestResult.h" | 35 #include "HitTestResult.h" |
35 #include "InspectorController.h" | 36 #include "InspectorController.h" |
36 #include "Page.h" | 37 #include "Page.h" |
37 #include "PageGroup.h" | 38 #include "PageGroup.h" |
38 #include "ResourceHandle.h" | 39 #include "ResourceHandle.h" |
39 #include "ScriptController.h" | 40 #include "ScriptController.h" |
40 #include "SecurityOrigin.h" | 41 #include "SecurityOrigin.h" |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
380 void Chrome::disableSuddenTermination() | 381 void Chrome::disableSuddenTermination() |
381 { | 382 { |
382 m_client->disableSuddenTermination(); | 383 m_client->disableSuddenTermination(); |
383 } | 384 } |
384 | 385 |
385 void Chrome::enableSuddenTermination() | 386 void Chrome::enableSuddenTermination() |
386 { | 387 { |
387 m_client->enableSuddenTermination(); | 388 m_client->enableSuddenTermination(); |
388 } | 389 } |
389 | 390 |
390 bool Chrome::shouldAllowGeolocationForFrame(Frame* frame) | 391 void Chrome::requestGeolocationPermissionForFrame(Frame* frame, Geolocation* geo
location) |
391 { | 392 { |
392 // Defer loads in case the client method runs a new event loop that would | 393 // Defer loads in case the client method runs a new event loop that would |
393 // otherwise cause the load to continue while we're in the middle of executi
ng JavaScript. | 394 // otherwise cause the load to continue while we're in the middle of executi
ng JavaScript. |
394 PageGroupLoadDeferrer deferrer(m_page, true); | 395 PageGroupLoadDeferrer deferrer(m_page, true); |
395 | 396 |
396 ASSERT(frame); | 397 ASSERT(frame); |
397 return m_client->shouldAllowGeolocationForFrame(frame); | 398 m_client->requestGeolocationPermissionForFrame(frame, geolocation); |
398 } | 399 } |
399 | 400 |
400 void Chrome::runOpenPanel(Frame* frame, PassRefPtr<FileChooser> fileChooser) | 401 void Chrome::runOpenPanel(Frame* frame, PassRefPtr<FileChooser> fileChooser) |
401 { | 402 { |
402 m_client->runOpenPanel(frame, fileChooser); | 403 m_client->runOpenPanel(frame, fileChooser); |
403 } | 404 } |
404 // -------- | 405 // -------- |
405 | 406 |
406 #if ENABLE(DASHBOARD_SUPPORT) | 407 #if ENABLE(DASHBOARD_SUPPORT) |
407 void ChromeClient::dashboardRegionsChanged() | 408 void ChromeClient::dashboardRegionsChanged() |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
488 #if !PLATFORM(MAC) | 489 #if !PLATFORM(MAC) |
489 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree()-
>traverseNext()) | 490 for (Frame* frame = page->mainFrame(); frame; frame = frame->tree()-
>traverseNext()) |
490 frame->document()->resumeActiveDOMObjects(); | 491 frame->document()->resumeActiveDOMObjects(); |
491 #endif | 492 #endif |
492 } | 493 } |
493 } | 494 } |
494 } | 495 } |
495 | 496 |
496 | 497 |
497 } // namespace WebCore | 498 } // namespace WebCore |
OLD | NEW |