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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 virtual void PrintPage(WebKit::WebFrame* frame, bool user_initiated) {} | 78 virtual void PrintPage(WebKit::WebFrame* frame, bool user_initiated) {} |
79 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} | 79 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} |
80 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, | 80 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, |
81 WebKit::WebMediaPlayerClient* client) {} | 81 WebKit::WebMediaPlayerClient* client) {} |
82 virtual void ZoomLevelChanged() {}; | 82 virtual void ZoomLevelChanged() {}; |
83 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} | 83 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} |
84 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} | 84 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} |
85 virtual void DidRequestShowContextMenu( | 85 virtual void DidRequestShowContextMenu( |
86 WebKit::WebFrame* frame, | 86 WebKit::WebFrame* frame, |
87 const WebKit::WebContextMenuData& data) {} | 87 const WebKit::WebContextMenuData& data) {} |
| 88 virtual void DidCommitCompositorFrame() {} |
88 | 89 |
89 // These match the RenderView methods. | 90 // These match the RenderView methods. |
90 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 91 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
91 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 92 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
92 virtual void DidHandleGestureEvent(const WebKit::WebGestureEvent& event) {} | 93 virtual void DidHandleGestureEvent(const WebKit::WebGestureEvent& event) {} |
93 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} | 94 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} |
94 | 95 |
95 // These match incoming IPCs. | 96 // These match incoming IPCs. |
96 virtual void Navigate(const GURL& url) {} | 97 virtual void Navigate(const GURL& url) {} |
97 virtual void ClosePage() {} | 98 virtual void ClosePage() {} |
(...skipping 21 matching lines...) Expand all Loading... |
119 RenderView* render_view_; | 120 RenderView* render_view_; |
120 // The routing ID of the associated RenderView. | 121 // The routing ID of the associated RenderView. |
121 int routing_id_; | 122 int routing_id_; |
122 | 123 |
123 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 124 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
124 }; | 125 }; |
125 | 126 |
126 } // namespace content | 127 } // namespace content |
127 | 128 |
128 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 129 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |