OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" | 5 #include "webkit/plugins/ppapi/ppapi_plugin_instance.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/debug/trace_event.h" | 8 #include "base/debug/trace_event.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/linked_ptr.h" | 10 #include "base/memory/linked_ptr.h" |
(...skipping 1839 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1850 PP_Var ret = NPVariantToPPVar(this, &result); | 1850 PP_Var ret = NPVariantToPPVar(this, &result); |
1851 WebBindings::releaseVariantValue(&result); | 1851 WebBindings::releaseVariantValue(&result); |
1852 return ret; | 1852 return ret; |
1853 } | 1853 } |
1854 | 1854 |
1855 PP_Var PluginInstance::GetDefaultCharSet(PP_Instance instance) { | 1855 PP_Var PluginInstance::GetDefaultCharSet(PP_Instance instance) { |
1856 std::string encoding = delegate()->GetDefaultEncoding(); | 1856 std::string encoding = delegate()->GetDefaultEncoding(); |
1857 return StringVar::StringToPPVar(encoding); | 1857 return StringVar::StringToPPVar(encoding); |
1858 } | 1858 } |
1859 | 1859 |
| 1860 PP_Var PluginInstance::GetFontFamilies(PP_Instance instance) { |
| 1861 // No in-process implementation. |
| 1862 return PP_MakeUndefined(); |
| 1863 } |
| 1864 |
1860 void PluginInstance::NumberOfFindResultsChanged(PP_Instance instance, | 1865 void PluginInstance::NumberOfFindResultsChanged(PP_Instance instance, |
1861 int32_t total, | 1866 int32_t total, |
1862 PP_Bool final_result) { | 1867 PP_Bool final_result) { |
1863 DCHECK_NE(find_identifier_, -1); | 1868 DCHECK_NE(find_identifier_, -1); |
1864 delegate_->NumberOfFindResultsChanged(find_identifier_, total, | 1869 delegate_->NumberOfFindResultsChanged(find_identifier_, total, |
1865 PP_ToBool(final_result)); | 1870 PP_ToBool(final_result)); |
1866 } | 1871 } |
1867 | 1872 |
1868 void PluginInstance::SelectedFindResultChanged(PP_Instance instance, | 1873 void PluginInstance::SelectedFindResultChanged(PP_Instance instance, |
1869 int32_t index) { | 1874 int32_t index) { |
(...skipping 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2087 screen_size_for_fullscreen_ = gfx::Size(); | 2092 screen_size_for_fullscreen_ = gfx::Size(); |
2088 WebElement element = container_->element(); | 2093 WebElement element = container_->element(); |
2089 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2094 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
2090 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2095 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
2091 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2096 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
2092 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2097 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
2093 } | 2098 } |
2094 | 2099 |
2095 } // namespace ppapi | 2100 } // namespace ppapi |
2096 } // namespace webkit | 2101 } // namespace webkit |
OLD | NEW |