Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(317)

Side by Side Diff: content/public/renderer/render_view_observer.h

Issue 10815073: Refactoring of new IPC-only pepper implementation (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 16 matching lines...) Expand all
27 class WebMediaPlayerClient; 27 class WebMediaPlayerClient;
28 class WebMouseEvent; 28 class WebMouseEvent;
29 class WebNode; 29 class WebNode;
30 class WebTouchEvent; 30 class WebTouchEvent;
31 class WebURL; 31 class WebURL;
32 struct WebURLError; 32 struct WebURLError;
33 } 33 }
34 34
35 namespace content { 35 namespace content {
36 36
37 class RendererPpapiHost;
37 class RenderView; 38 class RenderView;
38 39
39 // Base class for objects that want to filter incoming IPCs, and also get 40 // Base class for objects that want to filter incoming IPCs, and also get
40 // notified of changes to the frame. 41 // notified of changes to the frame.
41 class CONTENT_EXPORT RenderViewObserver : public IPC::Listener, 42 class CONTENT_EXPORT RenderViewObserver : public IPC::Listener,
42 public IPC::Sender { 43 public IPC::Sender {
43 public: 44 public:
44 // By default, observers will be deleted when the RenderView goes away. If 45 // By default, observers will be deleted when the RenderView goes away. If
45 // they want to outlive it, they can override this function. 46 // they want to outlive it, they can override this function.
46 virtual void OnDestruct(); 47 virtual void OnDestruct();
(...skipping 30 matching lines...) Expand all
77 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {} 78 virtual void FocusedNodeChanged(const WebKit::WebNode& node) {}
78 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, 79 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame,
79 WebKit::WebMediaPlayerClient* client) {} 80 WebKit::WebMediaPlayerClient* client) {}
80 virtual void ZoomLevelChanged() {}; 81 virtual void ZoomLevelChanged() {};
81 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {} 82 virtual void DidChangeScrollOffset(WebKit::WebFrame* frame) {}
82 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {} 83 virtual void DraggableRegionsChanged(WebKit::WebFrame* frame) {}
83 84
84 // These match the RenderView methods. 85 // These match the RenderView methods.
85 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} 86 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
86 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} 87 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {}
87 virtual void DidCreatePepperPlugin(ppapi::host::PpapiHost* host) {} 88 virtual void DidCreatePepperPlugin(RendererPpapiHost* host) {}
88 89
89 // These match incoming IPCs. 90 // These match incoming IPCs.
90 virtual void ContextMenuAction(unsigned id) {} 91 virtual void ContextMenuAction(unsigned id) {}
91 virtual void Navigate(const GURL& url) {} 92 virtual void Navigate(const GURL& url) {}
92 virtual void ClosePage() {} 93 virtual void ClosePage() {}
93 94
94 // IPC::Listener implementation. 95 // IPC::Listener implementation.
95 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 96 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
96 97
97 protected: 98 protected:
(...skipping 16 matching lines...) Expand all
114 RenderView* render_view_; 115 RenderView* render_view_;
115 // The routing ID of the associated RenderView. 116 // The routing ID of the associated RenderView.
116 int routing_id_; 117 int routing_id_;
117 118
118 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); 119 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver);
119 }; 120 };
120 121
121 } // namespace content 122 } // namespace content
122 123
123 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 124 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/public/browser/browser_ppapi_host.h ('k') | content/public/renderer/renderer_ppapi_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698