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

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

Issue 8220006: Rename RenderView to RenderViewImpl. Update Chrome's DEPS so that it can't include the RenderView... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/renderer/render_view_observer.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 // These match the RenderView methods. 73 // These match the RenderView methods.
74 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {} 74 virtual void DidHandleMouseEvent(const WebKit::WebMouseEvent& event) {}
75 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {} 75 virtual void DidHandleTouchEvent(const WebKit::WebTouchEvent& event) {}
76 76
77 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame, 77 virtual void WillCreateMediaPlayer(WebKit::WebFrame* frame,
78 WebKit::WebMediaPlayerClient* client) {} 78 WebKit::WebMediaPlayerClient* client) {}
79 virtual void ContextMenuAction(unsigned id) {} 79 virtual void ContextMenuAction(unsigned id) {}
80 virtual void Navigate(const GURL& url) {} 80 virtual void Navigate(const GURL& url) {}
81 81
82 // IPC::Channel::Listener implementation.
83 virtual bool OnMessageReceived(const IPC::Message& message);
84
85 // This is called by the RenderView when it's going away so that this object
86 // can null out its pointer.
87 void RenderViewGone();
88
82 protected: 89 protected:
83 explicit RenderViewObserver(RenderView* render_view); 90 explicit RenderViewObserver(RenderView* render_view);
84 virtual ~RenderViewObserver(); 91 virtual ~RenderViewObserver();
85 92
86 // IPC::Channel::Listener implementation.
87 virtual bool OnMessageReceived(const IPC::Message& message);
88
89 // IPC::Message::Sender implementation. 93 // IPC::Message::Sender implementation.
90 virtual bool Send(IPC::Message* message); 94 virtual bool Send(IPC::Message* message);
91 95
92 RenderView* render_view(); 96 RenderView* render_view();
93 int routing_id() { return routing_id_; } 97 int routing_id() { return routing_id_; }
94 98
95 private: 99 private:
96 friend class ::RenderView;
97 100
98 void set_render_view(::RenderView* rv); 101 RenderView* render_view_;
99
100 ::RenderView* render_view_;
101 // The routing ID of the associated RenderView. 102 // The routing ID of the associated RenderView.
102 int routing_id_; 103 int routing_id_;
103 104
104 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); 105 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver);
105 }; 106 };
106 107
107 } // namespace content 108 } // namespace content
108 109
109 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 110 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « content/content_renderer.gypi ('k') | content/public/renderer/render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698