Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_FONT_ACCESS_WEB_FONT_ACCESS_IMPL_H_ | |
| 6 #define CONTENT_FONT_ACCESS_WEB_FONT_ACCESS_IMPL_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "content/common/content_export.h" | |
| 10 #include "content/common/font_access/font_access_service.mojom.h" | |
| 11 #include "mojo/public/cpp/bindings/lib/buffer.h" | |
| 12 #include "third_party/WebKit/public/platform/modules/font_access/WebFontAccess.h " | |
| 13 | |
| 14 | |
| 15 namespace content { | |
| 16 | |
| 17 class CONTENT_EXPORT WebFontAccessImpl | |
| 18 : NON_EXPORTED_BASE(public blink::WebFontAccess) { | |
| 19 public: | |
| 20 explicit WebFontAccessImpl(); | |
|
mlamouri (slow - plz ping)
2016/01/26 17:17:11
no need for `explicit`
Daniel Nishi
2016/01/26 18:36:10
Done.
| |
| 21 ~WebFontAccessImpl() override; | |
| 22 | |
| 23 void getFonts(blink::FontAccessCallbacks*) override; | |
| 24 void getFontWebData(const blink::WebString&, | |
| 25 const blink::WebString&, | |
| 26 blink::FontDataCallbacks*) override; | |
| 27 | |
| 28 private: | |
| 29 void FontListHasLoaded(scoped_ptr<blink::FontAccessCallbacks> callbacks, | |
| 30 mojo::Array<FontDescriptionPtr> fonts); | |
| 31 void FontDataHasLoaded(scoped_ptr<blink::FontDataCallbacks> callbacks, | |
| 32 mojo::ScopedSharedBufferHandle handle, | |
| 33 uint64_t size); | |
| 34 | |
| 35 FontAccessServicePtr& GetService(); | |
| 36 | |
| 37 FontAccessServicePtr provider_; | |
| 38 | |
| 39 DISALLOW_COPY_AND_ASSIGN(WebFontAccessImpl); | |
| 40 }; | |
| 41 | |
| 42 } // namespace content | |
| 43 | |
| 44 #endif // CONTENT_FONT_ACCESS_WEB_FONT_ACCESS_IMPL_H_ | |
| OLD | NEW |