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 ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ | 5 #ifndef ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ |
6 #define ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ | 6 #define ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ |
7 | 7 |
8 #include "ash/ash_export.h" | 8 #include "ash/ash_export.h" |
9 #include "ash/wm/shelf_types.h" | 9 #include "ash/wm/shelf_types.h" |
10 #include "ui/gfx/font.h" | 10 #include "ui/gfx/font.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 | 75 |
76 // Overridden from views::View. | 76 // Overridden from views::View. |
77 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; | 77 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; |
78 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 78 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
79 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; | 79 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; |
80 virtual void OnMouseCaptureLost() OVERRIDE; | 80 virtual void OnMouseCaptureLost() OVERRIDE; |
81 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; | 81 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; |
82 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; | 82 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE; |
83 | 83 |
84 // Overridden from ui::EventHandler. | 84 // Overridden from ui::EventHandler. |
85 virtual ui::EventResult OnGestureEvent(ui::GestureEvent* event) OVERRIDE; | 85 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE; |
86 | 86 |
87 private: | 87 private: |
88 string16 accessible_name_; | 88 string16 accessible_name_; |
89 bool has_capture_; | 89 bool has_capture_; |
90 | 90 |
91 DISALLOW_COPY_AND_ASSIGN(ActionableView); | 91 DISALLOW_COPY_AND_ASSIGN(ActionableView); |
92 }; | 92 }; |
93 | 93 |
94 class ViewClickListener { | 94 class ViewClickListener { |
95 public: | 95 public: |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
296 void SetTrayImageItemBorder(views::View* tray_view, ShelfAlignment alignment); | 296 void SetTrayImageItemBorder(views::View* tray_view, ShelfAlignment alignment); |
297 // Sets the empty border around a label tray item for adjusting the space | 297 // Sets the empty border around a label tray item for adjusting the space |
298 // around it. | 298 // around it. |
299 void SetTrayLabelItemBorder(TrayItemView* tray_view, | 299 void SetTrayLabelItemBorder(TrayItemView* tray_view, |
300 ShelfAlignment alignment); | 300 ShelfAlignment alignment); |
301 | 301 |
302 } // namespace internal | 302 } // namespace internal |
303 } // namespace ash | 303 } // namespace ash |
304 | 304 |
305 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ | 305 #endif // ASH_SYSTEM_TRAY_TRAY_VIEWS_H_ |
OLD | NEW |