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

Unified Diff: chrome/browser/chromeos/login/touch_login_view.h

Issue 7302015: A keyboard widget that manages itself (the animation and all that). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge with trunk Created 9 years, 4 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/chromeos/login/touch_login_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/login/touch_login_view.h
diff --git a/chrome/browser/chromeos/login/touch_login_view.h b/chrome/browser/chromeos/login/touch_login_view.h
deleted file mode 100644
index e447f962ee7bacef50856e46aa050148bd1db929..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/login/touch_login_view.h
+++ /dev/null
@@ -1,89 +0,0 @@
-// 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_CHROMEOS_LOGIN_TOUCH_LOGIN_VIEW_H_
-#define CHROME_BROWSER_CHROMEOS_LOGIN_TOUCH_LOGIN_VIEW_H_
-#pragma once
-
-#include "chrome/browser/chromeos/login/webui_login_view.h"
-#include "content/common/notification_observer.h"
-#include "content/common/notification_registrar.h"
-#include "ui/base/animation/animation_delegate.h"
-#include "views/focus/focus_manager.h"
-
-class KeyboardContainerView;
-class NotificationDetails;
-class NotificationSource;
-
-namespace ui {
-class SlideAnimation;
-}
-
-namespace chromeos {
-
-// Subclass of the WebUILoginView. This view adds in support for a virtual
-// keyboard, which appears and disappears depending if text areas have
-// focus. This is only build in TOUCH_UI enabled builds.
-class TouchLoginView : public WebUILoginView,
- public views::FocusChangeListener,
- public NotificationObserver,
- public ui::AnimationDelegate {
- public:
- enum VirtualKeyboardType {
- NONE,
- GENERIC,
- URL,
- };
-
- TouchLoginView();
- virtual ~TouchLoginView();
-
- // Overriden from WebUILoginView:
- virtual void Init() OVERRIDE;
-
- // Overriden from views::Views:
- virtual std::string GetClassName() const OVERRIDE;
-
- // Overridden from views::FocusChangeListener:
- virtual void FocusWillChange(views::View* focused_before,
- views::View* focused_now) OVERRIDE;
-
- // Overridden from chromeos::WebUILoginView:
- virtual void OnWindowCreated() OVERRIDE;
-
- protected:
- // Overridden from views::View:
- virtual void Layout() OVERRIDE;
-
- // Overridden from chromeos::WebUILoginView:
- virtual void InitStatusArea() OVERRIDE;
-
- private:
- void InitVirtualKeyboard();
- void UpdateKeyboardAndLayout(bool should_show_keyboard);
- VirtualKeyboardType DecideKeyboardStateForView(views::View* view);
-
- // Overridden from NotificationObserver.
- virtual void Observe(int type,
- const NotificationSource& source,
- const NotificationDetails& details) OVERRIDE;
-
- // Overridden from ui::AnimationDelegate:
- virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
- virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
-
- bool keyboard_showing_;
- int keyboard_height_;
- bool focus_listener_added_;
- KeyboardContainerView* keyboard_;
- NotificationRegistrar registrar_;
-
- scoped_ptr<ui::SlideAnimation> animation_;
-
- DISALLOW_COPY_AND_ASSIGN(TouchLoginView);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_LOGIN_TOUCH_LOGIN_VIEW_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/touch_login_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698