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

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

Issue 22891016: Add support for rect-based event targeting in views (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: patch for landing Created 7 years, 1 month 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
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_NOTIFICATION_VIEW_H_ 5 #ifndef UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 6 #define UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ui/message_center/message_center_export.h" 10 #include "ui/message_center/message_center_export.h"
(...skipping 27 matching lines...) Expand all
38 bool top_level); 38 bool top_level);
39 39
40 virtual ~NotificationView(); 40 virtual ~NotificationView();
41 41
42 // Overridden from views::View: 42 // Overridden from views::View:
43 virtual gfx::Size GetPreferredSize() OVERRIDE; 43 virtual gfx::Size GetPreferredSize() OVERRIDE;
44 virtual int GetHeightForWidth(int width) OVERRIDE; 44 virtual int GetHeightForWidth(int width) OVERRIDE;
45 virtual void Layout() OVERRIDE; 45 virtual void Layout() OVERRIDE;
46 virtual void OnFocus() OVERRIDE; 46 virtual void OnFocus() OVERRIDE;
47 virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE; 47 virtual void ScrollRectToVisible(const gfx::Rect& rect) OVERRIDE;
48 virtual views::View* GetEventHandlerForPoint( 48 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE;
49 const gfx::Point& point) OVERRIDE;
50 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE; 49 virtual gfx::NativeCursor GetCursor(const ui::MouseEvent& event) OVERRIDE;
51 50
52 // Overridden from MessageView: 51 // Overridden from MessageView:
53 virtual void ButtonPressed(views::Button* sender, 52 virtual void ButtonPressed(views::Button* sender,
54 const ui::Event& event) OVERRIDE; 53 const ui::Event& event) OVERRIDE;
55 54
56 protected: 55 protected:
57 NotificationView(const Notification& notification, 56 NotificationView(const Notification& notification,
58 MessageCenter* message_center, 57 MessageCenter* message_center,
59 MessageCenterTray* tray, 58 MessageCenterTray* tray,
(...skipping 21 matching lines...) Expand all
81 views::View* image_view_; 80 views::View* image_view_;
82 views::ProgressBar* progress_bar_view_; 81 views::ProgressBar* progress_bar_view_;
83 std::vector<views::View*> action_buttons_; 82 std::vector<views::View*> action_buttons_;
84 83
85 DISALLOW_COPY_AND_ASSIGN(NotificationView); 84 DISALLOW_COPY_AND_ASSIGN(NotificationView);
86 }; 85 };
87 86
88 } // namespace message_center 87 } // namespace message_center
89 88
90 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_ 89 #endif // UI_MESSAGE_CENTER_VIEWS_NOTIFICATION_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/tabs/tab_strip.cc ('k') | ui/message_center/views/notification_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698