| 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/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 blink::WebFrame* frame) {} | 55 blink::WebFrame* frame) {} |
| 56 virtual void FrameDetached(blink::WebFrame* frame) {} | 56 virtual void FrameDetached(blink::WebFrame* frame) {} |
| 57 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 57 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
| 58 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} | 58 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} |
| 59 virtual void DidCommitCompositorFrame() {} | 59 virtual void DidCommitCompositorFrame() {} |
| 60 virtual void DidUpdateLayout() {} | 60 virtual void DidUpdateLayout() {} |
| 61 | 61 |
| 62 // These match the RenderView methods. | 62 // These match the RenderView methods. |
| 63 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} | 63 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} |
| 64 | 64 |
| 65 virtual void OnMouseDown(const blink::WebNode& mouse_down_node) {} | |
| 66 | |
| 67 // These match incoming IPCs. | 65 // These match incoming IPCs. |
| 68 virtual void Navigate(const GURL& url) {} | 66 virtual void Navigate(const GURL& url) {} |
| 69 virtual void ClosePage() {} | 67 virtual void ClosePage() {} |
| 70 | 68 |
| 71 // This indicates that animations to scroll the focused element into view (if | |
| 72 // any) have completed. May be called more than once for a single focus. Can | |
| 73 // be called from browser, renderer, or compositor. | |
| 74 virtual void FocusChangeComplete() {} | |
| 75 | |
| 76 virtual void OnStop() {} | 69 virtual void OnStop() {} |
| 77 virtual void OnZoomLevelChanged() {} | 70 virtual void OnZoomLevelChanged() {} |
| 78 | 71 |
| 79 // IPC::Listener implementation. | 72 // IPC::Listener implementation. |
| 80 bool OnMessageReceived(const IPC::Message& message) override; | 73 bool OnMessageReceived(const IPC::Message& message) override; |
| 81 | 74 |
| 82 // IPC::Sender implementation. | 75 // IPC::Sender implementation. |
| 83 bool Send(IPC::Message* message) override; | 76 bool Send(IPC::Message* message) override; |
| 84 | 77 |
| 85 RenderView* render_view() const; | 78 RenderView* render_view() const; |
| (...skipping 19 matching lines...) Expand all Loading... |
| 105 RenderViewImpl* render_view_; | 98 RenderViewImpl* render_view_; |
| 106 // The routing ID of the associated RenderView. | 99 // The routing ID of the associated RenderView. |
| 107 int routing_id_; | 100 int routing_id_; |
| 108 | 101 |
| 109 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 102 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 110 }; | 103 }; |
| 111 | 104 |
| 112 } // namespace content | 105 } // namespace content |
| 113 | 106 |
| 114 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 107 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |