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

Unified Diff: ash/wm/virtual_keyboard_container_layout_manager.h

Issue 617553002: Fix size and position of the virtual keyboard after a screen rotation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Disable display rotation test on Windows. Created 6 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/wm/virtual_keyboard_container_layout_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/wm/virtual_keyboard_container_layout_manager.h
diff --git a/ash/wm/virtual_keyboard_container_layout_manager.h b/ash/wm/virtual_keyboard_container_layout_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..1b849e57214c01d84f949b897260b9120551cbeb
--- /dev/null
+++ b/ash/wm/virtual_keyboard_container_layout_manager.h
@@ -0,0 +1,33 @@
+// Copyright 2014 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 ASH_WM_VIRTUAL_KEYBOARD_CONTAINER_LAYOUT_MANAGER_H_
+#define ASH_WM_VIRTUAL_KEYBOARD_CONTAINER_LAYOUT_MANAGER_H_
+
+#include "ash/snap_to_pixel_layout_manager.h"
+#include "base/macros.h"
+
+namespace aura {
+class Window;
+}
+
+namespace ash {
+
+class VirtualKeyboardContainerLayoutManager : public SnapToPixelLayoutManager {
+ public:
+ explicit VirtualKeyboardContainerLayoutManager(aura::Window* container);
+ virtual ~VirtualKeyboardContainerLayoutManager();
+
+ // Overridden from SnapToPixelLayoutManager:
+ virtual void OnWindowResized() OVERRIDE;
+
+ private:
+ aura::Window* parent_container_;
+
+ DISALLOW_COPY_AND_ASSIGN(VirtualKeyboardContainerLayoutManager);
+};
+
+} // namespace ash
+
+#endif // ASH_WM_VIRTUAL_KEYBOARD_CONTAINER_LAYOUT_MANAGER_H_
« no previous file with comments | « ash/root_window_controller_unittest.cc ('k') | ash/wm/virtual_keyboard_container_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698