| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // These match the RenderView methods. | 87 // These match the RenderView methods. |
| 88 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 88 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
| 89 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 89 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
| 90 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} | 90 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} |
| 91 | 91 |
| 92 // These match incoming IPCs. | 92 // These match incoming IPCs. |
| 93 virtual void Navigate(const GURL& url) {} | 93 virtual void Navigate(const GURL& url) {} |
| 94 virtual void ClosePage() {} | 94 virtual void ClosePage() {} |
| 95 virtual void OrientationChangeEvent() {} | 95 virtual void OrientationChangeEvent() {} |
| 96 virtual void Resized() {} |
| 96 | 97 |
| 97 virtual void OnStop() {} | 98 virtual void OnStop() {} |
| 98 | 99 |
| 99 // IPC::Listener implementation. | 100 // IPC::Listener implementation. |
| 100 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 101 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 101 | 102 |
| 102 // IPC::Sender implementation. | 103 // IPC::Sender implementation. |
| 103 virtual bool Send(IPC::Message* message) OVERRIDE; | 104 virtual bool Send(IPC::Message* message) OVERRIDE; |
| 104 | 105 |
| 105 RenderView* render_view() const; | 106 RenderView* render_view() const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 125 RenderView* render_view_; | 126 RenderView* render_view_; |
| 126 // The routing ID of the associated RenderView. | 127 // The routing ID of the associated RenderView. |
| 127 int routing_id_; | 128 int routing_id_; |
| 128 | 129 |
| 129 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 130 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 130 }; | 131 }; |
| 131 | 132 |
| 132 } // namespace content | 133 } // namespace content |
| 133 | 134 |
| 134 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 135 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |