| OLD | NEW |
| (Empty) | |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef UI_AURA_SHELL_LAUNCHER_LAUNCHER_H_ |
| 6 #define UI_AURA_SHELL_LAUNCHER_LAUNCHER_H_ |
| 7 #pragma once |
| 8 |
| 9 #include "base/basictypes.h" |
| 10 #include "base/memory/scoped_ptr.h" |
| 11 #include "ui/aura/window_observer.h" |
| 12 #include "ui/aura_shell/aura_shell_export.h" |
| 13 |
| 14 namespace aura { |
| 15 class ToplevelWindowContainer; |
| 16 } |
| 17 |
| 18 namespace views { |
| 19 class Widget; |
| 20 } |
| 21 |
| 22 namespace aura_shell { |
| 23 |
| 24 class LauncherModel; |
| 25 |
| 26 class AURA_SHELL_EXPORT Launcher : public aura::WindowObserver { |
| 27 public: |
| 28 explicit Launcher(aura::ToplevelWindowContainer* window_container); |
| 29 ~Launcher(); |
| 30 |
| 31 LauncherModel* model() { return model_.get(); } |
| 32 views::Widget* widget() { return widget_; } |
| 33 |
| 34 private: |
| 35 // WindowObserver overrides: |
| 36 virtual void OnWindowAdded(aura::Window* new_window) OVERRIDE; |
| 37 virtual void OnWillRemoveWindow(aura::Window* window) OVERRIDE; |
| 38 |
| 39 scoped_ptr<LauncherModel> model_; |
| 40 |
| 41 // Widget hosting the view. |
| 42 views::Widget* widget_; |
| 43 |
| 44 aura::ToplevelWindowContainer* window_container_; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(Launcher); |
| 47 }; |
| 48 |
| 49 } // namespace aura_shell |
| 50 |
| 51 #endif // UI_AURA_SHELL_LAUNCHER_LAUNCHER_H_ |
| OLD | NEW |