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 WebKit::WebFrame* frame, | 84 WebKit::WebFrame* frame, |
85 const WebKit::WebContextMenuData& data) {} | 85 const WebKit::WebContextMenuData& data) {} |
86 virtual void DidCommitCompositorFrame() {} | 86 virtual void DidCommitCompositorFrame() {} |
87 | 87 |
88 // These match the RenderView methods. | 88 // These match the RenderView methods. |
89 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 89 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
90 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 90 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
91 virtual void DidHandleGestureEvent(const WebKit::WebGestureEvent& event) {} | 91 virtual void DidHandleGestureEvent(const WebKit::WebGestureEvent& event) {} |
92 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} | 92 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} |
93 | 93 |
| 94 // 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, |
| 96 // |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 |
| 98 // human-readable format (each frame is formatted as |
| 99 // "\n at function_name (source:line_number:column_number)"). |
| 100 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
| 101 const base::string16& source, |
| 102 const base::string16& stack_trace, |
| 103 int32 line_number, |
| 104 int32 severity_level) {} |
| 105 |
94 // These match incoming IPCs. | 106 // These match incoming IPCs. |
95 virtual void Navigate(const GURL& url) {} | 107 virtual void Navigate(const GURL& url) {} |
96 virtual void ClosePage() {} | 108 virtual void ClosePage() {} |
97 virtual void OrientationChangeEvent(int orientation) {} | 109 virtual void OrientationChangeEvent(int orientation) {} |
98 | 110 |
99 // IPC::Listener implementation. | 111 // IPC::Listener implementation. |
100 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 112 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
101 | 113 |
102 // IPC::Sender implementation. | 114 // IPC::Sender implementation. |
103 virtual bool Send(IPC::Message* message) OVERRIDE; | 115 virtual bool Send(IPC::Message* message) OVERRIDE; |
(...skipping 15 matching lines...) Expand all Loading... |
119 RenderView* render_view_; | 131 RenderView* render_view_; |
120 // The routing ID of the associated RenderView. | 132 // The routing ID of the associated RenderView. |
121 int routing_id_; | 133 int routing_id_; |
122 | 134 |
123 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 135 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
124 }; | 136 }; |
125 | 137 |
126 } // namespace content | 138 } // namespace content |
127 | 139 |
128 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 140 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |