Chromium Code Reviews| 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 73 blink::WebLocalFrame* frame, | 73 blink::WebLocalFrame* frame, |
| 74 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 74 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
| 75 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {} | 75 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {} |
| 76 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} | 76 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} |
| 77 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 77 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
| 78 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} | 78 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} |
| 79 virtual void DidCommitCompositorFrame() {} | 79 virtual void DidCommitCompositorFrame() {} |
| 80 virtual void DidUpdateLayout() {} | 80 virtual void DidUpdateLayout() {} |
| 81 | 81 |
| 82 // These match the RenderView methods. | 82 // These match the RenderView methods. |
| 83 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | |
| 84 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} | 83 virtual void DidHandleGestureEvent(const blink::WebGestureEvent& event) {} |
| 85 | 84 |
| 85 virtual void onMouseDown(const blink::WebNode& mouse_down_node) {} | |
|
no sievers
2015/06/18 20:36:15
nit: OnMouseDown
Yufeng Shen (Slow to review)
2015/06/18 20:49:39
Done.
| |
| 86 | |
| 86 // These match incoming IPCs. | 87 // These match incoming IPCs. |
| 87 virtual void Navigate(const GURL& url) {} | 88 virtual void Navigate(const GURL& url) {} |
| 88 virtual void ClosePage() {} | 89 virtual void ClosePage() {} |
| 89 | 90 |
| 90 // This indicates that animations to scroll the focused element into view (if | 91 // This indicates that animations to scroll the focused element into view (if |
| 91 // any) have completed. May be called more than once for a single focus. Can | 92 // any) have completed. May be called more than once for a single focus. Can |
| 92 // be called from browser, renderer, or compositor. | 93 // be called from browser, renderer, or compositor. |
| 93 virtual void FocusChangeComplete() {} | 94 virtual void FocusChangeComplete() {} |
| 94 | 95 |
| 95 virtual void OnStop() {} | 96 virtual void OnStop() {} |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 123 RenderView* render_view_; | 124 RenderView* render_view_; |
| 124 // The routing ID of the associated RenderView. | 125 // The routing ID of the associated RenderView. |
| 125 int routing_id_; | 126 int routing_id_; |
| 126 | 127 |
| 127 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 128 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 128 }; | 129 }; |
| 129 | 130 |
| 130 } // namespace content | 131 } // namespace content |
| 131 | 132 |
| 132 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 133 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |