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

Side by Side Diff: ash/shell.h

Issue 9166014: Allow a Views client to provide a default frameview for window widgets. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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 | « ash/ash_switches.cc ('k') | ash/shell.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) 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_SHELL_H_ 5 #ifndef ASH_SHELL_H_
6 #define ASH_SHELL_H_ 6 #define ASH_SHELL_H_
7 #pragma once 7 #pragma once
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "ash/ash_export.h" 12 #include "ash/ash_export.h"
13 #include "base/basictypes.h" 13 #include "base/basictypes.h"
14 #include "base/gtest_prod_util.h" 14 #include "base/gtest_prod_util.h"
15 #include "base/memory/scoped_ptr.h" 15 #include "base/memory/scoped_ptr.h"
16 #include "base/compiler_specific.h" 16 #include "base/compiler_specific.h"
17 #include "base/memory/weak_ptr.h" 17 #include "base/memory/weak_ptr.h"
18 18
19 class CommandLine; 19 class CommandLine;
20 20
21 namespace aura { 21 namespace aura {
22 class EventFilter; 22 class EventFilter;
23 class RootWindow; 23 class RootWindow;
24 class Window; 24 class Window;
25 } 25 }
26 namespace gfx { 26 namespace gfx {
27 class Rect; 27 class Rect;
28 class Size; 28 class Size;
29 } 29 }
30 namespace views {
31 class NonClientFrameView;
32 class Widget;
33 }
30 34
31 namespace ash { 35 namespace ash {
32 36
33 class AcceleratorController; 37 class AcceleratorController;
34 class Launcher; 38 class Launcher;
35 class PowerButtonController; 39 class PowerButtonController;
36 class ShellDelegate; 40 class ShellDelegate;
37 class WindowCycleController; 41 class WindowCycleController;
38 42
39 namespace internal { 43 namespace internal {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 85
82 // Returns true if the screen is locked. 86 // Returns true if the screen is locked.
83 bool IsScreenLocked() const; 87 bool IsScreenLocked() const;
84 88
85 // Returns true if a modal dialog window is currently open. 89 // Returns true if a modal dialog window is currently open.
86 bool IsModalWindowOpen() const; 90 bool IsModalWindowOpen() const;
87 91
88 // See enum WindowMode for details. 92 // See enum WindowMode for details.
89 bool IsWindowModeCompact() const { return window_mode_ == COMPACT_MODE; } 93 bool IsWindowModeCompact() const { return window_mode_ == COMPACT_MODE; }
90 94
95 // Creates a default views::NonClientFrameView for use by windows in the
96 // Ash environment.
97 views::NonClientFrameView* CreateDefaultNonClientFrameView(
98 views::Widget* widget);
99
91 AcceleratorController* accelerator_controller() { 100 AcceleratorController* accelerator_controller() {
92 return accelerator_controller_.get(); 101 return accelerator_controller_.get();
93 } 102 }
94 internal::TooltipController* tooltip_controller() { 103 internal::TooltipController* tooltip_controller() {
95 return tooltip_controller_.get(); 104 return tooltip_controller_.get();
96 } 105 }
97 PowerButtonController* power_button_controller() { 106 PowerButtonController* power_button_controller() {
98 return power_button_controller_.get(); 107 return power_button_controller_.get();
99 } 108 }
100 WindowCycleController* window_cycle_controller() { 109 WindowCycleController* window_cycle_controller() {
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // The |window_mode_| never changes after the shell is initialized. 179 // The |window_mode_| never changes after the shell is initialized.
171 // Switching modes requires a restart. 180 // Switching modes requires a restart.
172 WindowMode window_mode_; 181 WindowMode window_mode_;
173 182
174 DISALLOW_COPY_AND_ASSIGN(Shell); 183 DISALLOW_COPY_AND_ASSIGN(Shell);
175 }; 184 };
176 185
177 } // namespace ash 186 } // namespace ash
178 187
179 #endif // ASH_SHELL_H_ 188 #endif // ASH_SHELL_H_
OLDNEW
« no previous file with comments | « ash/ash_switches.cc ('k') | ash/shell.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698