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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 | 83 |
84 // These match the RenderView methods. | 84 // These match the RenderView methods. |
85 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 85 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
86 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 86 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
87 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} | 87 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} |
88 | 88 |
89 // These match incoming IPCs. | 89 // These match incoming IPCs. |
90 virtual void Navigate(const GURL& url) {} | 90 virtual void Navigate(const GURL& url) {} |
91 virtual void ClosePage() {} | 91 virtual void ClosePage() {} |
92 | 92 |
| 93 // This indicates that animations to scroll the focused element into view (if |
| 94 // any) have completed. May be called more than once for a single focus. Can |
| 95 // be called from browser, renderer, or compositor. |
| 96 virtual void FocusChangeComplete() {} |
| 97 |
93 virtual void OnStop() {} | 98 virtual void OnStop() {} |
94 | 99 |
95 // IPC::Listener implementation. | 100 // IPC::Listener implementation. |
96 bool OnMessageReceived(const IPC::Message& message) override; | 101 bool OnMessageReceived(const IPC::Message& message) override; |
97 | 102 |
98 // IPC::Sender implementation. | 103 // IPC::Sender implementation. |
99 bool Send(IPC::Message* message) override; | 104 bool Send(IPC::Message* message) override; |
100 | 105 |
101 RenderView* render_view() const; | 106 RenderView* render_view() const; |
102 int routing_id() const { return routing_id_; } | 107 int routing_id() const { return routing_id_; } |
(...skipping 18 matching lines...) Expand all Loading... |
121 RenderView* render_view_; | 126 RenderView* render_view_; |
122 // The routing ID of the associated RenderView. | 127 // The routing ID of the associated RenderView. |
123 int routing_id_; | 128 int routing_id_; |
124 | 129 |
125 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 130 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
126 }; | 131 }; |
127 | 132 |
128 } // namespace content | 133 } // namespace content |
129 | 134 |
130 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |