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

Side by Side Diff: ui/aura/client/aura_constants.cc

Issue 2251843002: Add window property for restore bounds when virtual keyboard is enabled. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove WM property Created 4 years, 4 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
« ash/aura/wm_window_aura.cc ('K') | « ui/aura/client/aura_constants.h ('k') | no next file » | 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 #include "ui/aura/client/aura_constants.h" 5 #include "ui/aura/client/aura_constants.h"
6 6
7 #include "ui/aura/window_property.h" 7 #include "ui/aura/window_property.h"
8 #include "ui/gfx/geometry/rect.h" 8 #include "ui/gfx/geometry/rect.h"
9 9
10 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, bool) 10 DECLARE_EXPORTED_WINDOW_PROPERTY_TYPE(AURA_EXPORT, bool)
(...skipping 16 matching lines...) Expand all
27 DEFINE_WINDOW_PROPERTY_KEY(bool, kCanMinimizeKey, false); 27 DEFINE_WINDOW_PROPERTY_KEY(bool, kCanMinimizeKey, false);
28 DEFINE_WINDOW_PROPERTY_KEY(bool, kCanResizeKey, true); 28 DEFINE_WINDOW_PROPERTY_KEY(bool, kCanResizeKey, true);
29 DEFINE_WINDOW_PROPERTY_KEY(bool, kConstrainedWindowKey, false); 29 DEFINE_WINDOW_PROPERTY_KEY(bool, kConstrainedWindowKey, false);
30 DEFINE_WINDOW_PROPERTY_KEY(bool, kDrawAttentionKey, false); 30 DEFINE_WINDOW_PROPERTY_KEY(bool, kDrawAttentionKey, false);
31 DEFINE_WINDOW_PROPERTY_KEY(bool, kExcludeFromMruKey, false); 31 DEFINE_WINDOW_PROPERTY_KEY(bool, kExcludeFromMruKey, false);
32 DEFINE_WINDOW_PROPERTY_KEY(Window*, kHostWindowKey, nullptr); 32 DEFINE_WINDOW_PROPERTY_KEY(Window*, kHostWindowKey, nullptr);
33 DEFINE_WINDOW_PROPERTY_KEY(ui::ModalType, kModalKey, ui::MODAL_TYPE_NONE); 33 DEFINE_WINDOW_PROPERTY_KEY(ui::ModalType, kModalKey, ui::MODAL_TYPE_NONE);
34 // gfx::Rect object for RestoreBoundsKey property is owned by the window 34 // gfx::Rect object for RestoreBoundsKey property is owned by the window
35 // and will be freed automatically. 35 // and will be freed automatically.
36 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect, kRestoreBoundsKey, nullptr); 36 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect, kRestoreBoundsKey, nullptr);
37 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::Rect,
38 kVirtualKeyboardRestoreBoundsKey,
39 nullptr);
37 DEFINE_WINDOW_PROPERTY_KEY( 40 DEFINE_WINDOW_PROPERTY_KEY(
38 ui::WindowShowState, kRestoreShowStateKey, ui::SHOW_STATE_DEFAULT); 41 ui::WindowShowState, kRestoreShowStateKey, ui::SHOW_STATE_DEFAULT);
39 DEFINE_WINDOW_PROPERTY_KEY( 42 DEFINE_WINDOW_PROPERTY_KEY(
40 ui::WindowShowState, kShowStateKey, ui::SHOW_STATE_DEFAULT); 43 ui::WindowShowState, kShowStateKey, ui::SHOW_STATE_DEFAULT);
41 DEFINE_WINDOW_PROPERTY_KEY(int, kTopViewInset, 0); 44 DEFINE_WINDOW_PROPERTY_KEY(int, kTopViewInset, 0);
42 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::ImageSkia, kWindowIconKey, nullptr); 45 DEFINE_OWNED_WINDOW_PROPERTY_KEY(gfx::ImageSkia, kWindowIconKey, nullptr);
43 46
44 } // namespace client 47 } // namespace client
45 } // namespace aura 48 } // namespace aura
OLDNEW
« ash/aura/wm_window_aura.cc ('K') | « ui/aura/client/aura_constants.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698