| 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_RENDERER_RENDER_VIEW_OBSERVER_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| 6 #define CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_ | 6 #define CONTENT_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 "ipc/ipc_channel.h" | 10 #include "ipc/ipc_channel.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 virtual void DidCompleteClientRedirect(WebKit::WebFrame* frame, | 55 virtual void DidCompleteClientRedirect(WebKit::WebFrame* frame, |
| 56 const WebKit::WebURL& from) {} | 56 const WebKit::WebURL& from) {} |
| 57 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) {} | 57 virtual void DidCreateDocumentElement(WebKit::WebFrame* frame) {} |
| 58 virtual void FrameDetached(WebKit::WebFrame* frame) {} | 58 virtual void FrameDetached(WebKit::WebFrame* frame) {} |
| 59 virtual void FrameWillClose(WebKit::WebFrame* frame) {} | 59 virtual void FrameWillClose(WebKit::WebFrame* frame) {} |
| 60 virtual void WillSubmitForm(WebKit::WebFrame* frame, | 60 virtual void WillSubmitForm(WebKit::WebFrame* frame, |
| 61 const WebKit::WebFormElement& form) {} | 61 const WebKit::WebFormElement& form) {} |
| 62 virtual void DidCreateDataSource(WebKit::WebFrame* frame, | 62 virtual void DidCreateDataSource(WebKit::WebFrame* frame, |
| 63 WebKit::WebDataSource* ds) {} | 63 WebKit::WebDataSource* ds) {} |
| 64 virtual void PrintPage(WebKit::WebFrame* frame) {} | 64 virtual void PrintPage(WebKit::WebFrame* frame) {} |
| 65 virtual void LogCrossFramePropertyAccess( | |
| 66 WebKit::WebFrame* frame, | |
| 67 WebKit::WebFrame* target, | |
| 68 bool cross_origin, | |
| 69 const WebKit::WebString& property_name, | |
| 70 unsigned long long event_id) {} | |
| 71 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} | 65 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} |
| 72 | 66 |
| 73 // These match the RenderView methods. | 67 // These match the RenderView methods. |
| 74 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} | 68 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} |
| 75 | 69 |
| 76 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, | 70 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, |
| 77 WebKit::WebMediaPlayerClient* client) {} | 71 WebKit::WebMediaPlayerClient* client) {} |
| 78 | 72 |
| 79 protected: | 73 protected: |
| 80 explicit RenderViewObserver(RenderView* render_view); | 74 explicit RenderViewObserver(RenderView* render_view); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 95 void set_render_view(RenderView* rv) { render_view_ = rv; } | 89 void set_render_view(RenderView* rv) { render_view_ = rv; } |
| 96 | 90 |
| 97 RenderView* render_view_; | 91 RenderView* render_view_; |
| 98 // The routing ID of the associated RenderView. | 92 // The routing ID of the associated RenderView. |
| 99 int routing_id_; | 93 int routing_id_; |
| 100 | 94 |
| 101 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 95 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 102 }; | 96 }; |
| 103 | 97 |
| 104 #endif // CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_ | 98 #endif // CONTENT_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |