| 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 1951 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1962 return PP_OK_COMPLETIONPENDING; | 1962 return PP_OK_COMPLETIONPENDING; |
| 1963 } else { | 1963 } else { |
| 1964 return PP_ERROR_FAILED; | 1964 return PP_ERROR_FAILED; |
| 1965 } | 1965 } |
| 1966 } | 1966 } |
| 1967 | 1967 |
| 1968 void PluginInstance::UnlockMouse(PP_Instance instance) { | 1968 void PluginInstance::UnlockMouse(PP_Instance instance) { |
| 1969 delegate()->UnlockMouse(this); | 1969 delegate()->UnlockMouse(this); |
| 1970 } | 1970 } |
| 1971 | 1971 |
| 1972 PP_Bool PluginInstance::GetDefaultPrintSettings( |
| 1973 PP_Instance instance, |
| 1974 PP_PrintSettings_Dev* print_settings) { |
| 1975 // TODO(raymes): Not implemented for in-process. |
| 1976 return PP_FALSE; |
| 1977 } |
| 1978 |
| 1972 void PluginInstance::SetTextInputType(PP_Instance instance, | 1979 void PluginInstance::SetTextInputType(PP_Instance instance, |
| 1973 PP_TextInput_Type type) { | 1980 PP_TextInput_Type type) { |
| 1974 int itype = type; | 1981 int itype = type; |
| 1975 if (itype < 0 || itype > ui::TEXT_INPUT_TYPE_URL) | 1982 if (itype < 0 || itype > ui::TEXT_INPUT_TYPE_URL) |
| 1976 itype = ui::TEXT_INPUT_TYPE_NONE; | 1983 itype = ui::TEXT_INPUT_TYPE_NONE; |
| 1977 text_input_type_ = static_cast<ui::TextInputType>(itype); | 1984 text_input_type_ = static_cast<ui::TextInputType>(itype); |
| 1978 delegate()->PluginTextInputTypeChanged(this); | 1985 delegate()->PluginTextInputTypeChanged(this); |
| 1979 } | 1986 } |
| 1980 | 1987 |
| 1981 void PluginInstance::UpdateCaretPosition(PP_Instance instance, | 1988 void PluginInstance::UpdateCaretPosition(PP_Instance instance, |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2137 screen_size_for_fullscreen_ = gfx::Size(); | 2144 screen_size_for_fullscreen_ = gfx::Size(); |
| 2138 WebElement element = container_->element(); | 2145 WebElement element = container_->element(); |
| 2139 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); | 2146 element.setAttribute(WebString::fromUTF8(kWidth), width_before_fullscreen_); |
| 2140 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); | 2147 element.setAttribute(WebString::fromUTF8(kHeight), height_before_fullscreen_); |
| 2141 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); | 2148 element.setAttribute(WebString::fromUTF8(kBorder), border_before_fullscreen_); |
| 2142 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); | 2149 element.setAttribute(WebString::fromUTF8(kStyle), style_before_fullscreen_); |
| 2143 } | 2150 } |
| 2144 | 2151 |
| 2145 } // namespace ppapi | 2152 } // namespace ppapi |
| 2146 } // namespace webkit | 2153 } // namespace webkit |
| OLD | NEW |