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_SHELL_WINDOW_TYPE_LAUNCHER_H_ | 5 #ifndef ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ |
6 #define ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ | 6 #define ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ |
7 | 7 |
8 #include "ui/views/context_menu_controller.h" | 8 #include "ui/views/context_menu_controller.h" |
9 #include "ui/views/controls/button/button.h" | 9 #include "ui/views/controls/button/button.h" |
10 #include "ui/views/controls/menu/menu_delegate.h" | 10 #include "ui/views/controls/menu/menu_delegate.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 | 38 |
39 // Overridden from views::View: | 39 // Overridden from views::View: |
40 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 40 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
41 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; | 41 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; |
42 | 42 |
43 // Overridden from views::WidgetDelegate: | 43 // Overridden from views::WidgetDelegate: |
44 virtual views::View* GetContentsView() OVERRIDE; | 44 virtual views::View* GetContentsView() OVERRIDE; |
45 virtual bool CanResize() const OVERRIDE; | 45 virtual bool CanResize() const OVERRIDE; |
46 virtual base::string16 GetWindowTitle() const OVERRIDE; | 46 virtual base::string16 GetWindowTitle() const OVERRIDE; |
47 virtual bool CanMaximize() const OVERRIDE; | 47 virtual bool CanMaximize() const OVERRIDE; |
| 48 virtual bool CanMinimize() const OVERRIDE; |
48 | 49 |
49 // Overridden from views::ButtonListener: | 50 // Overridden from views::ButtonListener: |
50 virtual void ButtonPressed(views::Button* sender, | 51 virtual void ButtonPressed(views::Button* sender, |
51 const ui::Event& event) OVERRIDE; | 52 const ui::Event& event) OVERRIDE; |
52 | 53 |
53 // Overridden from views::MenuDelegate: | 54 // Overridden from views::MenuDelegate: |
54 virtual void ExecuteCommand(int id, int event_flags) OVERRIDE; | 55 virtual void ExecuteCommand(int id, int event_flags) OVERRIDE; |
55 | 56 |
56 // Override from views::ContextMenuController: | 57 // Override from views::ContextMenuController: |
57 virtual void ShowContextMenuForView(views::View* source, | 58 virtual void ShowContextMenuForView(views::View* source, |
(...skipping 17 matching lines...) Expand all Loading... |
75 views::LabelButton* show_web_notification_; | 76 views::LabelButton* show_web_notification_; |
76 scoped_ptr<views::MenuRunner> menu_runner_; | 77 scoped_ptr<views::MenuRunner> menu_runner_; |
77 | 78 |
78 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); | 79 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); |
79 }; | 80 }; |
80 | 81 |
81 } // namespace shell | 82 } // namespace shell |
82 } // namespace ash | 83 } // namespace ash |
83 | 84 |
84 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ | 85 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ |
OLD | NEW |