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 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 virtual void DidClearWindowObject(blink::WebLocalFrame* frame) {} | 66 virtual void DidClearWindowObject(blink::WebLocalFrame* frame) {} |
67 virtual void DidCreateDocumentElement(blink::WebLocalFrame* frame) {} | 67 virtual void DidCreateDocumentElement(blink::WebLocalFrame* frame) {} |
68 virtual void FrameCreated(blink::WebLocalFrame* parent, | 68 virtual void FrameCreated(blink::WebLocalFrame* parent, |
69 blink::WebFrame* frame) {} | 69 blink::WebFrame* frame) {} |
70 virtual void FrameDetached(blink::WebFrame* frame) {} | 70 virtual void FrameDetached(blink::WebFrame* frame) {} |
71 virtual void FrameWillClose(blink::WebFrame* frame) {} | 71 virtual void FrameWillClose(blink::WebFrame* frame) {} |
72 virtual void DidMatchCSS( | 72 virtual void DidMatchCSS( |
73 blink::WebLocalFrame* frame, | 73 blink::WebLocalFrame* frame, |
74 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 74 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
75 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {} | 75 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {} |
76 virtual void DidCreateDataSource(blink::WebLocalFrame* frame, | |
77 blink::WebDataSource* ds) {} | |
78 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} | 76 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} |
79 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 77 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
80 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} | 78 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} |
81 virtual void DidCommitCompositorFrame() {} | 79 virtual void DidCommitCompositorFrame() {} |
82 virtual void DidUpdateLayout() {} | 80 virtual void DidUpdateLayout() {} |
83 | 81 |
84 // These match the RenderView methods. | 82 // These match the RenderView methods. |
85 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 83 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
86 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 84 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
87 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} | 85 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 RenderView* render_view_; | 124 RenderView* render_view_; |
127 // The routing ID of the associated RenderView. | 125 // The routing ID of the associated RenderView. |
128 int routing_id_; | 126 int routing_id_; |
129 | 127 |
130 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 128 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
131 }; | 129 }; |
132 | 130 |
133 } // namespace content | 131 } // namespace content |
134 | 132 |
135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 133 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |