| 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 ZoomLevelChanged() {}; | 87 virtual void ZoomLevelChanged() {}; |
| 88 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {} | 88 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {} |
| 89 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} | 89 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} |
| 90 virtual void DidCommitCompositorFrame() {} | 90 virtual void DidCommitCompositorFrame() {} |
| 91 virtual void DidUpdateLayout() {} | 91 virtual void DidUpdateLayout() {} |
| 92 | 92 |
| 93 // These match the RenderView methods. | 93 // These match the RenderView methods. |
| 94 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 94 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
| 95 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 95 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
| 96 | 96 |
| 97 // This matches the RenderWidget method. | |
| 98 virtual void WillProcessUserGesture() {} | |
| 99 | |
| 100 // 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 |
| 101 // extra details (like the stack trace). |message| is the error message, | 98 // extra details (like the stack trace). |message| is the error message, |
| 102 // |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 |
| 103 // 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 |
| 104 // human-readable format (each frame is formatted as | 101 // human-readable format (each frame is formatted as |
| 105 // "\n at function_name (source:line_number:column_number)"). | 102 // "\n at function_name (source:line_number:column_number)"). |
| 106 virtual void DetailedConsoleMessageAdded(const base::string16& message, | 103 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
| 107 const base::string16& source, | 104 const base::string16& source, |
| 108 const base::string16& stack_trace, | 105 const base::string16& stack_trace, |
| 109 int32 line_number, | 106 int32 line_number, |
| (...skipping 29 matching lines...) Expand all Loading... |
| 139 RenderView* render_view_; | 136 RenderView* render_view_; |
| 140 // The routing ID of the associated RenderView. | 137 // The routing ID of the associated RenderView. |
| 141 int routing_id_; | 138 int routing_id_; |
| 142 | 139 |
| 143 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 140 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 144 }; | 141 }; |
| 145 | 142 |
| 146 } // namespace content | 143 } // namespace content |
| 147 | 144 |
| 148 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 145 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |