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

Side by Side Diff: ash/wm/lock_layout_manager.h

Issue 1205063002: Fix user pod not always scroll to the center after VK shows up (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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/wm/lock_layout_manager.cc » ('j') | ui/keyboard/keyboard_controller.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_WM_LOCK_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_LOCK_LAYOUT_MANAGER_H_
6 #define ASH_WM_LOCK_LAYOUT_MANAGER_H_ 6 #define ASH_WM_LOCK_LAYOUT_MANAGER_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/shell_delegate.h" 9 #include "ash/shell_delegate.h"
10 #include "ash/snap_to_pixel_layout_manager.h" 10 #include "ash/snap_to_pixel_layout_manager.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 void OnWindowDestroying(aura::Window* window) override; 73 void OnWindowDestroying(aura::Window* window) override;
74 void OnWindowBoundsChanged(aura::Window* window, 74 void OnWindowBoundsChanged(aura::Window* window,
75 const gfx::Rect& old_bounds, 75 const gfx::Rect& old_bounds,
76 const gfx::Rect& new_bounds) override; 76 const gfx::Rect& new_bounds) override;
77 77
78 // VirtualKeyboardStateObserver overrides: 78 // VirtualKeyboardStateObserver overrides:
79 void OnVirtualKeyboardStateChanged(bool activated) override; 79 void OnVirtualKeyboardStateChanged(bool activated) override;
80 80
81 // keyboard::KeyboardControllerObserver overrides: 81 // keyboard::KeyboardControllerObserver overrides:
82 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override; 82 void OnKeyboardBoundsChanging(const gfx::Rect& new_bounds) override;
83 void OnKeyboardBoundsChanged(const gfx::Rect& new_bounds) override;
83 84
84 private: 85 private:
85 // Adjusts the bounds of all managed windows when the display area changes. 86 // Adjusts the bounds of all managed windows when the display area changes.
86 // This happens when the display size, work area insets has changed. 87 // This happens when the display size, work area insets has changed.
87 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event); 88 void AdjustWindowsForWorkAreaChange(const wm::WMEvent* event);
88 89
89 aura::Window* window_; 90 aura::Window* window_;
90 aura::Window* root_window_; 91 aura::Window* root_window_;
91 92
92 // True is subscribed as keyboard controller observer. 93 // True is subscribed as keyboard controller observer.
93 bool is_observing_keyboard_; 94 bool is_observing_keyboard_;
94 95
95 // The bounds of the keyboard. 96 // The bounds of the keyboard.
96 gfx::Rect keyboard_bounds_; 97 gfx::Rect keyboard_bounds_;
97 98
98 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager); 99 DISALLOW_COPY_AND_ASSIGN(LockLayoutManager);
99 }; 100 };
100 101
101 } // namespace ash 102 } // namespace ash
102 103
103 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_ 104 #endif // ASH_WM_LOCK_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/lock_layout_manager.cc » ('j') | ui/keyboard/keyboard_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698