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

Side by Side Diff: ui/aura_shell/launcher/launcher.h

Issue 8247012: Positions the launcher in the bottom left corner. Adds ShellDelegate (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks Created 9 years, 2 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 | « ui/aura_shell/examples/aura_shell_main.cc ('k') | ui/aura_shell/launcher/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
(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_
OLDNEW
« no previous file with comments | « ui/aura_shell/examples/aura_shell_main.cc ('k') | ui/aura_shell/launcher/launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698