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

Side by Side Diff: ash/aura/wm_window_aura.h

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: 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
« no previous file with comments | « no previous file | ash/aura/wm_window_aura.cc » ('j') | ash/common/wm_window.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_AURA_WM_WINDOW_AURA_H_ 5 #ifndef ASH_AURA_WM_WINDOW_AURA_H_
6 #define ASH_AURA_WM_WINDOW_AURA_H_ 6 #define ASH_AURA_WM_WINDOW_AURA_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/common/wm_window.h" 9 #include "ash/common/wm_window.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/observer_list.h" 11 #include "base/observer_list.h"
12 #include "ui/aura/window_observer.h" 12 #include "ui/aura/window_observer.h"
13 #include "ui/gfx/geometry/rect.h"
13 #include "ui/wm/core/transient_window_observer.h" 14 #include "ui/wm/core/transient_window_observer.h"
14 15
15 namespace ash { 16 namespace ash {
16 17
17 // WmWindowAura is tied to the life of the underlying aura::Window. 18 // WmWindowAura is tied to the life of the underlying aura::Window.
18 class ASH_EXPORT WmWindowAura : public WmWindow, 19 class ASH_EXPORT WmWindowAura : public WmWindow,
19 public aura::WindowObserver, 20 public aura::WindowObserver,
20 public ::wm::TransientWindowObserver { 21 public ::wm::TransientWindowObserver {
21 public: 22 public:
22 explicit WmWindowAura(aura::Window* window); 23 explicit WmWindowAura(aura::Window* window);
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 bool GetTargetVisibility() const override; 73 bool GetTargetVisibility() const override;
73 bool IsVisible() const override; 74 bool IsVisible() const override;
74 void SetOpacity(float opacity) override; 75 void SetOpacity(float opacity) override;
75 float GetTargetOpacity() const override; 76 float GetTargetOpacity() const override;
76 void SetTransform(const gfx::Transform& transform) override; 77 void SetTransform(const gfx::Transform& transform) override;
77 gfx::Transform GetTargetTransform() const override; 78 gfx::Transform GetTargetTransform() const override;
78 bool IsSystemModal() const override; 79 bool IsSystemModal() const override;
79 bool GetBoolProperty(WmWindowProperty key) override; 80 bool GetBoolProperty(WmWindowProperty key) override;
80 int GetIntProperty(WmWindowProperty key) override; 81 int GetIntProperty(WmWindowProperty key) override;
81 void SetIntProperty(WmWindowProperty key, int value) override; 82 void SetIntProperty(WmWindowProperty key, int value) override;
83 gfx::Rect* GetRectProperty(WmWindowProperty key) override;
82 ShelfItemDetails* GetShelfItemDetails() override; 84 ShelfItemDetails* GetShelfItemDetails() override;
83 void SetShelfItemDetails(const ShelfItemDetails& details) override; 85 void SetShelfItemDetails(const ShelfItemDetails& details) override;
84 void ClearShelfItemDetails() override; 86 void ClearShelfItemDetails() override;
85 const wm::WindowState* GetWindowState() const override; 87 const wm::WindowState* GetWindowState() const override;
86 WmWindow* GetToplevelWindow() override; 88 WmWindow* GetToplevelWindow() override;
87 WmWindow* GetToplevelWindowForFocus() override; 89 WmWindow* GetToplevelWindowForFocus() override;
88 void SetParentUsingContext(WmWindow* context, 90 void SetParentUsingContext(WmWindow* context,
89 const gfx::Rect& screen_bounds) override; 91 const gfx::Rect& screen_bounds) override;
90 void AddChild(WmWindow* window) override; 92 void AddChild(WmWindow* window) override;
91 WmWindow* GetParent() override; 93 WmWindow* GetParent() override;
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 204
203 bool added_transient_observer_ = false; 205 bool added_transient_observer_ = false;
204 base::ObserverList<WmTransientWindowObserver> transient_observers_; 206 base::ObserverList<WmTransientWindowObserver> transient_observers_;
205 207
206 DISALLOW_COPY_AND_ASSIGN(WmWindowAura); 208 DISALLOW_COPY_AND_ASSIGN(WmWindowAura);
207 }; 209 };
208 210
209 } // namespace ash 211 } // namespace ash
210 212
211 #endif // ASH_AURA_WM_WINDOW_AURA_H_ 213 #endif // ASH_AURA_WM_WINDOW_AURA_H_
OLDNEW
« no previous file with comments | « no previous file | ash/aura/wm_window_aura.cc » ('j') | ash/common/wm_window.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698