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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 virtual void WillSubmitForm(blink::WebLocalFrame* frame, | 78 virtual void WillSubmitForm(blink::WebLocalFrame* frame, |
79 const blink::WebFormElement& form) {} | 79 const blink::WebFormElement& form) {} |
80 virtual void DidCreateDataSource(blink::WebLocalFrame* frame, | 80 virtual void DidCreateDataSource(blink::WebLocalFrame* frame, |
81 blink::WebDataSource* ds) {} | 81 blink::WebDataSource* ds) {} |
82 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} | 82 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} |
83 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 83 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
84 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {} | 84 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {} |
85 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} | 85 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} |
86 virtual void DidCommitCompositorFrame() {} | 86 virtual void DidCommitCompositorFrame() {} |
87 virtual void DidUpdateLayout() {} | 87 virtual void DidUpdateLayout() {} |
| 88 virtual void WillAnimatePageScale(bool will_animate) {} |
88 | 89 |
89 // These match the RenderView methods. | 90 // These match the RenderView methods. |
90 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 91 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
91 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 92 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
92 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} | 93 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} |
93 | 94 |
94 // These match incoming IPCs. | 95 // These match incoming IPCs. |
95 virtual void Navigate(const GURL& url) {} | 96 virtual void Navigate(const GURL& url) {} |
96 virtual void ClosePage() {} | 97 virtual void ClosePage() {} |
97 virtual void OrientationChangeEvent() {} | 98 virtual void OrientationChangeEvent() {} |
98 virtual void Resized() {} | 99 virtual void Resized() {} |
99 | 100 |
| 101 // These match compositor events. |
| 102 virtual void DidCompletePageScaleAnimation() {} |
| 103 |
100 virtual void OnStop() {} | 104 virtual void OnStop() {} |
101 | 105 |
102 // IPC::Listener implementation. | 106 // IPC::Listener implementation. |
103 bool OnMessageReceived(const IPC::Message& message) override; | 107 bool OnMessageReceived(const IPC::Message& message) override; |
104 | 108 |
105 // IPC::Sender implementation. | 109 // IPC::Sender implementation. |
106 bool Send(IPC::Message* message) override; | 110 bool Send(IPC::Message* message) override; |
107 | 111 |
108 RenderView* render_view() const; | 112 RenderView* render_view() const; |
109 int routing_id() const { return routing_id_; } | 113 int routing_id() const { return routing_id_; } |
(...skipping 18 matching lines...) Expand all Loading... |
128 RenderView* render_view_; | 132 RenderView* render_view_; |
129 // The routing ID of the associated RenderView. | 133 // The routing ID of the associated RenderView. |
130 int routing_id_; | 134 int routing_id_; |
131 | 135 |
132 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 136 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
133 }; | 137 }; |
134 | 138 |
135 } // namespace content | 139 } // namespace content |
136 | 140 |
137 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |