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

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

Issue 10795051: Implement asynchronous interface/plumbing for GetDefaultPrintSettings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 5 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
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 1985 matching lines...) Expand 10 before | Expand all | Expand 10 after
1996 return PP_OK_COMPLETIONPENDING; 1996 return PP_OK_COMPLETIONPENDING;
1997 } else { 1997 } else {
1998 return PP_ERROR_FAILED; 1998 return PP_ERROR_FAILED;
1999 } 1999 }
2000 } 2000 }
2001 2001
2002 void PluginInstance::UnlockMouse(PP_Instance instance) { 2002 void PluginInstance::UnlockMouse(PP_Instance instance) {
2003 delegate()->UnlockMouse(this); 2003 delegate()->UnlockMouse(this);
2004 } 2004 }
2005 2005
2006 PP_Bool PluginInstance::GetDefaultPrintSettings( 2006 int32_t PluginInstance::GetDefaultPrintSettings(
2007 PP_Instance instance, 2007 PP_Instance instance,
2008 PP_PrintSettings_Dev* print_settings) { 2008 PP_PrintSettings_Dev* print_settings,
2009 scoped_refptr< ::ppapi::TrackedCallback> callback) {
2009 // TODO(raymes): Not implemented for in-process. 2010 // TODO(raymes): Not implemented for in-process.
2010 return PP_FALSE; 2011 return PP_ERROR_NOTSUPPORTED;
2011 } 2012 }
2012 2013
2013 void PluginInstance::SetTextInputType(PP_Instance instance, 2014 void PluginInstance::SetTextInputType(PP_Instance instance,
2014 PP_TextInput_Type type) { 2015 PP_TextInput_Type type) {
2015 int itype = type; 2016 int itype = type;
2016 if (itype < 0 || itype > ui::TEXT_INPUT_TYPE_URL) 2017 if (itype < 0 || itype > ui::TEXT_INPUT_TYPE_URL)
2017 itype = ui::TEXT_INPUT_TYPE_NONE; 2018 itype = ui::TEXT_INPUT_TYPE_NONE;
2018 text_input_type_ = static_cast<ui::TextInputType>(itype); 2019 text_input_type_ = static_cast<ui::TextInputType>(itype);
2019 delegate()->PluginTextInputTypeChanged(this); 2020 delegate()->PluginTextInputTypeChanged(this);
2020 } 2021 }
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
2224 screen_size_for_fullscreen_ = gfx::Size(); 2225 screen_size_for_fullscreen_ = gfx::Size();
2225 WebElement element = container_->element(); 2226 WebElement element = container_->element();
2226 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); 2227 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_);
2227 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); 2228 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_);
2228 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); 2229 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_);
2229 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); 2230 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_);
2230 } 2231 }
2231 2232
2232 } // namespace ppapi 2233 } // namespace ppapi
2233 } // namespace webkit 2234 } // namespace webkit
OLDNEW
« ppapi/cpp/dev/printing_dev.cc ('K') | « webkit/plugins/ppapi/ppapi_plugin_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698