| 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
|
| index 6f02128ae938f38461a7dcfa2c11c645494b5d12..30a55a320eeb360803a07fd8e662ed6c314ff66f 100644
|
| --- a/chrome/browser/ui/touch/frame/touch_browser_frame_view.h
|
| +++ b/chrome/browser/ui/touch/frame/touch_browser_frame_view.h
|
| @@ -8,8 +8,10 @@
|
|
|
| #include "chrome/browser/tabs/tab_strip_model_observer.h"
|
| #include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h"
|
| +#include "content/browser/sensors/provider.h"
|
| #include "content/common/notification_observer.h"
|
| #include "content/common/notification_registrar.h"
|
| +#include "content/common/sensors.h"
|
| #include "ui/base/animation/animation_delegate.h"
|
| #include "views/focus/focus_manager.h"
|
|
|
| @@ -35,7 +37,8 @@ class TouchBrowserFrameView
|
| public
|
| chromeos::input_method::InputMethodManager::VirtualKeyboardObserver,
|
| #endif
|
| - public ui::AnimationDelegate {
|
| + public ui::AnimationDelegate,
|
| + public sensors::Listener {
|
| public:
|
| enum VirtualKeyboardType {
|
| NONE,
|
| @@ -68,6 +71,10 @@ class TouchBrowserFrameView
|
| const std::string& virtual_keyboard_layout);
|
| #endif
|
|
|
| + // sensors::Listener implementation
|
| + virtual void OnScreenOrientationChanged(
|
| + const sensors::ScreenOrientation& change) OVERRIDE;
|
| +
|
| protected:
|
| // Overridden from OpaqueBrowserFrameView
|
| virtual int GetReservedHeight() const;
|
| @@ -103,6 +110,9 @@ class TouchBrowserFrameView
|
| KeyboardContainerView* keyboard_;
|
| NotificationRegistrar registrar_;
|
|
|
| + // the degrees the frame is rotated.
|
| + int degrees_;
|
| +
|
| scoped_ptr<ui::SlideAnimation> animation_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView);
|
|
|