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

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

Issue 5747001: Add the virtual keyboard to BrowserFrameChromeos. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 10 years 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
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_

Powered by Google App Engine
This is Rietveld 408576698