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

Side by Side Diff: ash/wm/workspace_controller.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
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_WM_WORKSPACE_CONTROLLER_H_ 5 #ifndef ASH_WM_WORKSPACE_CONTROLLER_H_
6 #define ASH_WM_WORKSPACE_CONTROLLER_H_ 6 #define ASH_WM_WORKSPACE_CONTROLLER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "ash/ash_export.h" 9 #include "ash/ash_export.h"
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 // WorkspaceEventFilter. 38 // WorkspaceEventFilter.
39 class ASH_EXPORT WorkspaceController : 39 class ASH_EXPORT WorkspaceController :
40 public aura::WindowObserver, 40 public aura::WindowObserver,
41 public ui::SimpleMenuModel::Delegate { 41 public ui::SimpleMenuModel::Delegate {
42 public: 42 public:
43 explicit WorkspaceController(aura::Window* viewport); 43 explicit WorkspaceController(aura::Window* viewport);
44 virtual ~WorkspaceController(); 44 virtual ~WorkspaceController();
45 45
46 void ToggleOverview(); 46 void ToggleOverview();
47 47
48 // Returns the workspace manager that this controler owns. 48 // Returns the workspace manager that this controller owns.
49 WorkspaceManager* workspace_manager() { 49 WorkspaceManager* workspace_manager() {
50 return workspace_manager_.get(); 50 return workspace_manager_.get();
51 } 51 }
52 52
53 // Shows the menu allowing you to configure various aspects of workspaces. 53 // Shows the menu allowing you to configure various aspects of workspaces.
54 void ShowMenu(views::Widget* widget, const gfx::Point& location); 54 void ShowMenu(views::Widget* widget, const gfx::Point& location);
55 55
56 // aura::WindowObserver overrides: 56 // aura::WindowObserver overrides:
57 virtual void OnWindowPropertyChanged(aura::Window* window, 57 virtual void OnWindowPropertyChanged(aura::Window* window,
58 const void* key, 58 const void* key,
(...skipping 26 matching lines...) Expand all
85 scoped_ptr<views::MenuRunner> menu_runner_; 85 scoped_ptr<views::MenuRunner> menu_runner_;
86 #endif 86 #endif
87 87
88 DISALLOW_COPY_AND_ASSIGN(WorkspaceController); 88 DISALLOW_COPY_AND_ASSIGN(WorkspaceController);
89 }; 89 };
90 90
91 } // namespace internal 91 } // namespace internal
92 } // namespace ash 92 } // namespace ash
93 93
94 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_ 94 #endif // ASH_WM_WORKSPACE_CONTROLLER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/phantom_window_controller.cc ('k') | chrome/browser/ui/views/ash/launcher/chrome_launcher_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698