Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1175)

Side by Side Diff: webkit/plugins/ppapi/ppapi_plugin_instance.cc

Issue 9360045: Rename PPB_Font to PPB_BrowserFont_Trusted. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.h ('k') | webkit/plugins/ppapi/ppb_font_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « webkit/plugins/ppapi/ppapi_plugin_instance.h ('k') | webkit/plugins/ppapi/ppb_font_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698