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