• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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.
4 
5 #ifndef CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
6 #define CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
7 #pragma once
8 
9 #include "views/view.h"
10 
11 class DOMView;
12 class Profile;
13 
14 // A class that contains and decorates the virtual keyboard.
15 //
16 // This class is also responsible for managing focus of all views related to
17 // the keyboard to prevent them from interfering with the ClientView.
18 class KeyboardContainerView : public views::View {
19  public:
20   explicit KeyboardContainerView(Profile* profile);
21   virtual ~KeyboardContainerView();
22 
23   // Overridden from views::View
24   virtual void Layout();
25 
26  protected:
27   // Overridden from views::View
28   virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
29 
30  private:
31   DOMView* dom_view_;
32 
33   DISALLOW_COPY_AND_ASSIGN(KeyboardContainerView);
34 };
35 
36 #endif  // CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
37