diff options
author | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 01:50:05 +0000 |
---|---|---|
committer | tfarina@chromium.org <tfarina@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-12-19 01:50:05 +0000 |
commit | 5b251f10c00377eb437bf11d52128ff7f359a5e3 (patch) | |
tree | 56695914261a7a2d9ad8e8934080551c8db90452 /ui/wm | |
parent | 8eb21c922f41dd850ea71e7fb391e50f7b4a9f5f (diff) | |
download | chromium_src-5b251f10c00377eb437bf11d52128ff7f359a5e3.zip chromium_src-5b251f10c00377eb437bf11d52128ff7f359a5e3.tar.gz chromium_src-5b251f10c00377eb437bf11d52128ff7f359a5e3.tar.bz2 |
wm: public window_types.
Patch manually generated by:
$ git grep -l aura::client::WINDOW_TYPE | xargs sed -i -e 's/aura::client::WINDOW_TYPE/ui::wm::WINDOW_TYPE/g'
$ git commit -a -m.
$ git clang-format HEAD^ --style=Chromium
$ git commit -a -m.
* Move window_types.h header from ui/aura/client/ to ui/wm/public/
BUG=319638
TEST=ash_unittests, aura_unittests, views_unittests, unit_tests
R=ben@chromium.org
Review URL: https://codereview.chromium.org/115153002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@241752 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/wm')
-rw-r--r-- | ui/wm/public/window_types.h | 36 | ||||
-rw-r--r-- | ui/wm/wm.gyp | 7 |
2 files changed, 43 insertions, 0 deletions
diff --git a/ui/wm/public/window_types.h b/ui/wm/public/window_types.h new file mode 100644 index 0000000..8a9f8b9 --- /dev/null +++ b/ui/wm/public/window_types.h @@ -0,0 +1,36 @@ +// Copyright 2013 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +#ifndef UI_WM_PUBLIC_WINDOW_TYPES_H_ +#define UI_WM_PUBLIC_WINDOW_TYPES_H_ + +namespace ui { +namespace wm { + +// This isn't a property because it can't change after the window has been +// initialized. +enum WindowType { + WINDOW_TYPE_UNKNOWN = 0, + + // Regular windows that should be laid out by the client. + WINDOW_TYPE_NORMAL, + + // Miscellaneous windows that should not be laid out by the shell. + WINDOW_TYPE_POPUP, + + // A window intended as a control. Not laid out by the shell. + WINDOW_TYPE_CONTROL, + + // Always on top windows aligned to bottom right of screen. + WINDOW_TYPE_PANEL, + + WINDOW_TYPE_MENU, + + WINDOW_TYPE_TOOLTIP, +}; + +} // namespace wm +} // namespace ui + +#endif // UI_WM_PUBLIC_WINDOW_TYPES_H_ diff --git a/ui/wm/wm.gyp b/ui/wm/wm.gyp index 4a681c1..5063551 100644 --- a/ui/wm/wm.gyp +++ b/ui/wm/wm.gyp @@ -8,6 +8,13 @@ }, 'targets': [ { + 'target_name': 'wm_public', + 'type': 'static_library', + 'sources': [ + 'public/window_types.h', + ], + }, + { 'target_name': 'wm_test_support', 'type': 'static_library', 'dependencies': [ |