| 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 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 6 #define CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 #include "ui/base/ime/text_input_type.h" | 65 #include "ui/base/ime/text_input_type.h" |
| 66 #include "ui/gfx/geometry/rect.h" | 66 #include "ui/gfx/geometry/rect.h" |
| 67 #include "url/gurl.h" | 67 #include "url/gurl.h" |
| 68 #include "v8/include/v8.h" | 68 #include "v8/include/v8.h" |
| 69 | 69 |
| 70 struct PP_Point; | 70 struct PP_Point; |
| 71 | 71 |
| 72 class SkBitmap; | 72 class SkBitmap; |
| 73 | 73 |
| 74 namespace blink { | 74 namespace blink { |
| 75 class WebCoalescedInputEvent; |
| 75 class WebInputEvent; | 76 class WebInputEvent; |
| 76 class WebLayer; | 77 class WebLayer; |
| 77 class WebMouseEvent; | 78 class WebMouseEvent; |
| 78 class WebPluginContainer; | 79 class WebPluginContainer; |
| 79 class WebURLResponse; | 80 class WebURLResponse; |
| 80 struct WebCompositionUnderline; | 81 struct WebCompositionUnderline; |
| 81 struct WebCursorInfo; | 82 struct WebCursorInfo; |
| 82 struct WebURLError; | 83 struct WebURLError; |
| 83 struct WebPrintParams; | 84 struct WebPrintParams; |
| 84 } // namespace blink | 85 } // namespace blink |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 // PPB_Instance and PPB_Instance_Private implementation. | 220 // PPB_Instance and PPB_Instance_Private implementation. |
| 220 bool full_frame() const { return full_frame_; } | 221 bool full_frame() const { return full_frame_; } |
| 221 const ppapi::ViewData& view_data() const { return view_data_; } | 222 const ppapi::ViewData& view_data() const { return view_data_; } |
| 222 | 223 |
| 223 // PPP_Instance and PPP_Instance_Private. | 224 // PPP_Instance and PPP_Instance_Private. |
| 224 bool Initialize(const std::vector<std::string>& arg_names, | 225 bool Initialize(const std::vector<std::string>& arg_names, |
| 225 const std::vector<std::string>& arg_values, | 226 const std::vector<std::string>& arg_values, |
| 226 bool full_frame, | 227 bool full_frame, |
| 227 std::unique_ptr<PluginInstanceThrottlerImpl> throttler); | 228 std::unique_ptr<PluginInstanceThrottlerImpl> throttler); |
| 228 bool HandleDocumentLoad(const blink::WebURLResponse& response); | 229 bool HandleDocumentLoad(const blink::WebURLResponse& response); |
| 230 bool HandleCoalescedInputEvent(const blink::WebCoalescedInputEvent& event, |
| 231 blink::WebCursorInfo* cursor_info); |
| 229 bool HandleInputEvent(const blink::WebInputEvent& event, | 232 bool HandleInputEvent(const blink::WebInputEvent& event, |
| 230 blink::WebCursorInfo* cursor_info); | 233 blink::WebCursorInfo* cursor_info); |
| 231 PP_Var GetInstanceObject(v8::Isolate* isolate); | 234 PP_Var GetInstanceObject(v8::Isolate* isolate); |
| 232 void ViewChanged(const gfx::Rect& window, | 235 void ViewChanged(const gfx::Rect& window, |
| 233 const gfx::Rect& clip, | 236 const gfx::Rect& clip, |
| 234 const gfx::Rect& unobscured); | 237 const gfx::Rect& unobscured); |
| 235 | 238 |
| 236 // Handlers for composition events. | 239 // Handlers for composition events. |
| 237 bool HandleCompositionStart(const base::string16& text); | 240 bool HandleCompositionStart(const base::string16& text); |
| 238 bool HandleCompositionUpdate( | 241 bool HandleCompositionUpdate( |
| (...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 985 // view change events. | 988 // view change events. |
| 986 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; | 989 base::WeakPtrFactory<PepperPluginInstanceImpl> view_change_weak_ptr_factory_; |
| 987 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; | 990 base::WeakPtrFactory<PepperPluginInstanceImpl> weak_factory_; |
| 988 | 991 |
| 989 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); | 992 DISALLOW_COPY_AND_ASSIGN(PepperPluginInstanceImpl); |
| 990 }; | 993 }; |
| 991 | 994 |
| 992 } // namespace content | 995 } // namespace content |
| 993 | 996 |
| 994 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ | 997 #endif // CONTENT_RENDERER_PEPPER_PEPPER_PLUGIN_INSTANCE_IMPL_H_ |
| OLD | NEW |