Restore dev branch S_TRUNK_OWNERS
[platform/framework/web/chromium-efl.git] / tizen_src / ewk / efl_integration / renderer / plugins / shadow_dom_plugin_placeholder.cc
1 // Copyright 2015 Samsung Electronics. 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 #include "renderer/plugins/shadow_dom_plugin_placeholder.h"
6
7 #include <libintl.h>
8
9 namespace {
10
11 class MissingPluginPlaceholder : public blink::WebPluginPlaceholder {
12  public:
13   // blink::WebPluginPlaceholder overrides
14   blink::WebString message() const override {
15     return blink::WebString::fromUTF8(
16         std::string(dgettext("WebKit", "IDS_WEBVIEW_BODY_PLUG_IN_MISSING")));
17   }
18 };
19
20 }  // namespace
21
22 scoped_ptr<blink::WebPluginPlaceholder>
23 CreateShadowDOMPlaceholderForMissingPlugin() {
24   return make_scoped_ptr(new MissingPluginPlaceholder);
25 }