| 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 13 matching lines...) Expand all Loading... |
| 24 namespace blink { | 24 namespace blink { |
| 25 class WebDataSource; | 25 class WebDataSource; |
| 26 class WebFrame; | 26 class WebFrame; |
| 27 class WebFormElement; | 27 class WebFormElement; |
| 28 class WebGestureEvent; | 28 class WebGestureEvent; |
| 29 class WebMediaPlayerClient; | 29 class WebMediaPlayerClient; |
| 30 class WebMouseEvent; | 30 class WebMouseEvent; |
| 31 class WebNode; | 31 class WebNode; |
| 32 class WebTouchEvent; | 32 class WebTouchEvent; |
| 33 class WebURL; | 33 class WebURL; |
| 34 struct WebContextMenuData; | |
| 35 struct WebURLError; | 34 struct WebURLError; |
| 36 } | 35 } |
| 37 | 36 |
| 38 namespace content { | 37 namespace content { |
| 39 | 38 |
| 40 class RendererPpapiHost; | 39 class RendererPpapiHost; |
| 41 class RenderView; | 40 class RenderView; |
| 42 class RenderViewImpl; | 41 class RenderViewImpl; |
| 43 | 42 |
| 44 // Base class for objects that want to filter incoming IPCs, and also get | 43 // Base class for objects that want to filter incoming IPCs, and also get |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 const blink::WebFormElement& form) {} | 77 const blink::WebFormElement& form) {} |
| 79 virtual void DidCreateDataSource(blink::WebFrame* frame, | 78 virtual void DidCreateDataSource(blink::WebFrame* frame, |
| 80 blink::WebDataSource* ds) {} | 79 blink::WebDataSource* ds) {} |
| 81 virtual void PrintPage(blink::WebFrame* frame, bool user_initiated) {} | 80 virtual void PrintPage(blink::WebFrame* frame, bool user_initiated) {} |
| 82 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 81 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
| 83 virtual void WillCreateMediaPlayer(blink::WebFrame* frame, | 82 virtual void WillCreateMediaPlayer(blink::WebFrame* frame, |
| 84 blink::WebMediaPlayerClient* client) {} | 83 blink::WebMediaPlayerClient* client) {} |
| 85 virtual void ZoomLevelChanged() {}; | 84 virtual void ZoomLevelChanged() {}; |
| 86 virtual void DidChangeScrollOffset(blink::WebFrame* frame) {} | 85 virtual void DidChangeScrollOffset(blink::WebFrame* frame) {} |
| 87 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} | 86 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} |
| 88 virtual void DidRequestShowContextMenu( | |
| 89 blink::WebFrame* frame, | |
| 90 const blink::WebContextMenuData& data) {} | |
| 91 virtual void DidCommitCompositorFrame() {} | 87 virtual void DidCommitCompositorFrame() {} |
| 92 virtual void DidUpdateLayout() {} | 88 virtual void DidUpdateLayout() {} |
| 93 | 89 |
| 94 // These match the RenderView methods. | 90 // These match the RenderView methods. |
| 95 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 91 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
| 96 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 92 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
| 97 | 93 |
| 98 // Called when we receive a console message from WebKit for which we requested | 94 // Called when we receive a console message from WebKit for which we requested |
| 99 // extra details (like the stack trace). |message| is the error message, | 95 // extra details (like the stack trace). |message| is the error message, |
| 100 // |source| is the WebKit-reported source of the error (either external or | 96 // |source| is the WebKit-reported source of the error (either external or |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 RenderView* render_view_; | 133 RenderView* render_view_; |
| 138 // The routing ID of the associated RenderView. | 134 // The routing ID of the associated RenderView. |
| 139 int routing_id_; | 135 int routing_id_; |
| 140 | 136 |
| 141 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 137 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 142 }; | 138 }; |
| 143 | 139 |
| 144 } // namespace content | 140 } // namespace content |
| 145 | 141 |
| 146 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 142 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |