| 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_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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |