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

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

Issue 11359198: Implement the Instant extended API startMargin, endMargin, and rtl properties and the onmarginchang… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Mac build error (PopupChangedBoundsTo -> OnPopupChangedBounds) Created 8 years 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 // IPC::Listener implementation. 97 // IPC::Listener implementation.
98 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 98 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
99 99
100 protected: 100 protected:
101 explicit RenderViewObserver(RenderView* render_view); 101 explicit RenderViewObserver(RenderView* render_view);
102 virtual ~RenderViewObserver(); 102 virtual ~RenderViewObserver();
103 103
104 // IPC::Sender implementation. 104 // IPC::Sender implementation.
105 virtual bool Send(IPC::Message* message) OVERRIDE; 105 virtual bool Send(IPC::Message* message) OVERRIDE;
106 106
107 RenderView* render_view(); 107 RenderView* render_view() const;
108 int routing_id() { return routing_id_; } 108 int routing_id() { return routing_id_; }
109 109
110 private: 110 private:
111 friend class RenderViewImpl; 111 friend class RenderViewImpl;
112 112
113 // This is called by the RenderView when it's going away so that this object 113 // This is called by the RenderView when it's going away so that this object
114 // can null out its pointer. 114 // can null out its pointer.
115 void RenderViewGone(); 115 void RenderViewGone();
116 116
117 RenderView* render_view_; 117 RenderView* render_view_;
118 // The routing ID of the associated RenderView. 118 // The routing ID of the associated RenderView.
119 int routing_id_; 119 int routing_id_;
120 120
121 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver); 121 DISALLOW_COPY_AND_ASSIGN(RenderViewObserver);
122 }; 122 };
123 123
124 } // namespace content 124 } // namespace content
125 125
126 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_ 126 #endif // CONTENT_PUBLIC_RENDERER_RENDER_VIEW_OBSERVER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/searchbox/searchbox_extension.cc ('k') | content/public/renderer/render_view_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698