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

Side by Side Diff: chrome/browser/ui/touch/frame/touch_browser_frame_view.h

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