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

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

Issue 9703026: Makes the maximize/restore button handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Incorporate review feedback Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « ash/shell/shell_main.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 #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
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
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_
OLDNEW
« no previous file with comments | « ash/shell/shell_main.cc ('k') | ash/shell/window_type_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698