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

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

Issue 12039079: content: convert user action notification to observer usage (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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 //
11 // Only notifications that are fired from the content module should be here. We 11 // Only notifications that are fired from the content module should be here. We
12 // should never have a notification that is fired by the embedder and listened 12 // should never have a notification that is fired by the embedder and listened
13 // to by content. 13 // to by content.
14 namespace content { 14 namespace content {
15 15
16 enum NotificationType { 16 enum NotificationType {
17 NOTIFICATION_CONTENT_START = 0, 17 NOTIFICATION_CONTENT_START = 0,
18 18
19 // General ----------------------------------------------------------------- 19 // General -----------------------------------------------------------------
20 20
21 // Special signal value to represent an interest in all notifications. 21 // Special signal value to represent an interest in all notifications.
22 // Not valid when posting a notification. 22 // Not valid when posting a notification.
23 NOTIFICATION_ALL = NOTIFICATION_CONTENT_START, 23 NOTIFICATION_ALL = NOTIFICATION_CONTENT_START,
24 24
25 // The app is done processing user actions, now is a good time to do
26 // some background work.
27 NOTIFICATION_IDLE,
28
29 // Means that the app has just started doing something in response to a
30 // user action, and that background processes shouldn't run if avoidable.
31 NOTIFICATION_BUSY,
32
33 // This is sent when the user does a gesture resulting in a noteworthy
34 // action taking place. This is typically used for logging. The source is
35 // the browser context, and the details is a string identifying the action.
36 NOTIFICATION_USER_ACTION,
37
38 // NavigationController ---------------------------------------------------- 25 // NavigationController ----------------------------------------------------
39 26
40 // A new pending navigation has been created. Pending entries are created 27 // A new pending navigation has been created. Pending entries are created
41 // when the user requests the navigation. We don't know if it will actually 28 // when the user requests the navigation. We don't know if it will actually
42 // happen until it does (at this point, it will be "committed." Note that 29 // happen until it does (at this point, it will be "committed." Note that
43 // renderer- initiated navigations such as link clicks will never be 30 // renderer- initiated navigations such as link clicks will never be
44 // pending. 31 // pending.
45 // 32 //
46 // This notification is called after the pending entry is created, but 33 // This notification is called after the pending entry is created, but
47 // before we actually try to navigate. The source will be the 34 // before we actually try to navigate. The source will be the
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
359 // of a temporary zoom level change, the details is an empty string. 346 // of a temporary zoom level change, the details is an empty string.
360 NOTIFICATION_ZOOM_LEVEL_CHANGED, 347 NOTIFICATION_ZOOM_LEVEL_CHANGED,
361 348
362 // Custom notifications used by the embedder should start from here. 349 // Custom notifications used by the embedder should start from here.
363 NOTIFICATION_CONTENT_END, 350 NOTIFICATION_CONTENT_END,
364 }; 351 };
365 352
366 } // namespace content 353 } // namespace content
367 354
368 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ 355 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698