| OLD | NEW |
| 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 DOMView; |
| 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 |
| 27 virtual void Layout(); |
| 28 |
| 26 protected: | 29 protected: |
| 27 // Overridden from OpaqueBrowserFrameView | 30 // Overridden from OpaqueBrowserFrameView |
| 28 virtual int GetReservedHeight() const; | 31 virtual int GetReservedHeight() const; |
| 29 | 32 |
| 30 private: | 33 private: |
| 31 virtual void InitVirtualKeyboard(); | 34 virtual void InitVirtualKeyboard(); |
| 32 virtual void UpdateKeyboardAndLayout(bool should_show_keyboard); | 35 virtual void UpdateKeyboardAndLayout(bool should_show_keyboard); |
| 33 | 36 |
| 34 // Overridden from NotificationObserver. | 37 // Overridden from NotificationObserver. |
| 35 virtual void Observe(NotificationType type, | 38 virtual void Observe(NotificationType type, |
| 36 const NotificationSource& source, | 39 const NotificationSource& source, |
| 37 const NotificationDetails& details); | 40 const NotificationDetails& details); |
| 38 | 41 |
| 39 bool keyboard_showing_; | 42 bool keyboard_showing_; |
| 40 DOMView* keyboard_; | 43 DOMView* keyboard_; |
| 41 NotificationRegistrar registrar_; | 44 NotificationRegistrar registrar_; |
| 42 | 45 |
| 43 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); | 46 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); |
| 44 }; | 47 }; |
| 45 | 48 |
| 46 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ | 49 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ |
| OLD | NEW |