| 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" |
| 11 #include "ipc/ipc_listener.h" | 11 #include "ipc/ipc_listener.h" |
| 12 #include "ipc/ipc_sender.h" | 12 #include "ipc/ipc_sender.h" |
| 13 #include "third_party/WebKit/public/platform/WebVector.h" | 13 #include "third_party/WebKit/public/platform/WebVector.h" |
| 14 #include "third_party/WebKit/public/web/WebIconURL.h" | 14 #include "third_party/WebKit/public/web/WebIconURL.h" |
| 15 | 15 |
| 16 class GURL; | 16 class GURL; |
| 17 | 17 |
| 18 namespace ppapi { | 18 namespace ppapi { |
| 19 namespace host { | 19 namespace host { |
| 20 class PpapiHost; | 20 class PpapiHost; |
| 21 } | 21 } |
| 22 } | 22 } |
| 23 | 23 |
| 24 namespace blink { | 24 namespace blink { |
| 25 class WebDataSource; | 25 class WebDataSource; |
| 26 class WebFrame; | 26 class WebFrame; |
| 27 class WebFormElement; | 27 class WebFormElement; |
| 28 class WebGestureEvent; | 28 class WebGestureEvent; |
| 29 class WebLocalFrame; | 29 class WebLocalFrame; |
| 30 class WebMediaPlayerClient; | |
| 31 class WebMouseEvent; | 30 class WebMouseEvent; |
| 32 class WebNode; | 31 class WebNode; |
| 33 class WebTouchEvent; | 32 class WebTouchEvent; |
| 34 class WebURL; | 33 class WebURL; |
| 35 struct WebURLError; | 34 struct WebURLError; |
| 36 } | 35 } |
| 37 | 36 |
| 38 namespace content { | 37 namespace content { |
| 39 | 38 |
| 40 class RendererPpapiHost; | 39 class RendererPpapiHost; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const blink::WebVector<blink::WebString>& newly_matching_selectors, | 73 const blink::WebVector<blink::WebString>& newly_matching_selectors, |
| 75 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {} | 74 const blink::WebVector<blink::WebString>& stopped_matching_selectors) {} |
| 76 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, | 75 virtual void WillSendSubmitEvent(blink::WebLocalFrame* frame, |
| 77 const blink::WebFormElement& form) {} | 76 const blink::WebFormElement& form) {} |
| 78 virtual void WillSubmitForm(blink::WebLocalFrame* frame, | 77 virtual void WillSubmitForm(blink::WebLocalFrame* frame, |
| 79 const blink::WebFormElement& form) {} | 78 const blink::WebFormElement& form) {} |
| 80 virtual void DidCreateDataSource(blink::WebLocalFrame* frame, | 79 virtual void DidCreateDataSource(blink::WebLocalFrame* frame, |
| 81 blink::WebDataSource* ds) {} | 80 blink::WebDataSource* ds) {} |
| 82 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} | 81 virtual void PrintPage(blink::WebLocalFrame* frame, bool user_initiated) {} |
| 83 virtual void FocusedNodeChanged(const blink::WebNode& node) {} | 82 virtual void FocusedNodeChanged(const blink::WebNode& node) {} |
| 84 virtual void WillCreateMediaPlayer(blink::WebLocalFrame* frame, | |
| 85 blink::WebMediaPlayerClient* client) {} | |
| 86 virtual void ZoomLevelChanged() {}; | 83 virtual void ZoomLevelChanged() {}; |
| 87 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {} | 84 virtual void DidChangeScrollOffset(blink::WebLocalFrame* frame) {} |
| 88 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} | 85 virtual void DraggableRegionsChanged(blink::WebFrame* frame) {} |
| 89 virtual void DidCommitCompositorFrame() {} | 86 virtual void DidCommitCompositorFrame() {} |
| 90 virtual void DidUpdateLayout() {} | 87 virtual void DidUpdateLayout() {} |
| 91 | 88 |
| 92 // These match the RenderView methods. | 89 // These match the RenderView methods. |
| 93 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} | 90 virtual void DidHandleMouseEvent(const blink::WebMouseEvent& event) {} |
| 94 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} | 91 virtual void DidHandleTouchEvent(const blink::WebTouchEvent& event) {} |
| 95 | 92 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 RenderView* render_view_; | 132 RenderView* render_view_; |
| 136 // The routing ID of the associated RenderView. | 133 // The routing ID of the associated RenderView. |
| 137 int routing_id_; | 134 int routing_id_; |
| 138 | 135 |
| 139 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); | 136 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); |
| 140 }; | 137 }; |
| 141 | 138 |
| 142 } // namespace content | 139 } // namespace content |
| 143 | 140 |
| 144 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ | 141 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ |
| OLD | NEW |