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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 81 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
82 virtual void WillCreateMediaPlayer(blink::WebFrame* frame, | 82 virtual void WillCreateMediaPlayer(blink::WebFrame* frame, |
83 blink::WebMediaPlayerClient* client) {} | 83 blink::WebMediaPlayerClient* client) {} |
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 DidHandleKeyEvent() {} |
91 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 92 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
92 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 93 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
93 | 94 |
94 // Called when we receive a console message from WebKit for which we requested | 95 // 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 // 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 // |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 // internal), and |stack_trace| is the stack trace of the error in a |
98 // human-readable format (each frame is formatted as | 99 // human-readable format (each frame is formatted as |
99 // "\n at function_name (source:line_number:column_number)"). | 100 // "\n at function_name (source:line_number:column_number)"). |
100 virtual void DetailedConsoleMessageAdded(const base::string16& message, | 101 virtual void DetailedConsoleMessageAdded(const base::string16& message, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 RenderView* render_view_; | 134 RenderView* render_view_; |
134 // The routing ID of the associated RenderView. | 135 // The routing ID of the associated RenderView. |
135 int routing_id_; | 136 int routing_id_; |
136 | 137 |
137 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 138 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
138 }; | 139 }; |
139 | 140 |
140 } // namespace content | 141 } // namespace content |
141 | 142 |
142 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 143 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |