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

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

Issue 7890054: Adds code for a new Aura shell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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/desktop_background_view.cc ('k') | ui/aura_shell/desktop_layout_manager.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) 2011 The Chromium Authors. All rights reserved. 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 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 UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_ 5 #ifndef UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_
6 #define UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_ 6 #define UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "ui/aura/layout_manager.h" 11 #include "ui/aura/layout_manager.h"
12 12
13 namespace aura { 13 namespace aura {
14 class Window; 14 class Window;
15 } 15 }
16 namespace views { 16 namespace views {
17 class Widget; 17 class Widget;
18 } 18 }
19 19
20 class DesktopLayoutManager : public aura::LayoutManager { 20 class DesktopLayoutManager : public aura::LayoutManager {
21 public: 21 public:
22 explicit DesktopLayoutManager(aura::Window* owner); 22 explicit DesktopLayoutManager(aura::Window* owner);
23 virtual ~DesktopLayoutManager(); 23 virtual ~DesktopLayoutManager();
24 24
25 void set_background_widget(views::Widget* background_widget) { 25 void set_background_widget(views::Widget* background_widget) {
26 background_widget_ = background_widget; 26 background_widget_ = background_widget;
27 } 27 }
28 28
29 void set_launcher_widget(views::Widget* launcher_widget) {
30 launcher_widget_ = launcher_widget;
31 }
32
29 private: 33 private:
30 // Overridden from aura::LayoutManager: 34 // Overridden from aura::LayoutManager:
31 virtual void OnWindowResized() OVERRIDE; 35 virtual void OnWindowResized() OVERRIDE;
32 36
33 aura::Window* owner_; 37 aura::Window* owner_;
34 views::Widget* background_widget_; 38 views::Widget* background_widget_;
39 views::Widget* launcher_widget_;
35 40
36 DISALLOW_COPY_AND_ASSIGN(DesktopLayoutManager); 41 DISALLOW_COPY_AND_ASSIGN(DesktopLayoutManager);
37 }; 42 };
38 43
39 #endif // UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_ 44 #endif // UI_AURA_SHELL_DESKTOP_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ui/aura_shell/desktop_background_view.cc ('k') | ui/aura_shell/desktop_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698