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_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 6 #define CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
87 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} | 87 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} |
88 virtual void DidRequestShowContextMenu( | 88 virtual void DidRequestShowContextMenu( |
89 WebKit::WebFrame* frame, | 89 WebKit::WebFrame* frame, |
90 const WebKit::WebContextMenuData& data) {} | 90 const WebKit::WebContextMenuData& data) {} |
91 virtual void DidCommitCompositorFrame() {} | 91 virtual void DidCommitCompositorFrame() {} |
92 virtual void DidUpdateLayout() {} | 92 virtual void DidUpdateLayout() {} |
93 | 93 |
94 // These match the RenderView methods. | 94 // These match the RenderView methods. |
95 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 95 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
96 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 96 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
| 97 virtual void DidHandleGestureEvent(const WebKit::WebGestureEvent& event) {} |
97 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} | 98 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} |
98 | 99 |
99 // Called when we receive a console message from WebKit for which we requested | 100 // Called when we receive a console message from WebKit for which we requested |
100 // extra details (like the stack trace). |message| is the error message, | 101 // extra details (like the stack trace). |message| is the error message, |
101 // |source| is the WebKit-reported source of the error (either external or | 102 // |source| is the WebKit-reported source of the error (either external or |
102 // internal), and |stack_trace| is the stack trace of the error in a | 103 // internal), and |stack_trace| is the stack trace of the error in a |
103 // human-readable format (each frame is formatted as | 104 // human-readable format (each frame is formatted as |
104 // "\n at function_name (source:line_number:column_number)"). | 105 // "\n at function_name (source:line_number:column_number)"). |
105 virtual void DetailedConsoleMessageAdded(const base::string16& message, | 106 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
106 const base::string16& source, | 107 const base::string16& source, |
(...skipping 29 matching lines...) Expand all Loading... |
136 RenderView* render_view_; | 137 RenderView* render_view_; |
137 // The routing ID of the associated RenderView. | 138 // The routing ID of the associated RenderView. |
138 int routing_id_; | 139 int routing_id_; |
139 | 140 |
140 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 141 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
141 }; | 142 }; |
142 | 143 |
143 } // namespace content | 144 } // namespace content |
144 | 145 |
145 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 146 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |