| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> | 2 * Copyright (C) 2006 Eric Seidel <eric@webkit.org> |
| 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. | 3 * Copyright (C) 2008, 2009, 2012 Apple Inc. All rights reserved. |
| 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. | 4 * Copyright (C) Research In Motion Limited 2011. All rights reserved. |
| 5 * | 5 * |
| 6 * Redistribution and use in source and binary forms, with or without | 6 * Redistribution and use in source and binary forms, with or without |
| 7 * modification, are permitted provided that the following conditions | 7 * modification, are permitted provided that the following conditions |
| 8 * are met: | 8 * are met: |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 } | 61 } |
| 62 | 62 |
| 63 class EmptyPopupMenu : public PopupMenu { | 63 class EmptyPopupMenu : public PopupMenu { |
| 64 public: | 64 public: |
| 65 virtual void show(const FloatQuad&, const IntSize&, int) override { } | 65 virtual void show(const FloatQuad&, const IntSize&, int) override { } |
| 66 virtual void hide() override { } | 66 virtual void hide() override { } |
| 67 virtual void updateFromElement() override { } | 67 virtual void updateFromElement() override { } |
| 68 virtual void disconnectClient() override { } | 68 virtual void disconnectClient() override { } |
| 69 }; | 69 }; |
| 70 | 70 |
| 71 PassRefPtrWillBeRawPtr<PopupMenu> EmptyChromeClient::createPopupMenu(LocalFrame&
, PopupMenuClient*) | 71 PassRefPtrWillBeRawPtr<PopupMenu> EmptyChromeClient::openPopupMenu(LocalFrame&,
PopupMenuClient*) |
| 72 { | 72 { |
| 73 return adoptRefWillBeNoop(new EmptyPopupMenu()); | 73 return adoptRefWillBeNoop(new EmptyPopupMenu()); |
| 74 } | 74 } |
| 75 | 75 |
| 76 PassOwnPtrWillBeRawPtr<ColorChooser> EmptyChromeClient::createColorChooser(Local
Frame*, ColorChooserClient*, const Color&) | 76 PassOwnPtrWillBeRawPtr<ColorChooser> EmptyChromeClient::openColorChooser(LocalFr
ame*, ColorChooserClient*, const Color&) |
| 77 { | 77 { |
| 78 return nullptr; | 78 return nullptr; |
| 79 } | 79 } |
| 80 | 80 |
| 81 PassRefPtr<DateTimeChooser> EmptyChromeClient::openDateTimeChooser(DateTimeChoos
erClient*, const DateTimeChooserParameters&) | 81 PassRefPtr<DateTimeChooser> EmptyChromeClient::openDateTimeChooser(DateTimeChoos
erClient*, const DateTimeChooserParameters&) |
| 82 { | 82 { |
| 83 return PassRefPtr<DateTimeChooser>(); | 83 return PassRefPtr<DateTimeChooser>(); |
| 84 } | 84 } |
| 85 | 85 |
| 86 void EmptyChromeClient::openTextDataListChooser(HTMLInputElement&) | 86 void EmptyChromeClient::openTextDataListChooser(HTMLInputElement&) |
| 87 { | 87 { |
| 88 } | 88 } |
| 89 | 89 |
| 90 void EmptyChromeClient::runOpenPanel(LocalFrame*, PassRefPtr<FileChooser>) | 90 void EmptyChromeClient::openFileChooser(LocalFrame*, PassRefPtr<FileChooser>) |
| 91 { | 91 { |
| 92 } | 92 } |
| 93 | 93 |
| 94 String EmptyChromeClient::acceptLanguages() | 94 String EmptyChromeClient::acceptLanguages() |
| 95 { | 95 { |
| 96 return String(); | 96 return String(); |
| 97 } | 97 } |
| 98 | 98 |
| 99 NavigationPolicy EmptyFrameLoaderClient::decidePolicyForNavigation(const Resourc
eRequest&, DocumentLoader*, NavigationPolicy) | 99 NavigationPolicy EmptyFrameLoaderClient::decidePolicyForNavigation(const Resourc
eRequest&, DocumentLoader*, NavigationPolicy) |
| 100 { | 100 { |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 { | 146 { |
| 147 return nullptr; | 147 return nullptr; |
| 148 } | 148 } |
| 149 | 149 |
| 150 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac
heHost(WebApplicationCacheHostClient*) | 150 PassOwnPtr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicationCac
heHost(WebApplicationCacheHostClient*) |
| 151 { | 151 { |
| 152 return nullptr; | 152 return nullptr; |
| 153 } | 153 } |
| 154 | 154 |
| 155 } // namespace blink | 155 } // namespace blink |
| OLD | NEW |