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" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 const WebKit::WebURL& from) {} | 62 const WebKit::WebURL& from) {} |
63 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) {} | 63 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) {} |
64 virtual void FrameDetached(WebKit::WebFrame* frame) {} | 64 virtual void FrameDetached(WebKit::WebFrame* frame) {} |
65 virtual void FrameWillClose(WebKit::WebFrame* frame) {} | 65 virtual void FrameWillClose(WebKit::WebFrame* frame) {} |
66 virtual void WillSubmitForm(WebKit::WebFrame* frame, | 66 virtual void WillSubmitForm(WebKit::WebFrame* frame, |
67 const WebKit::WebFormElement& form) {} | 67 const WebKit::WebFormElement& form) {} |
68 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 68 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
69 WebKit::WebDataSource* ds) {} | 69 WebKit::WebDataSource* ds) {} |
70 virtual void PrintPage(WebKit::WebFrame* frame) {} | 70 virtual void PrintPage(WebKit::WebFrame* frame) {} |
71 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} | 71 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} |
| 72 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, |
| 73 WebKit::WebMediaPlayerClient* client) {} |
72 | 74 |
73 // These match the RenderView methods. | 75 // These match the RenderView methods. |
74 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 76 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
75 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} | 77 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} |
76 | 78 |
77 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, | 79 // These match incoming IPCs. |
78 WebKit::WebMediaPlayerClient* client) {} | |
79 virtual void ContextMenuAction(unsigned id) {} | 80 virtual void ContextMenuAction(unsigned id) {} |
80 virtual void Navigate(const GURL& url) {} | 81 virtual void Navigate(const GURL& url) {} |
| 82 virtual void ClosePage() {} |
81 | 83 |
82 // IPC::Channel::Listener implementation. | 84 // IPC::Channel::Listener implementation. |
83 virtual bool OnMessageReceived(const IPC::Message& message); | 85 virtual bool OnMessageReceived(const IPC::Message& message); |
84 | 86 |
85 // This is called by the RenderView when it's going away so that this object | 87 // This is called by the RenderView when it's going away so that this object |
86 // can null out its pointer. | 88 // can null out its pointer. |
87 void RenderViewGone(); | 89 void RenderViewGone(); |
88 | 90 |
89 protected: | 91 protected: |
90 explicit RenderViewObserver(RenderView* render_view); | 92 explicit RenderViewObserver(RenderView* render_view); |
(...skipping 10 matching lines...) Expand all Loading... |
101 RenderView* render_view_; | 103 RenderView* render_view_; |
102 // The routing ID of the associated RenderView. | 104 // The routing ID of the associated RenderView. |
103 int routing_id_; | 105 int routing_id_; |
104 | 106 |
105 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 107 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
106 }; | 108 }; |
107 | 109 |
108 } // namespace content | 110 } // namespace content |
109 | 111 |
110 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 112 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |