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

Unified Diff: chrome/browser/ui/touch/frame/keyboard_container_view.h

Issue 6020013: Wrap the virtual keyboard in a container view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: last patch was missing changes Created 9 years, 11 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 | « no previous file | chrome/browser/ui/touch/frame/keyboard_container_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/touch/frame/keyboard_container_view.h
diff --git a/chrome/browser/ui/touch/frame/keyboard_container_view.h b/chrome/browser/ui/touch/frame/keyboard_container_view.h
new file mode 100644
index 0000000000000000000000000000000000000000..a5e2040f1a9bd7c6ddf4378b89afb3cc932fd3f2
--- /dev/null
+++ b/chrome/browser/ui/touch/frame/keyboard_container_view.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2011 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 CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
+#define CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
+#pragma once
+
+#include "views/view.h"
+
+class DOMView;
+class Profile;
+
+// A class that contains and decorates the virtual keyboard.
+//
+// This class is also responsible for managing focus of all views related to
+// the keyboard to prevent them from interfering with the ClientView.
+class KeyboardContainerView : public views::View {
+ public:
+ explicit KeyboardContainerView(Profile* profile);
+ virtual ~KeyboardContainerView();
+
+ // Overridden from views::View
+ virtual void Layout();
+
+ protected:
+ // Overridden from views::View
+ virtual void ViewHierarchyChanged(bool is_add, View* parent, View* child);
+
+ private:
+ DOMView* dom_view_;
+
+ DISALLOW_COPY_AND_ASSIGN(KeyboardContainerView);
+};
+
+#endif // CHROME_BROWSER_UI_TOUCH_FRAME_KEYBOARD_CONTAINER_VIEW_H_
« no previous file with comments | « no previous file | chrome/browser/ui/touch/frame/keyboard_container_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698