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

Unified Diff: chrome/browser/ui/touch/frame/touch_browser_frame_view.h

Issue 7273073: Animated Rotation (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Address reviewer comments Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
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);
};
« no previous file with comments | « chrome/browser/ui/touch/animation/screen_rotation_setter.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