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

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

Issue 10826026: Add a printing resource (as a new style resource) to fetch the default print settings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 3 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') | no next file » | 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 2417 matching lines...) Expand 10 before | Expand all | Expand 10 after
2428 2428
2429 // Either mouselock succeeded or a Flash fullscreen is pending. 2429 // Either mouselock succeeded or a Flash fullscreen is pending.
2430 lock_mouse_callback_ = callback; 2430 lock_mouse_callback_ = callback;
2431 return PP_OK_COMPLETIONPENDING; 2431 return PP_OK_COMPLETIONPENDING;
2432 } 2432 }
2433 2433
2434 void PluginInstance::UnlockMouse(PP_Instance instance) { 2434 void PluginInstance::UnlockMouse(PP_Instance instance) {
2435 delegate()->UnlockMouse(this); 2435 delegate()->UnlockMouse(this);
2436 } 2436 }
2437 2437
2438 PP_Bool PluginInstance::GetDefaultPrintSettings(
2439 PP_Instance instance,
2440 PP_PrintSettings_Dev* print_settings) {
2441 // TODO(raymes): Not implemented for in-process.
2442 return PP_FALSE;
2443 }
2444
2445 void PluginInstance::SetTextInputType(PP_Instance instance, 2438 void PluginInstance::SetTextInputType(PP_Instance instance,
2446 PP_TextInput_Type type) { 2439 PP_TextInput_Type type) {
2447 int itype = type; 2440 int itype = type;
2448 if (itype < 0 || itype > ui::TEXT_INPUT_TYPE_URL) 2441 if (itype < 0 || itype > ui::TEXT_INPUT_TYPE_URL)
2449 itype = ui::TEXT_INPUT_TYPE_NONE; 2442 itype = ui::TEXT_INPUT_TYPE_NONE;
2450 text_input_type_ = static_cast<ui::TextInputType>(itype); 2443 text_input_type_ = static_cast<ui::TextInputType>(itype);
2451 delegate()->PluginTextInputTypeChanged(this); 2444 delegate()->PluginTextInputTypeChanged(this);
2452 } 2445 }
2453 2446
2454 void PluginInstance::UpdateCaretPosition(PP_Instance instance, 2447 void PluginInstance::UpdateCaretPosition(PP_Instance instance,
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
2665 screen_size_for_fullscreen_ = gfx::Size(); 2658 screen_size_for_fullscreen_ = gfx::Size();
2666 WebElement element = container_->element(); 2659 WebElement element = container_->element();
2667 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); 2660 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_);
2668 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); 2661 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_);
2669 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); 2662 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_);
2670 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); 2663 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_);
2671 } 2664 }
2672 2665
2673 } // namespace ppapi 2666 } // namespace ppapi
2674 } // namespace webkit 2667 } // namespace webkit
OLDNEW
« no previous file with comments | « 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