| 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() {} | |
| 93 | 92 |
| 94 virtual void OnStop() {} | 93 virtual void OnStop() {} |
| 95 | 94 |
| 96 // IPC::Listener implementation. | 95 // IPC::Listener implementation. |
| 97 bool OnMessageReceived(const IPC::Message& message) override; | 96 bool OnMessageReceived(const IPC::Message& message) override; |
| 98 | 97 |
| 99 // IPC::Sender implementation. | 98 // IPC::Sender implementation. |
| 100 bool Send(IPC::Message* message) override; | 99 bool Send(IPC::Message* message) override; |
| 101 | 100 |
| 102 RenderView* render_view() const; | 101 RenderView* render_view() const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 122 RenderView* render_view_; | 121 RenderView* render_view_; |
| 123 // The routing ID of the associated RenderView. | 122 // The routing ID of the associated RenderView. |
| 124 int routing_id_; | 123 int routing_id_; |
| 125 | 124 |
| 126 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 125 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 127 }; | 126 }; |
| 128 | 127 |
| 129 } // namespace content | 128 } // namespace content |
| 130 | 129 |
| 131 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 130 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |