| 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 virtual void ZoomLevelChanged() {}; | 84 virtual void ZoomLevelChanged() {}; |
| 85 virtual void DidChangeScrollOffset(blink::WebFrame* frame) {} | 85 virtual void DidChangeScrollOffset(blink::WebFrame* frame) {} |
| 86 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} | 86 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} |
| 87 virtual void DidCommitCompositorFrame() {} | 87 virtual void DidCommitCompositorFrame() {} |
| 88 virtual void DidUpdateLayout() {} | 88 virtual void DidUpdateLayout() {} |
| 89 | 89 |
| 90 // These match the RenderView methods. | 90 // These match the RenderView methods. |
| 91 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 91 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
| 92 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 92 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
| 93 | 93 |
| 94 // This matches the RenderWidget method. |
| 95 virtual void ProcessingUserGestureEvent() {} |
| 96 |
| 94 // Called when we receive a console message from WebKit for which we requested | 97 // Called when we receive a console message from WebKit for which we requested |
| 95 // extra details (like the stack trace). |message| is the error message, | 98 // extra details (like the stack trace). |message| is the error message, |
| 96 // |source| is the WebKit-reported source of the error (either external or | 99 // |source| is the WebKit-reported source of the error (either external or |
| 97 // internal), and |stack_trace| is the stack trace of the error in a | 100 // internal), and |stack_trace| is the stack trace of the error in a |
| 98 // human-readable format (each frame is formatted as | 101 // human-readable format (each frame is formatted as |
| 99 // "\n at function_name (source:line_number:column_number)"). | 102 // "\n at function_name (source:line_number:column_number)"). |
| 100 virtual void DetailedConsoleMessageAdded(const base::string16& message, | 103 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
| 101 const base::string16& source, | 104 const base::string16& source, |
| 102 const base::string16& stack_trace, | 105 const base::string16& stack_trace, |
| 103 int32 line_number, | 106 int32 line_number, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 133 RenderView* render_view_; | 136 RenderView* render_view_; |
| 134 // The routing ID of the associated RenderView. | 137 // The routing ID of the associated RenderView. |
| 135 int routing_id_; | 138 int routing_id_; |
| 136 | 139 |
| 137 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 140 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 138 }; | 141 }; |
| 139 | 142 |
| 140 } // namespace content | 143 } // namespace content |
| 141 | 144 |
| 142 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 145 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |