| 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 class EmptyFrameScheduler : public WebFrameScheduler { | 72 class EmptyFrameScheduler : public WebFrameScheduler { |
| 73 public: | 73 public: |
| 74 EmptyFrameScheduler() { DCHECK(IsMainThread()); } | 74 EmptyFrameScheduler() { DCHECK(IsMainThread()); } |
| 75 void SetFrameVisible(bool) override {} | 75 void SetFrameVisible(bool) override {} |
| 76 RefPtr<WebTaskRunner> LoadingTaskRunner() override; | 76 RefPtr<WebTaskRunner> LoadingTaskRunner() override; |
| 77 RefPtr<WebTaskRunner> TimerTaskRunner() override; | 77 RefPtr<WebTaskRunner> TimerTaskRunner() override; |
| 78 RefPtr<WebTaskRunner> UnthrottledTaskRunner() override; | 78 RefPtr<WebTaskRunner> UnthrottledTaskRunner() override; |
| 79 RefPtr<WebTaskRunner> SuspendableTaskRunner() override; | 79 RefPtr<WebTaskRunner> SuspendableTaskRunner() override; |
| 80 RefPtr<WebTaskRunner> CompositorTaskRunner() override; |
| 80 }; | 81 }; |
| 81 | 82 |
| 82 RefPtr<WebTaskRunner> EmptyFrameScheduler::LoadingTaskRunner() { | 83 RefPtr<WebTaskRunner> EmptyFrameScheduler::LoadingTaskRunner() { |
| 83 return Platform::Current()->MainThread()->GetWebTaskRunner(); | 84 return Platform::Current()->MainThread()->GetWebTaskRunner(); |
| 84 } | 85 } |
| 85 | 86 |
| 86 RefPtr<WebTaskRunner> EmptyFrameScheduler::TimerTaskRunner() { | 87 RefPtr<WebTaskRunner> EmptyFrameScheduler::TimerTaskRunner() { |
| 87 return Platform::Current()->MainThread()->GetWebTaskRunner(); | 88 return Platform::Current()->MainThread()->GetWebTaskRunner(); |
| 88 } | 89 } |
| 89 | 90 |
| 90 RefPtr<WebTaskRunner> EmptyFrameScheduler::UnthrottledTaskRunner() { | 91 RefPtr<WebTaskRunner> EmptyFrameScheduler::UnthrottledTaskRunner() { |
| 91 return Platform::Current()->MainThread()->GetWebTaskRunner(); | 92 return Platform::Current()->MainThread()->GetWebTaskRunner(); |
| 92 } | 93 } |
| 93 | 94 |
| 94 RefPtr<WebTaskRunner> EmptyFrameScheduler::SuspendableTaskRunner() { | 95 RefPtr<WebTaskRunner> EmptyFrameScheduler::SuspendableTaskRunner() { |
| 95 return Platform::Current()->MainThread()->GetWebTaskRunner(); | 96 return Platform::Current()->MainThread()->GetWebTaskRunner(); |
| 96 } | 97 } |
| 97 | 98 |
| 99 RefPtr<WebTaskRunner> EmptyFrameScheduler::CompositorTaskRunner() { |
| 100 return Platform::Current()->MainThread()->GetWebTaskRunner(); |
| 101 } |
| 102 |
| 98 PopupMenu* EmptyChromeClient::OpenPopupMenu(LocalFrame&, HTMLSelectElement&) { | 103 PopupMenu* EmptyChromeClient::OpenPopupMenu(LocalFrame&, HTMLSelectElement&) { |
| 99 return new EmptyPopupMenu(); | 104 return new EmptyPopupMenu(); |
| 100 } | 105 } |
| 101 | 106 |
| 102 ColorChooser* EmptyChromeClient::OpenColorChooser(LocalFrame*, | 107 ColorChooser* EmptyChromeClient::OpenColorChooser(LocalFrame*, |
| 103 ColorChooserClient*, | 108 ColorChooserClient*, |
| 104 const Color&) { | 109 const Color&) { |
| 105 return nullptr; | 110 return nullptr; |
| 106 } | 111 } |
| 107 | 112 |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 212 |
| 208 std::unique_ptr<WebApplicationCacheHost> | 213 std::unique_ptr<WebApplicationCacheHost> |
| 209 EmptyLocalFrameClient::CreateApplicationCacheHost( | 214 EmptyLocalFrameClient::CreateApplicationCacheHost( |
| 210 WebApplicationCacheHostClient*) { | 215 WebApplicationCacheHostClient*) { |
| 211 return nullptr; | 216 return nullptr; |
| 212 } | 217 } |
| 213 | 218 |
| 214 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; | 219 EmptyRemoteFrameClient::EmptyRemoteFrameClient() = default; |
| 215 | 220 |
| 216 } // namespace blink | 221 } // namespace blink |
| OLD | NEW |