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

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

Issue 7074008: initial version of auto VK switching. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: demo update Created 9 years, 6 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
Index: chrome/browser/ui/touch/frame/touch_browser_frame_view.h
diff --git a/chrome/browser/ui/touch/frame/touch_browser_frame_view.h b/chrome/browser/ui/touch/frame/touch_browser_frame_view.h
index 51fb6f7aefa2725b5e65100d1a0f6e74866d1c66..4fcefcedc0308685c9447a7702ed3af809ae1b34 100644
--- a/chrome/browser/ui/touch/frame/touch_browser_frame_view.h
+++ b/chrome/browser/ui/touch/frame/touch_browser_frame_view.h
@@ -13,6 +13,10 @@
#include "ui/base/animation/animation_delegate.h"
#include "views/focus/focus_manager.h"
+#if defined(OS_CHROMEOS)
+#include "chrome/browser/chromeos/cros/input_method_library.h"
+#endif
+
class BrowserFrame;
class BrowserView;
class KeyboardContainerView;
@@ -23,10 +27,14 @@ namespace ui {
class SlideAnimation;
}
-class TouchBrowserFrameView : public OpaqueBrowserFrameView,
- public views::FocusChangeListener,
- public TabStripModelObserver,
- public ui::AnimationDelegate {
+class TouchBrowserFrameView
+ : public OpaqueBrowserFrameView,
+ public views::FocusChangeListener,
+ public TabStripModelObserver,
+#if defined(OS_CHROMEOS)
+ public chromeos::InputMethodLibrary::VirtualKeyboardObserver,
+#endif
+ public ui::AnimationDelegate {
public:
enum VirtualKeyboardType {
NONE,
@@ -51,6 +59,14 @@ class TouchBrowserFrameView : public OpaqueBrowserFrameView,
virtual void FocusWillChange(views::View* focused_before,
views::View* focused_now);
+#if defined(OS_CHROMEOS)
+ // InputMethodLibrary::VirtualKeyboardObserver implementation.
+ virtual void VirtualKeyboardChanged(
+ chromeos::InputMethodLibrary* obj,
+ const chromeos::input_method::VirtualKeyboard& virtual_keyboard,
+ const std::string& virtual_keyboard_layout);
+#endif
+
protected:
// Overridden from OpaqueBrowserFrameView
virtual int GetReservedHeight() const;
« no previous file with comments | « chrome/browser/ui/touch/frame/keyboard_container_view.cc ('k') | chrome/browser/ui/touch/frame/touch_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698