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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 void hide() override { } | 66 void hide() override { } |
67 void updateFromElement(UpdateReason) override { } | 67 void updateFromElement(UpdateReason) override { } |
68 void disconnectClient() override { } | 68 void disconnectClient() override { } |
69 }; | 69 }; |
70 | 70 |
71 class EmptyFrameScheduler : public WebFrameScheduler { | 71 class EmptyFrameScheduler : public WebFrameScheduler { |
72 public: | 72 public: |
73 void setFrameVisible(bool) override { } | 73 void setFrameVisible(bool) override { } |
74 WebTaskRunner* loadingTaskRunner() override; | 74 WebTaskRunner* loadingTaskRunner() override; |
75 WebTaskRunner* timerTaskRunner() override; | 75 WebTaskRunner* timerTaskRunner() override; |
| 76 WebTaskRunner* unthrottledTaskRunner() override; |
76 }; | 77 }; |
77 | 78 |
78 WebTaskRunner* EmptyFrameScheduler::loadingTaskRunner() | 79 WebTaskRunner* EmptyFrameScheduler::loadingTaskRunner() |
79 { | 80 { |
80 return Platform::current()->currentThread()->getWebTaskRunner(); | 81 return Platform::current()->currentThread()->getWebTaskRunner(); |
81 } | 82 } |
82 | 83 |
83 WebTaskRunner* EmptyFrameScheduler::timerTaskRunner() | 84 WebTaskRunner* EmptyFrameScheduler::timerTaskRunner() |
84 { | 85 { |
85 return Platform::current()->currentThread()->getWebTaskRunner(); | 86 return Platform::current()->currentThread()->getWebTaskRunner(); |
86 } | 87 } |
87 | 88 |
| 89 WebTaskRunner* EmptyFrameScheduler::unthrottledTaskRunner() |
| 90 { |
| 91 return Platform::current()->currentThread()->getWebTaskRunner(); |
| 92 } |
| 93 |
88 PopupMenu* EmptyChromeClient::openPopupMenu(LocalFrame&, HTMLSelectElement&) | 94 PopupMenu* EmptyChromeClient::openPopupMenu(LocalFrame&, HTMLSelectElement&) |
89 { | 95 { |
90 return new EmptyPopupMenu(); | 96 return new EmptyPopupMenu(); |
91 } | 97 } |
92 | 98 |
93 ColorChooser* EmptyChromeClient::openColorChooser(LocalFrame*, ColorChooserClien
t*, const Color&) | 99 ColorChooser* EmptyChromeClient::openColorChooser(LocalFrame*, ColorChooserClien
t*, const Color&) |
94 { | 100 { |
95 return nullptr; | 101 return nullptr; |
96 } | 102 } |
97 | 103 |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
169 { | 175 { |
170 return nullptr; | 176 return nullptr; |
171 } | 177 } |
172 | 178 |
173 std::unique_ptr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicati
onCacheHost(WebApplicationCacheHostClient*) | 179 std::unique_ptr<WebApplicationCacheHost> EmptyFrameLoaderClient::createApplicati
onCacheHost(WebApplicationCacheHostClient*) |
174 { | 180 { |
175 return nullptr; | 181 return nullptr; |
176 } | 182 } |
177 | 183 |
178 } // namespace blink | 184 } // namespace blink |
OLD | NEW |