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 4329b07d3e62ba6e94f70408506a8796223afee1..5e4eefbbca1d20d124d00a62f692d82942728121 100644 |
--- a/chrome/browser/ui/touch/frame/touch_browser_frame_view.h |
+++ b/chrome/browser/ui/touch/frame/touch_browser_frame_view.h |
@@ -8,11 +8,15 @@ |
#include "chrome/browser/ui/views/frame/opaque_browser_frame_view.h" |
+#include "content/browser/sensors/sensors_provider.h" |
+#include "content/common/sensors.h" |
+ |
class BrowserFrame; |
class BrowserView; |
class TouchBrowserFrameView |
- : public OpaqueBrowserFrameView { |
+ : public OpaqueBrowserFrameView, |
+ public sensors::Listener { |
public: |
// Internal class name. |
static const char kViewClassName[]; |
@@ -21,11 +25,17 @@ class TouchBrowserFrameView |
TouchBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); |
virtual ~TouchBrowserFrameView(); |
+ // sensors::Listener implementation |
+ virtual void OnScreenOrientationChanged( |
+ const sensors::ScreenOrientation& change) OVERRIDE; |
+ |
private: |
// Overridden from views::View |
virtual std::string GetClassName() const OVERRIDE; |
virtual bool HitTest(const gfx::Point& point) const OVERRIDE; |
+ bool initialized_screen_rotation_; |
+ |
DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); |
}; |