| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 enum MenuCommands { | 36 enum MenuCommands { |
| 37 COMMAND_NEW_WINDOW = 1, | 37 COMMAND_NEW_WINDOW = 1, |
| 38 COMMAND_TOGGLE_FULLSCREEN = 3, | 38 COMMAND_TOGGLE_FULLSCREEN = 3, |
| 39 }; | 39 }; |
| 40 | 40 |
| 41 // Overridden from views::View: | 41 // Overridden from views::View: |
| 42 void OnPaint(gfx::Canvas* canvas) override; | 42 void OnPaint(gfx::Canvas* canvas) override; |
| 43 bool OnMousePressed(const ui::MouseEvent& event) override; | 43 bool OnMousePressed(const ui::MouseEvent& event) override; |
| 44 | 44 |
| 45 // Overridden from views::WidgetDelegate: | 45 // Overridden from views::WidgetDelegate: |
| 46 views::View* GetContentsView() override; | |
| 47 bool CanResize() const override; | 46 bool CanResize() const override; |
| 48 base::string16 GetWindowTitle() const override; | 47 base::string16 GetWindowTitle() const override; |
| 49 bool CanMaximize() const override; | 48 bool CanMaximize() const override; |
| 50 bool CanMinimize() const override; | 49 bool CanMinimize() const override; |
| 51 | 50 |
| 52 // Overridden from views::ButtonListener: | 51 // Overridden from views::ButtonListener: |
| 53 void ButtonPressed(views::Button* sender, const ui::Event& event) override; | 52 void ButtonPressed(views::Button* sender, const ui::Event& event) override; |
| 54 | 53 |
| 55 // Overridden from views::MenuDelegate: | 54 // Overridden from views::MenuDelegate: |
| 56 void ExecuteCommand(int id, int event_flags) override; | 55 void ExecuteCommand(int id, int event_flags) override; |
| (...skipping 18 matching lines...) Expand all Loading... |
| 75 views::Button* show_web_notification_; | 74 views::Button* show_web_notification_; |
| 76 std::unique_ptr<views::MenuRunner> menu_runner_; | 75 std::unique_ptr<views::MenuRunner> menu_runner_; |
| 77 | 76 |
| 78 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); | 77 DISALLOW_COPY_AND_ASSIGN(WindowTypeLauncher); |
| 79 }; | 78 }; |
| 80 | 79 |
| 81 } // namespace shell | 80 } // namespace shell |
| 82 } // namespace ash | 81 } // namespace ash |
| 83 | 82 |
| 84 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ | 83 #endif // ASH_SHELL_WINDOW_TYPE_LAUNCHER_H_ |
| OLD | NEW |