| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 virtual void ZoomLevelChanged() {}; | 83 virtual void ZoomLevelChanged() {}; |
| 84 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} | 84 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} |
| 85 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} | 85 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} |
| 86 | 86 |
| 87 // These match the RenderView methods. | 87 // These match the RenderView methods. |
| 88 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 88 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
| 89 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 89 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
| 90 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} | 90 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {} |
| 91 | 91 |
| 92 // These match incoming IPCs. | 92 // These match incoming IPCs. |
| 93 virtual void ContextMenuAction(unsigned id) {} | |
| 94 virtual void Navigate(const GURL& url) {} | 93 virtual void Navigate(const GURL& url) {} |
| 95 virtual void ClosePage() {} | 94 virtual void ClosePage() {} |
| 96 | 95 |
| 97 // IPC::Listener implementation. | 96 // IPC::Listener implementation. |
| 98 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 97 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 99 | 98 |
| 100 protected: | 99 protected: |
| 101 explicit RenderViewObserver(RenderView* render_view); | 100 explicit RenderViewObserver(RenderView* render_view); |
| 102 virtual ~RenderViewObserver(); | 101 virtual ~RenderViewObserver(); |
| 103 | 102 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 117 RenderView* render_view_; | 116 RenderView* render_view_; |
| 118 // The routing ID of the associated RenderView. | 117 // The routing ID of the associated RenderView. |
| 119 int routing_id_; | 118 int routing_id_; |
| 120 | 119 |
| 121 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 120 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 122 }; | 121 }; |
| 123 | 122 |
| 124 } // namespace content | 123 } // namespace content |
| 125 | 124 |
| 126 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 125 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |