| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include "base/basictypes.h" | 9 #include "base/basictypes.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| 11 #include "ipc/ipc_channel.h" | 11 #include "ipc/ipc_channel.h" |
| 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" | 12 #include "third_party/WebKit/Source/WebKit/chromium/public/WebIconURL.h" |
| 13 | 13 |
| 14 namespace WebKit { | 14 namespace WebKit { |
| 15 class WebDataSource; | 15 class WebDataSource; |
| 16 class WebFrame; | 16 class WebFrame; |
| 17 class WebFormElement; | 17 class WebFormElement; |
| 18 class WebMediaPlayerClient; | 18 class WebMediaPlayerClient; |
| 19 class WebMouseEvent; | 19 class WebMouseEvent; |
| 20 class WebMouseWheelEvent; |
| 20 class WebNode; | 21 class WebNode; |
| 21 class WebTouchEvent; | 22 class WebTouchEvent; |
| 22 class WebURL; | 23 class WebURL; |
| 23 struct WebURLError; | 24 struct WebURLError; |
| 24 } | 25 } |
| 25 | 26 |
| 26 namespace content { | 27 namespace content { |
| 27 | 28 |
| 28 class RenderView; | 29 class RenderView; |
| 29 | 30 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 66 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
| 66 WebKit::WebDataSource* ds) {} | 67 WebKit::WebDataSource* ds) {} |
| 67 virtual void PrintPage(WebKit::WebFrame* frame) {} | 68 virtual void PrintPage(WebKit::WebFrame* frame) {} |
| 68 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} | 69 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} |
| 69 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, | 70 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, |
| 70 WebKit::WebMediaPlayerClient* client) {} | 71 WebKit::WebMediaPlayerClient* client) {} |
| 71 | 72 |
| 72 // These match the RenderView methods. | 73 // These match the RenderView methods. |
| 73 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 74 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
| 74 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 75 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
| 76 virtual void DidHandleWheelEvent(const WebKit::WebMouseWheelEvent& event) {} |
| 75 | 77 |
| 76 // These match incoming IPCs. | 78 // These match incoming IPCs. |
| 77 virtual void ContextMenuAction(unsigned id) {} | 79 virtual void ContextMenuAction(unsigned id) {} |
| 78 virtual void Navigate(const GURL& url) {} | 80 virtual void Navigate(const GURL& url) {} |
| 79 virtual void ClosePage() {} | 81 virtual void ClosePage() {} |
| 80 | 82 |
| 81 // IPC::Channel::Listener implementation. | 83 // IPC::Channel::Listener implementation. |
| 82 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 84 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 83 | 85 |
| 84 // This is called by the RenderView when it's going away so that this object | 86 // This is called by the RenderView when it's going away so that this object |
| (...skipping 14 matching lines...) Expand all Loading... |
| 99 RenderView* render_view_; | 101 RenderView* render_view_; |
| 100 // The routing ID of the associated RenderView. | 102 // The routing ID of the associated RenderView. |
| 101 int routing_id_; | 103 int routing_id_; |
| 102 | 104 |
| 103 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 105 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 104 }; | 106 }; |
| 105 | 107 |
| 106 } // namespace content | 108 } // namespace content |
| 107 | 109 |
| 108 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 110 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |