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