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 | 93 // This indicates that animations after showing a virtual keyboard (if any) |
94 // any) have completed. May be called more than once for a single focus. Can | 94 // have completed. Can be called from browser, renderer, or compositor. |
95 // be called from browser, renderer, or compositor. | 95 virtual void ImeShownAnimationsComplete() {} |
96 virtual void FocusChangeComplete() {} | |
97 | 96 |
98 virtual void OnStop() {} | 97 virtual void OnStop() {} |
99 | 98 |
100 // IPC::Listener implementation. | 99 // IPC::Listener implementation. |
101 bool OnMessageReceived(const IPC::Message& message) override; | 100 bool OnMessageReceived(const IPC::Message& message) override; |
102 | 101 |
103 // IPC::Sender implementation. | 102 // IPC::Sender implementation. |
104 bool Send(IPC::Message* message) override; | 103 bool Send(IPC::Message* message) override; |
105 | 104 |
106 RenderView* render_view() const; | 105 RenderView* render_view() const; |
(...skipping 19 matching lines...) Expand all Loading... |
126 RenderView* render_view_; | 125 RenderView* render_view_; |
127 // The routing ID of the associated RenderView. | 126 // The routing ID of the associated RenderView. |
128 int routing_id_; | 127 int routing_id_; |
129 | 128 |
130 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 129 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
131 }; | 130 }; |
132 | 131 |
133 } // namespace content | 132 } // namespace content |
134 | 133 |
135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 134 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
OLD | NEW |