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