| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 | 46 |
| 47 // Returns the insets for the shadow it will have for rich notification. | 47 // Returns the insets for the shadow it will have for rich notification. |
| 48 static gfx::Insets GetShadowInsets(); | 48 static gfx::Insets GetShadowInsets(); |
| 49 | 49 |
| 50 // Creates a shadow around the notification. | 50 // Creates a shadow around the notification. |
| 51 void CreateShadowBorder(); | 51 void CreateShadowBorder(); |
| 52 | 52 |
| 53 virtual bool IsCloseButtonFocused() const = 0; | 53 virtual bool IsCloseButtonFocused() const = 0; |
| 54 virtual void RequestFocusOnCloseButton() = 0; | 54 virtual void RequestFocusOnCloseButton() = 0; |
| 55 virtual bool IsPinned() const = 0; | 55 virtual bool IsPinned() const = 0; |
| 56 virtual void UpdateControlButtonsVisibility() = 0; |
| 56 | 57 |
| 57 // Overridden from views::View: | 58 // Overridden from views::View: |
| 58 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; | 59 void GetAccessibleNodeData(ui::AXNodeData* node_data) override; |
| 59 bool OnMousePressed(const ui::MouseEvent& event) override; | 60 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 60 bool OnKeyPressed(const ui::KeyEvent& event) override; | 61 bool OnKeyPressed(const ui::KeyEvent& event) override; |
| 61 bool OnKeyReleased(const ui::KeyEvent& event) override; | 62 bool OnKeyReleased(const ui::KeyEvent& event) override; |
| 62 void OnPaint(gfx::Canvas* canvas) override; | 63 void OnPaint(gfx::Canvas* canvas) override; |
| 63 void OnFocus() override; | 64 void OnFocus() override; |
| 64 void OnBlur() override; | 65 void OnBlur() override; |
| 65 void Layout() override; | 66 void Layout() override; |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 base::string16 display_source_; | 106 base::string16 display_source_; |
| 106 | 107 |
| 107 std::unique_ptr<views::Painter> focus_painter_; | 108 std::unique_ptr<views::Painter> focus_painter_; |
| 108 | 109 |
| 109 DISALLOW_COPY_AND_ASSIGN(MessageView); | 110 DISALLOW_COPY_AND_ASSIGN(MessageView); |
| 110 }; | 111 }; |
| 111 | 112 |
| 112 } // namespace message_center | 113 } // namespace message_center |
| 113 | 114 |
| 114 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ | 115 #endif // UI_MESSAGE_CENTER_VIEWS_MESSAGE_VIEW_H_ |
| OLD | NEW |