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

Side by Side Diff: ui/message_center/views/message_view.h

Issue 271773002: Retain popup bubble mouse status even through updates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 7 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 UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "ui/gfx/insets.h" 10 #include "ui/gfx/insets.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView, 46 class MESSAGE_CENTER_EXPORT MessageView : public views::SlideOutView,
47 public views::ButtonListener { 47 public views::ButtonListener {
48 public: 48 public:
49 MessageView(MessageViewController* controller, 49 MessageView(MessageViewController* controller,
50 const std::string& notification_id, 50 const std::string& notification_id,
51 const NotifierId& notifier_id, 51 const NotifierId& notifier_id,
52 const gfx::ImageSkia& small_image, 52 const gfx::ImageSkia& small_image,
53 const base::string16& display_source); 53 const base::string16& display_source);
54 virtual ~MessageView(); 54 virtual ~MessageView();
55 55
56 // Updates this view with the new data contained in the notification.
57 virtual void UpdateWithNotification(const Notification& notification);
58
56 // Returns the insets for the shadow it will have for rich notification. 59 // Returns the insets for the shadow it will have for rich notification.
57 static gfx::Insets GetShadowInsets(); 60 static gfx::Insets GetShadowInsets();
58 61
59 // Creates a shadow around the notification. 62 // Creates a shadow around the notification.
60 void CreateShadowBorder(); 63 void CreateShadowBorder();
61 64
62 bool IsCloseButtonFocused(); 65 bool IsCloseButtonFocused();
63 void RequestFocusOnCloseButton(); 66 void RequestFocusOnCloseButton();
64 67
65 void set_accessible_name(const base::string16& accessible_name) { 68 void set_accessible_name(const base::string16& accessible_name) {
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 base::string16 display_source_; 113 base::string16 display_source_;
111 114
112 scoped_ptr<views::Painter> focus_painter_; 115 scoped_ptr<views::Painter> focus_painter_;
113 116
114 DISALLOW_COPY_AND_ASSIGN(MessageView); 117 DISALLOW_COPY_AND_ASSIGN(MessageView);
115 }; 118 };
116 119
117 } // namespace message_center 120 } // namespace message_center
118 121
119 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ 122 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_
OLDNEW
« no previous file with comments | « ui/message_center/views/message_popup_collection.cc ('k') | ui/message_center/views/message_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698