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

Side by Side Diff: ash/content/display/screen_orientation_controller_chromeos.h

Issue 934843002: Implement DeviceMotionEvent API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix missed test Created 5 years, 9 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 unified diff | Download patch
« no previous file with comments | « no previous file | ash/content/display/screen_orientation_controller_chromeos.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ 5 #ifndef ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_
6 #define ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ 6 #define ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 // aura::client::ActivationChangeObserver: 75 // aura::client::ActivationChangeObserver:
76 void OnWindowActivated(aura::Window* gained_active, 76 void OnWindowActivated(aura::Window* gained_active,
77 aura::Window* lost_active) override; 77 aura::Window* lost_active) override;
78 78
79 // aura::WindowObserver: 79 // aura::WindowObserver:
80 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override; 80 void OnWindowVisibilityChanged(aura::Window* window, bool visible) override;
81 void OnWindowDestroying(aura::Window* window) override; 81 void OnWindowDestroying(aura::Window* window) override;
82 82
83 // chromeos::AccelerometerReader::Observer: 83 // chromeos::AccelerometerReader::Observer:
84 void OnAccelerometerUpdated( 84 void OnAccelerometerUpdated(
85 const chromeos::AccelerometerUpdate& update) override; 85 scoped_refptr<const chromeos::AccelerometerUpdate> update) override;
86 86
87 // content::ScreenOrientationDelegate: 87 // content::ScreenOrientationDelegate:
88 bool FullScreenRequired(content::WebContents* web_contents) override; 88 bool FullScreenRequired(content::WebContents* web_contents) override;
89 void Lock(content::WebContents* web_contents, 89 void Lock(content::WebContents* web_contents,
90 blink::WebScreenOrientationLockType lock_orientation) override; 90 blink::WebScreenOrientationLockType lock_orientation) override;
91 bool ScreenOrientationProviderSupported() override; 91 bool ScreenOrientationProviderSupported() override;
92 void Unlock(content::WebContents* web_contents) override; 92 void Unlock(content::WebContents* web_contents) override;
93 93
94 // DisplayController::Observer: 94 // DisplayController::Observer:
95 void OnDisplayConfigurationChanged() override; 95 void OnDisplayConfigurationChanged() override;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 // Tracks all windows that have requested a lock, as well as the requested 180 // Tracks all windows that have requested a lock, as well as the requested
181 // orientation. 181 // orientation.
182 std::map<aura::Window*, blink::WebScreenOrientationLockType> locking_windows_; 182 std::map<aura::Window*, blink::WebScreenOrientationLockType> locking_windows_;
183 183
184 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController); 184 DISALLOW_COPY_AND_ASSIGN(ScreenOrientationController);
185 }; 185 };
186 186
187 } // namespace ash 187 } // namespace ash
188 188
189 #endif // ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_ 189 #endif // ASH_CONTENT_DISPLAY_SCREEN_ORIENTATION_CONTROLLER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « no previous file | ash/content/display/screen_orientation_controller_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698