OLD | NEW |
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_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 #pragma once | 7 #pragma once |
8 | 8 |
9 // This file describes various types used to describe and filter notifications | 9 // This file describes various types used to describe and filter notifications |
10 // that pass through the NotificationService. | 10 // that pass through the NotificationService. |
(...skipping 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
350 // drop operation was received. The source is the RenderViewHost. | 350 // drop operation was received. The source is the RenderViewHost. |
351 // Note: Used only in testing. | 351 // Note: Used only in testing. |
352 NOTIFICATION_RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK, | 352 NOTIFICATION_RENDER_VIEW_HOST_DID_RECEIVE_DRAG_TARGET_DROP_ACK, |
353 | 353 |
354 // Indicates a RenderWidgetHost has been hidden or restored. The source is | 354 // Indicates a RenderWidgetHost has been hidden or restored. The source is |
355 // the RWH whose visibility changed, the details is a bool set to true if | 355 // the RWH whose visibility changed, the details is a bool set to true if |
356 // the new state is "visible." | 356 // the new state is "visible." |
357 NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, | 357 NOTIFICATION_RENDER_WIDGET_VISIBILITY_CHANGED, |
358 | 358 |
359 // The focused element inside a page has changed. The source is the | 359 // The focused element inside a page has changed. The source is the |
360 // TabContents containing the render view host for the page. The details is | 360 // RenderViewHost. The details is a Details<const bool> that indicates whether |
361 // a Details<const bool> that indicates whether or not an editable node was | 361 // or not an editable node was focused. |
362 // focused. | |
363 NOTIFICATION_FOCUS_CHANGED_IN_PAGE, | 362 NOTIFICATION_FOCUS_CHANGED_IN_PAGE, |
364 | 363 |
365 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The | 364 // Notification posted from ExecuteJavascriptInWebFrameNotifyResult. The |
366 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was | 365 // source is the RenderViewHost ExecuteJavascriptInWebFrameNotifyResult was |
367 // invoked on. The details are a std::pair<int, Value*> with the int giving | 366 // invoked on. The details are a std::pair<int, Value*> with the int giving |
368 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the | 367 // the id returned from ExecuteJavascriptInWebFrameNotifyResult and the |
369 // Value the results of the javascript expression. The Value is owned by | 368 // Value the results of the javascript expression. The Value is owned by |
370 // RenderViewHost and may be a Null Value. | 369 // RenderViewHost and may be a Null Value. |
371 NOTIFICATION_EXECUTE_JAVASCRIPT_RESULT, | 370 NOTIFICATION_EXECUTE_JAVASCRIPT_RESULT, |
372 | 371 |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 // of a temporary zoom level change, the details is an empty string. | 422 // of a temporary zoom level change, the details is an empty string. |
424 NOTIFICATION_ZOOM_LEVEL_CHANGED, | 423 NOTIFICATION_ZOOM_LEVEL_CHANGED, |
425 | 424 |
426 // Custom notifications used by the embedder should start from here. | 425 // Custom notifications used by the embedder should start from here. |
427 NOTIFICATION_CONTENT_END, | 426 NOTIFICATION_CONTENT_END, |
428 }; | 427 }; |
429 | 428 |
430 } // namespace content | 429 } // namespace content |
431 | 430 |
432 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ | 431 #endif // CONTENT_PUBLIC_BROWSER_NOTIFICATION_TYPES_H_ |
OLD | NEW |