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

Side by Side Diff: chrome/common/notification_type.h

Issue 6010004: Refactor RenderWidgetHost::set_paint_observer() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove helper classes per review Created 9 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 CHROME_COMMON_NOTIFICATION_TYPE_H_ 5 #ifndef CHROME_COMMON_NOTIFICATION_TYPE_H_
6 #define CHROME_COMMON_NOTIFICATION_TYPE_H_ 6 #define CHROME_COMMON_NOTIFICATION_TYPE_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 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
437 437
438 // Indicates that the render view host has received an accessibility tree 438 // Indicates that the render view host has received an accessibility tree
439 // update, either partial or full, from the render view. The source is the 439 // update, either partial or full, from the render view. The source is the
440 // RenderViewHost, the details are not used. 440 // RenderViewHost, the details are not used.
441 RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED, 441 RENDER_VIEW_HOST_ACCESSIBILITY_TREE_UPDATED,
442 442
443 // This is sent when a RenderWidgetHost is being destroyed. The source is 443 // This is sent when a RenderWidgetHost is being destroyed. The source is
444 // the RenderWidgetHost, the details are not used. 444 // the RenderWidgetHost, the details are not used.
445 RENDER_WIDGET_HOST_DESTROYED, 445 RENDER_WIDGET_HOST_DESTROYED,
446 446
447 // Sent when the widget is about to paint. The source is the
448 // RenderWidgetHost, the details are not used.
449 RENDER_WIDGET_HOST_WILL_PAINT,
450
451 // Sent after the widget has painted. The source is the RenderWidgetHost,
452 // the details are not used.
453 RENDER_WIDGET_HOST_DID_PAINT,
454
455 // Indicates the RenderWidgetHost is about to destroy the backing store. The
456 // backing store will still be valid when this call is made. The source is
457 // the RenderWidgetHost, the details is the BackingStore.
458 RENDER_WIDGET_HOST_WILL_DESTROY_BACKING_STORE,
459
460 // Indicates that the RenderWidgetHost just updated the backing store. The
461 // source is the RenderWidgetHost, the details are not used.
462 RENDER_WIDGET_HOST_DID_UPDATE_BACKING_STORE,
463
464 // This notifies the observer that a PaintAtSizeACK was received. The source
465 // is the RenderWidgetHost, the details are an instance of
466 // RenderWidgetHost::PaintAtSizeAckDetails.
467 RENDER_WIDGET_HOST_DID_RECEIVE_PAINT_AT_SIZE_ACK,
468
447 // Sent from ~RenderViewHost. The source is the TabContents. 469 // Sent from ~RenderViewHost. The source is the TabContents.
448 RENDER_VIEW_HOST_DELETED, 470 RENDER_VIEW_HOST_DELETED,
449 471
450 // Sent from RenderViewHost::ClosePage. The hosted RenderView has 472 // Sent from RenderViewHost::ClosePage. The hosted RenderView has
451 // processed the onbeforeunload handler and is about to be sent a 473 // processed the onbeforeunload handler and is about to be sent a
452 // ViewMsg_ClosePage message to complete the tear-down process. The source 474 // ViewMsg_ClosePage message to complete the tear-down process. The source
453 // is the RenderViewHost sending the message, and no details are provided. 475 // is the RenderViewHost sending the message, and no details are provided.
454 // Note: This message is not sent in response to RenderView closure 476 // Note: This message is not sent in response to RenderView closure
455 // initiated by window.close(). 477 // initiated by window.close().
456 RENDER_VIEW_HOST_WILL_CLOSE_RENDER_VIEW, 478 RENDER_VIEW_HOST_WILL_CLOSE_RENDER_VIEW,
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1314 }; 1336 };
1315 1337
1316 inline bool operator==(NotificationType::Type a, NotificationType b) { 1338 inline bool operator==(NotificationType::Type a, NotificationType b) {
1317 return a == b.value; 1339 return a == b.value;
1318 } 1340 }
1319 inline bool operator!=(NotificationType::Type a, NotificationType b) { 1341 inline bool operator!=(NotificationType::Type a, NotificationType b) {
1320 return a != b.value; 1342 return a != b.value;
1321 } 1343 }
1322 1344
1323 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_ 1345 #endif // CHROME_COMMON_NOTIFICATION_TYPE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698