OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_SHELL_LAUNCHER_VIEW_H_ |
| 6 #define UI_AURA_SHELL_LAUNCHER_VIEW_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "views/widget/widget_delegate.h" |
| 10 #include "views/controls/button/button.h" |
| 11 |
| 12 namespace aura_shell { |
| 13 namespace internal { |
| 14 |
| 15 class LauncherButton; |
| 16 |
| 17 class LauncherView : public views::WidgetDelegateView, |
| 18 public views::ButtonListener { |
| 19 public: |
| 20 LauncherView(); |
| 21 virtual ~LauncherView(); |
| 22 |
| 23 private: |
| 24 // Overridden from views::View: |
| 25 virtual void Layout() OVERRIDE; |
| 26 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
| 27 |
| 28 // Overridden from views::ButtonListener: |
| 29 virtual void ButtonPressed(views::Button* sender, |
| 30 const views::Event& event) OVERRIDE; |
| 31 |
| 32 LauncherButton* chrome_button_; |
| 33 LauncherButton* applist_button_; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(LauncherView); |
| 36 }; |
| 37 |
| 38 } // namespace internal |
| 39 } // namespace aura_shell |
| 40 |
| 41 #endif // UI_AURA_SHELL_LAUNCHER_VIEW_H_ |
OLD | NEW |