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

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

Issue 8400059: Revert 107715 - Enable the new layer animation framework. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/ui/touch/frame/touch_browser_frame_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 10
11 #include "content/browser/sensors/sensors_provider.h"
12 #include "content/common/sensors.h"
13
11 class BrowserFrame; 14 class BrowserFrame;
12 class BrowserView; 15 class BrowserView;
13 16
14 class TouchBrowserFrameView 17 class TouchBrowserFrameView
15 : public OpaqueBrowserFrameView { 18 : public OpaqueBrowserFrameView,
19 public sensors::Listener {
16 public: 20 public:
17 // Internal class name. 21 // Internal class name.
18 static const char kViewClassName[]; 22 static const char kViewClassName[];
19 23
20 // Constructs a non-client view for an BrowserFrame. 24 // Constructs a non-client view for an BrowserFrame.
21 TouchBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view); 25 TouchBrowserFrameView(BrowserFrame* frame, BrowserView* browser_view);
22 virtual ~TouchBrowserFrameView(); 26 virtual ~TouchBrowserFrameView();
23 27
28 // sensors::Listener implementation
29 virtual void OnScreenOrientationChanged(
30 const sensors::ScreenOrientation& change) OVERRIDE;
31
24 private: 32 private:
25 // Overridden from views::View 33 // Overridden from views::View
26 virtual std::string GetClassName() const OVERRIDE; 34 virtual std::string GetClassName() const OVERRIDE;
27 virtual bool HitTest(const gfx::Point& point) const OVERRIDE; 35 virtual bool HitTest(const gfx::Point& point) const OVERRIDE;
28 36
29 bool initialized_screen_rotation_; 37 bool initialized_screen_rotation_;
30 38
31 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView); 39 DISALLOW_COPY_AND_ASSIGN(TouchBrowserFrameView);
32 }; 40 };
33 41
34 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_ 42 #endif // CHROME_BROWSER_UI_TOUCH_FRAME_TOUCH_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | 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