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

Side by Side Diff: content/public/browser/notification_types.h

Issue 224733018: Changes to content/ to facilitate new zoom extension API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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_BROWSER_NOTIFICATION_TYPES_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_
6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ 6 #define CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_
7 7
8 // This file describes various types used to describe and filter notifications 8 // This file describes various types used to describe and filter notifications
9 // that pass through the NotificationService. 9 // that pass through the NotificationService.
10 // 10 //
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 121
122 // This message is sent after a WebContents is disconnected from the 122 // This message is sent after a WebContents is disconnected from the
123 // renderer process. The source is a Source<WebContents> with a pointer to 123 // renderer process. The source is a Source<WebContents> with a pointer to
124 // the WebContents (the pointer is usable). No details are expected. 124 // the WebContents (the pointer is usable). No details are expected.
125 // DEPRECATED: This is fired in two situations: when the render process 125 // DEPRECATED: This is fired in two situations: when the render process
126 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when 126 // crashes, in which case use WebContentsObserver::RenderProcessGone, and when
127 // the WebContents is being torn down, in which case use 127 // the WebContents is being torn down, in which case use
128 // WebContentsObserver::WebContentsDestroyed() 128 // WebContentsObserver::WebContentsDestroyed()
129 NOTIFICATION_WEB_CONTENTS_DISCONNECTED, 129 NOTIFICATION_WEB_CONTENTS_DISCONNECTED,
130 130
131 // This notification is sent when a WebContents no longer needs a temporary
132 // zoom level maintained for it. This happens when the Webcontents
133 // returns to the default zoom mode.
134 NOTIFICATION_WEB_CONTENTS_NO_TEMPORARY_ZOOM_LEVEL,
135
131 // This notification is sent after WebContents' title is updated. The source 136 // This notification is sent after WebContents' title is updated. The source
132 // is a Source<WebContents> with a pointer to the WebContents. The details 137 // is a Source<WebContents> with a pointer to the WebContents. The details
133 // is a std::pair<NavigationEntry*, bool> that contains more information. 138 // is a std::pair<NavigationEntry*, bool> that contains more information.
134 // DEPRECATED: Use WebContentsObserver::TitleWasSet() 139 // DEPRECATED: Use WebContentsObserver::TitleWasSet()
135 NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED, 140 NOTIFICATION_WEB_CONTENTS_TITLE_UPDATED,
136 141
137 // This notification is sent when a WebContents is being destroyed. Any 142 // This notification is sent when a WebContents is being destroyed. Any
138 // object holding a reference to a WebContents can listen to that 143 // object holding a reference to a WebContents can listen to that
139 // notification to properly reset the reference. The source is a 144 // notification to properly reset the reference. The source is a
140 // Source<WebContents>. 145 // Source<WebContents>.
141 // DEPRECATED: Use WebContentsObserver::WebContentsDestroyed() 146 // DEPRECATED: Use WebContentsObserver::WebContentsDestroyed()
142 NOTIFICATION_WEB_CONTENTS_DESTROYED, 147 NOTIFICATION_WEB_CONTENTS_DESTROYED,
143 148
149 // This notification is sent when a WebContents's zoom level is being changed.
150 NOTIFICATION_WEB_CONTENTS_ZOOM_CHANGE,
Fady Samuel 2014/04/07 21:27:24 I think we can get rid of this notification if we
paulmeyer 2014/04/08 21:13:20 No, this is the one that needs to be replaced usin
151
144 // A RenderViewHost was created for a WebContents. The source is the 152 // A RenderViewHost was created for a WebContents. The source is the
145 // associated WebContents, and the details is the RenderViewHost 153 // associated WebContents, and the details is the RenderViewHost
146 // pointer. 154 // pointer.
147 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED, 155 NOTIFICATION_WEB_CONTENTS_RENDER_VIEW_HOST_CREATED,
148 156
149 // Indicates that a RenderProcessHost was created and its handle is now 157 // Indicates that a RenderProcessHost was created and its handle is now
150 // available. The source will be the RenderProcessHost that corresponds to 158 // available. The source will be the RenderProcessHost that corresponds to
151 // the process. 159 // the process.
152 NOTIFICATION_RENDERER_PROCESS_CREATED, 160 NOTIFICATION_RENDERER_PROCESS_CREATED,
153 161
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 // the RenderViewHost, and the details is a DomOperationNotificationDetails. 222 // the RenderViewHost, and the details is a DomOperationNotificationDetails.
215 NOTIFICATION_DOM_OPERATION_RESPONSE, 223 NOTIFICATION_DOM_OPERATION_RESPONSE,
216 224
217 // Custom notifications used by the embedder should start from here. 225 // Custom notifications used by the embedder should start from here.
218 NOTIFICATION_CONTENT_END, 226 NOTIFICATION_CONTENT_END,
219 }; 227 };
220 228
221 } // namespace content 229 } // namespace content
222 230
223 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ 231 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698