| OLD | NEW |
| 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/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 9 #include "ui/gfx/insets.h" | 9 #include "ui/gfx/insets.h" |
| 10 #include "ui/message_center/message_center_export.h" | 10 #include "ui/message_center/message_center_export.h" |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 bool IsCloseButtonFocused(); | 51 bool IsCloseButtonFocused(); |
| 52 void RequestFocusOnCloseButton(); | 52 void RequestFocusOnCloseButton(); |
| 53 | 53 |
| 54 void set_accessible_name(const string16& name) { accessible_name_ = name; } | 54 void set_accessible_name(const string16& name) { accessible_name_ = name; } |
| 55 | 55 |
| 56 // Overridden from views::View: | 56 // Overridden from views::View: |
| 57 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 57 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
| 58 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 58 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
| 59 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 59 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
| 60 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; | 60 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; |
| 61 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | |
| 62 | 61 |
| 63 // Overridden from ui::EventHandler: | 62 // Overridden from ui::EventHandler: |
| 64 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 63 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
| 65 | 64 |
| 66 // Overridden from ButtonListener: | 65 // Overridden from ButtonListener: |
| 67 virtual void ButtonPressed(views::Button* sender, | 66 virtual void ButtonPressed(views::Button* sender, |
| 68 const ui::Event& event) OVERRIDE; | 67 const ui::Event& event) OVERRIDE; |
| 69 | 68 |
| 70 void set_scroller(views::ScrollView* scroller) { scroller_ = scroller; } | 69 void set_scroller(views::ScrollView* scroller) { scroller_ = scroller; } |
| 71 | 70 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 82 views::ScrollView* scroller_; | 81 views::ScrollView* scroller_; |
| 83 | 82 |
| 84 string16 accessible_name_; | 83 string16 accessible_name_; |
| 85 | 84 |
| 86 DISALLOW_COPY_AND_ASSIGN(MessageView); | 85 DISALLOW_COPY_AND_ASSIGN(MessageView); |
| 87 }; | 86 }; |
| 88 | 87 |
| 89 } // namespace message_center | 88 } // namespace message_center |
| 90 | 89 |
| 91 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ | 90 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| OLD | NEW |