| 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 // This interface is used by RenderView to talk to the pepper plugin delegate. | 5 // This interface is used by RenderView to talk to the pepper plugin delegate. |
| 6 #ifndef CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H | 6 #ifndef CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H |
| 7 #define CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H | 7 #define CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H |
| 8 | 8 |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
| 15 #include "base/process.h" |
| 15 #include "ui/base/ime/text_input_type.h" | 16 #include "ui/base/ime/text_input_type.h" |
| 16 | 17 |
| 17 class TransportDIB; | 18 class TransportDIB; |
| 18 | 19 |
| 19 namespace gfx { | 20 namespace gfx { |
| 20 class Rect; | 21 class Rect; |
| 21 } | 22 } |
| 22 | 23 |
| 23 namespace IPC { | 24 namespace IPC { |
| 24 struct ChannelHandle; | 25 struct ChannelHandle; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 virtual void ViewInitiatedPaint() {} | 69 virtual void ViewInitiatedPaint() {} |
| 69 virtual void ViewFlushedPaint() {} | 70 virtual void ViewFlushedPaint() {} |
| 70 | 71 |
| 71 // Called by RenderView when ViewMsg_AsyncOpenFile_ACK. | 72 // Called by RenderView when ViewMsg_AsyncOpenFile_ACK. |
| 72 virtual void OnAsyncFileOpened(base::PlatformFileError error_code, | 73 virtual void OnAsyncFileOpened(base::PlatformFileError error_code, |
| 73 base::PlatformFile file, | 74 base::PlatformFile file, |
| 74 int message_id) {} | 75 int message_id) {} |
| 75 | 76 |
| 76 // Called by RenderView when ViewMsg_PpapiBrokerChannelCreated. | 77 // Called by RenderView when ViewMsg_PpapiBrokerChannelCreated. |
| 77 virtual void OnPpapiBrokerChannelCreated(int request_id, | 78 virtual void OnPpapiBrokerChannelCreated(int request_id, |
| 79 base::ProcessId broker_pid, |
| 78 const IPC::ChannelHandle& handle) {} | 80 const IPC::ChannelHandle& handle) {} |
| 79 | 81 |
| 80 // Called when we know whether permission to access the PPAPI broker was | 82 // Called when we know whether permission to access the PPAPI broker was |
| 81 // granted. | 83 // granted. |
| 82 virtual void OnPpapiBrokerPermissionResult(int request_id, bool result) {} | 84 virtual void OnPpapiBrokerPermissionResult(int request_id, bool result) {} |
| 83 | 85 |
| 84 // Notification that the render view has been focused or defocused. This | 86 // Notification that the render view has been focused or defocused. This |
| 85 // notifies all of the plugins. | 87 // notifies all of the plugins. |
| 86 virtual void OnSetFocus(bool has_focus) {} | 88 virtual void OnSetFocus(bool has_focus) {} |
| 87 | 89 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 107 // Notification that a mouse event has arrived at the render view. | 109 // Notification that a mouse event has arrived at the render view. |
| 108 virtual void WillHandleMouseEvent() {} | 110 virtual void WillHandleMouseEvent() {} |
| 109 | 111 |
| 110 private: | 112 private: |
| 111 DISALLOW_COPY_AND_ASSIGN(RenderViewPepperHelper); | 113 DISALLOW_COPY_AND_ASSIGN(RenderViewPepperHelper); |
| 112 }; | 114 }; |
| 113 | 115 |
| 114 } // namespace content | 116 } // namespace content |
| 115 | 117 |
| 116 #endif // CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H | 118 #endif // CONTENT_RENDERER_RENDER_VIEW_PEPPER_HELPER_H |
| OLD | NEW |