diff options
author | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-11 05:11:46 +0000 |
---|---|---|
committer | ben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-01-11 05:11:46 +0000 |
commit | 57b8bb357db85d85157c3a87f0b87383343867d8 (patch) | |
tree | 86094bfd85db4f416cbab9567fade0ec22d09e05 /ash/shell.h | |
parent | adbc48a264898944041e1c2e0a794756bb8db3d5 (diff) | |
download | chromium_src-57b8bb357db85d85157c3a87f0b87383343867d8.zip chromium_src-57b8bb357db85d85157c3a87f0b87383343867d8.tar.gz chromium_src-57b8bb357db85d85157c3a87f0b87383343867d8.tar.bz2 |
Allow a Views client to provide a default frameview for window widgets.
Provides a default one in Ash that will be used to match kennedy-spec.
Much tweaking is needed, but that can come in future CLs.
http://crbug.com/109138
TEST=none
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=117165
Review URL: http://codereview.chromium.org/9166014
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@117170 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/shell.h')
-rw-r--r-- | ash/shell.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ash/shell.h b/ash/shell.h index 037b66f..7bb5d0b 100644 --- a/ash/shell.h +++ b/ash/shell.h @@ -27,6 +27,10 @@ namespace gfx { class Rect; class Size; } +namespace views { +class NonClientFrameView; +class Widget; +} namespace ash { @@ -88,6 +92,11 @@ class ASH_EXPORT Shell { // See enum WindowMode for details. bool IsWindowModeCompact() const { return window_mode_ == COMPACT_MODE; } + // Creates a default views::NonClientFrameView for use by windows in the + // Ash environment. + views::NonClientFrameView* CreateDefaultNonClientFrameView( + views::Widget* widget); + AcceleratorController* accelerator_controller() { return accelerator_controller_.get(); } |