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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "ui/views/context_menu_controller.h" | 9 #include "ui/views/context_menu_controller.h" |
10 #include "ui/views/controls/button/button.h" | 10 #include "ui/views/controls/button/button.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 // Overridden from views::View: | 45 // Overridden from views::View: |
46 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; | 46 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |
47 virtual void Layout() OVERRIDE; | 47 virtual void Layout() OVERRIDE; |
48 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; | 48 virtual bool OnMousePressed(const views::MouseEvent& event) OVERRIDE; |
49 | 49 |
50 // Overridden from views::WidgetDelegate: | 50 // Overridden from views::WidgetDelegate: |
51 virtual views::View* GetContentsView() OVERRIDE; | 51 virtual views::View* GetContentsView() OVERRIDE; |
52 virtual bool CanResize() const OVERRIDE; | 52 virtual bool CanResize() const OVERRIDE; |
53 virtual string16 GetWindowTitle() const OVERRIDE; | 53 virtual string16 GetWindowTitle() const OVERRIDE; |
| 54 virtual bool CanMaximize() const OVERRIDE; |
54 | 55 |
55 // Overridden from views::ButtonListener: | 56 // Overridden from views::ButtonListener: |
56 virtual void ButtonPressed(views::Button* sender, | 57 virtual void ButtonPressed(views::Button* sender, |
57 const views::Event& event) OVERRIDE; | 58 const views::Event& event) OVERRIDE; |
58 | 59 |
59 #if !defined(OS_MACOSX) | 60 #if !defined(OS_MACOSX) |
60 // Overridden from views::MenuDelegate: | 61 // Overridden from views::MenuDelegate: |
61 virtual void ExecuteCommand(int id) OVERRIDE; | 62 virtual void ExecuteCommand(int id) OVERRIDE; |
62 | 63 |
63 // Override from views::ContextMenuController: | 64 // Override from views::ContextMenuController: |
(...skipping 16 matching lines...) Expand all Loading... |
80 scoped_ptr<views::MenuRunner> menu_runner_; | 81 scoped_ptr<views::MenuRunner> menu_runner_; |
81 #endif | 82 #endif |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); | 84 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); |
84 }; | 85 }; |
85 | 86 |
86 } // namespace shell | 87 } // namespace shell |
87 } // namespace ash | 88 } // namespace ash |
88 | 89 |
89 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ | 90 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ |
OLD | NEW |