Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(156)

Side by Side Diff: ash/shell/window_type_launcher.h

Issue 583603004: Add CanMinimize to classes that implement WidgetDelegate::CanMaximize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@win_resizable
Patch Set: Add TODO. Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ash/shell/toplevel_window.cc ('k') | ash/shell/window_type_launcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ash/shell/toplevel_window.cc ('k') | ash/shell/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698