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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_
7 #pragma once
8
9 #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h"
10 #include "chrome/common/notification_observer.h"
11 #include "chrome/common/notification_registrar.h"
12
13 class BrowserFrame;
14 class BrowserView;
15 class DOMView;
16 class NotificationDetails;
17 class NotificationSource;
18
19 class TouchBrowserFrameView : public OpaqueBrowserFrameView,
20 public NotificationObserver {
21 public:
22 // Constructs a non-client view for an BrowserFrame.
23 TouchBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view);
24 virtual ~TouchBrowserFrameView();
25
26 protected:
27 // Overridden from OpaqueBrowserFrameView
28 virtual int GetReservedHeight() const;
29
30 private:
31 virtual void InitVirtualKeyboard();
32 virtual void UpdateKeyboardAndLayout(bool should_show_keyboard);
33
34 // Overridden from NotificationObserver.
35 virtual void Observe(NotificationType type,
36 const NotificationSource& source,
37 const NotificationDetails& details);
38
39 DOMView* keyboard_;
40 NotificationRegistrar registrar_;
41
42 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView);
43 };
44
45 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698