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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 46 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
47 | 47 |
48 // Overridden from views::WidgetDelegate: | 48 // Overridden from views::WidgetDelegate: |
49 virtual views::View* GetContentsView() OVERRIDE; | 49 virtual views::View* GetContentsView() OVERRIDE; |
50 virtual bool CanResize() const OVERRIDE; | 50 virtual bool CanResize() const OVERRIDE; |
51 virtual string16 GetWindowTitle() const OVERRIDE; | 51 virtual string16 GetWindowTitle() const OVERRIDE; |
52 virtual bool CanMaximize() const OVERRIDE; | 52 virtual bool CanMaximize() const OVERRIDE; |
53 | 53 |
54 // Overridden from views::ButtonListener: | 54 // Overridden from views::ButtonListener: |
55 virtual void ButtonPressed(views::Button* sender, | 55 virtual void ButtonPressed(views::Button* sender, |
56 const views::Event& event) OVERRIDE; | 56 const ui::Event& event) OVERRIDE; |
57 | 57 |
58 #if !defined(OS_MACOSX) | 58 #if !defined(OS_MACOSX) |
59 // Overridden from views::MenuDelegate: | 59 // Overridden from views::MenuDelegate: |
60 virtual void ExecuteCommand(int id) OVERRIDE; | 60 virtual void ExecuteCommand(int id) OVERRIDE; |
61 | 61 |
62 // Override from views::ContextMenuController: | 62 // Override from views::ContextMenuController: |
63 virtual void ShowContextMenuForView(views::View* source, | 63 virtual void ShowContextMenuForView(views::View* source, |
64 const gfx::Point& point) OVERRIDE; | 64 const gfx::Point& point) OVERRIDE; |
65 #endif // !defined(OS_MACOSX) | 65 #endif // !defined(OS_MACOSX) |
66 | 66 |
(...skipping 15 matching lines...) Expand all Loading... |
82 scoped_ptr<views::MenuRunner> menu_runner_; | 82 scoped_ptr<views::MenuRunner> menu_runner_; |
83 #endif | 83 #endif |
84 | 84 |
85 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); | 85 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); |
86 }; | 86 }; |
87 | 87 |
88 } // namespace shell | 88 } // namespace shell |
89 } // namespace ash | 89 } // namespace ash |
90 | 90 |
91 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ | 91 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ |
OLD | NEW |