Roll crashpad DEPS to 5069c2903a1be6e717c526595c85f8736033e5e8.
[chromium-blink-merge.git] / ui / keyboard / keyboard_layout_manager.h
blob1500d51dbc6aa0e6e2cc2bce612f2b48e6157936
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
3 // found in the LICENSE file.
5 #ifndef UI_KEYBOARD_KEYBOARD_LAYOUT_MANAGER_H_
6 #define UI_KEYBOARD_KEYBOARD_LAYOUT_MANAGER_H_
8 #include "ui/aura/layout_manager.h"
9 #include "ui/aura/window.h"
11 namespace keyboard {
13 class KeyboardController;
15 // LayoutManager for the virtual keyboard container. Manages a single window
16 // (the virtual keyboard) and keeps it positioned at the bottom of the
17 // owner window.
18 class KeyboardLayoutManager : public aura::LayoutManager {
19 public:
20 explicit KeyboardLayoutManager(KeyboardController* controller)
21 : controller_(controller), keyboard_(NULL) {
24 // Overridden from aura::LayoutManager
25 void OnWindowResized() override;
26 void OnWindowAddedToLayout(aura::Window* child) override;
27 void OnWillRemoveWindowFromLayout(aura::Window* child) override {}
28 void OnWindowRemovedFromLayout(aura::Window* child) override {}
29 void OnChildWindowVisibilityChanged(aura::Window* child,
30 bool visible) override {}
31 void SetChildBounds(aura::Window* child,
32 const gfx::Rect& requested_bounds) override;
34 private:
35 KeyboardController* controller_;
36 aura::Window* keyboard_;
38 DISALLOW_COPY_AND_ASSIGN(KeyboardLayoutManager);
41 } // namespace keyboard
43 #endif // UI_KEYBOARD_KEYBOARD_LAYOUT_MANAGER_H_