projects
/
platform
/
framework
/
web
/
crosswalk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Upstream version 9.38.198.0
[platform/framework/web/crosswalk.git]
/
src
/
ui
/
message_center
/
views
/
notification_view.h
diff --git
a/src/ui/message_center/views/notification_view.h
b/src/ui/message_center/views/notification_view.h
index
2d69131
..
623f120
100644
(file)
--- a/
src/ui/message_center/views/notification_view.h
+++ b/
src/ui/message_center/views/notification_view.h
@@
-9,6
+9,7
@@
#include "ui/message_center/message_center_export.h"
#include "ui/message_center/views/message_view.h"
#include "ui/message_center/message_center_export.h"
#include "ui/message_center/views/message_view.h"
+#include "ui/views/view_targeter_delegate.h"
namespace views {
class ProgressBar;
namespace views {
class ProgressBar;
@@
-27,8
+28,10
@@
class PaddedButton;
// list). Future notification types may be handled by other classes, in which
// case instances of those classes would be returned by the Create() factory
// method below.
// list). Future notification types may be handled by other classes, in which
// case instances of those classes would be returned by the Create() factory
// method below.
-class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
- public MessageViewController {
+class MESSAGE_CENTER_EXPORT NotificationView
+ : public MessageView,
+ public views::ViewTargeterDelegate,
+ public MessageViewController {
public:
// Creates appropriate MessageViews for notifications. Those currently are
// always NotificationView instances but in the future
public:
// Creates appropriate MessageViews for notifications. Those currently are
// always NotificationView instances but in the future
@@
-48,7
+51,6
@@
class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
virtual void Layout() OVERRIDE;
virtual void OnFocus() OVERRIDE;
virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE;
virtual void Layout() OVERRIDE;
virtual void OnFocus() OVERRIDE;
virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE;
- virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE;
virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
// Overridden from MessageView:
virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
// Overridden from MessageView:
@@
-78,6
+80,10
@@
class MESSAGE_CENTER_EXPORT NotificationView : public MessageView,
friend class NotificationViewTest;
friend class NotificationViewTest;
+ // views::ViewTargeterDelegate:
+ virtual views::View* TargetForRect(views::View* root,
+ const gfx::Rect& rect) OVERRIDE;
+
void CreateOrUpdateViews(const Notification& notification);
void SetAccessibleName(const Notification& notification);
void CreateOrUpdateViews(const Notification& notification);
void SetAccessibleName(const Notification& notification);