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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..12d932817c674d1f41a47c4d477b3b2e52fc22db |
--- /dev/null |
+++ b/chrome/browser/ui/touch/frame/touch_browser_frame_view.h |
@@ -0,0 +1,45 @@ |
+// Copyright (c) 2010 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_TOUCH_BROWSER_FRAME_VIEW_H_ |
+#define CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ |
+#pragma once |
+ |
+#include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
+#include "chrome/common/notification_observer.h" |
+#include "chrome/common/notification_registrar.h" |
+ |
+class BrowserFrame; |
+class BrowserView; |
+class DOMView; |
+class NotificationDetails; |
+class NotificationSource; |
+ |
+class TouchBrowserFrameView : public OpaqueBrowserFrameView, |
+ public NotificationObserver { |
+ public: |
+ // Constructs a non-client view for an BrowserFrame. |
+ TouchBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
+ virtual ~TouchBrowserFrameView(); |
+ |
+ protected: |
+ // Overridden from OpaqueBrowserFrameView |
+ virtual int GetReservedHeight() const; |
+ |
+ private: |
+ virtual void InitVirtualKeyboard(); |
+ virtual void UpdateKeyboardAndLayout(bool should_show_keyboard); |
+ |
+ // Overridden from NotificationObserver. |
+ virtual void Observe(NotificationType type, |
+ const NotificationSource& source, |
+ const NotificationDetails& details); |
+ |
+ DOMView* keyboard_; |
+ NotificationRegistrar registrar_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); |
+}; |
+ |
+#endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ |