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

Side by Side Diff: ash/content/screen_orientation_delegate_chromeos.cc

Issue 2629643002: chromeos: Renames WmWindowAura to WmWindow (Closed)
Patch Set: feedback Created 3 years, 11 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 | « ash/common/wm_window.cc ('k') | ash/display/screen_ash.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "ash/content/screen_orientation_delegate_chromeos.h" 5 #include "ash/content/screen_orientation_delegate_chromeos.h"
6 6
7 #include "ash/aura/wm_window_aura.h" 7 #include "ash/common/wm_window.h"
8 #include "ash/display/screen_orientation_controller_chromeos.h" 8 #include "ash/display/screen_orientation_controller_chromeos.h"
9 #include "ash/shell.h" 9 #include "ash/shell.h"
10 #include "content/public/browser/screen_orientation_provider.h" 10 #include "content/public/browser/screen_orientation_provider.h"
11 #include "content/public/browser/web_contents.h" 11 #include "content/public/browser/web_contents.h"
12 12
13 namespace ash { 13 namespace ash {
14 14
15 ScreenOrientationDelegateChromeos::ScreenOrientationDelegateChromeos() { 15 ScreenOrientationDelegateChromeos::ScreenOrientationDelegateChromeos() {
16 content::ScreenOrientationProvider::SetDelegate(this); 16 content::ScreenOrientationProvider::SetDelegate(this);
17 } 17 }
18 18
19 ScreenOrientationDelegateChromeos::~ScreenOrientationDelegateChromeos() { 19 ScreenOrientationDelegateChromeos::~ScreenOrientationDelegateChromeos() {
20 content::ScreenOrientationProvider::SetDelegate(nullptr); 20 content::ScreenOrientationProvider::SetDelegate(nullptr);
21 } 21 }
22 22
23 bool ScreenOrientationDelegateChromeos::FullScreenRequired( 23 bool ScreenOrientationDelegateChromeos::FullScreenRequired(
24 content::WebContents* web_contents) { 24 content::WebContents* web_contents) {
25 return true; 25 return true;
26 } 26 }
27 27
28 void ScreenOrientationDelegateChromeos::Lock( 28 void ScreenOrientationDelegateChromeos::Lock(
29 content::WebContents* web_contents, 29 content::WebContents* web_contents,
30 blink::WebScreenOrientationLockType lock_orientation) { 30 blink::WebScreenOrientationLockType lock_orientation) {
31 Shell::GetInstance() 31 Shell::GetInstance()
32 ->screen_orientation_controller() 32 ->screen_orientation_controller()
33 ->LockOrientationForWindow( 33 ->LockOrientationForWindow(WmWindow::Get(web_contents->GetNativeView()),
34 WmWindowAura::Get(web_contents->GetNativeView()), lock_orientation); 34 lock_orientation);
35 } 35 }
36 36
37 bool ScreenOrientationDelegateChromeos::ScreenOrientationProviderSupported() { 37 bool ScreenOrientationDelegateChromeos::ScreenOrientationProviderSupported() {
38 return Shell::GetInstance() 38 return Shell::GetInstance()
39 ->screen_orientation_controller() 39 ->screen_orientation_controller()
40 ->ScreenOrientationProviderSupported(); 40 ->ScreenOrientationProviderSupported();
41 } 41 }
42 42
43 void ScreenOrientationDelegateChromeos::Unlock( 43 void ScreenOrientationDelegateChromeos::Unlock(
44 content::WebContents* web_contents) { 44 content::WebContents* web_contents) {
45 Shell::GetInstance() 45 Shell::GetInstance()
46 ->screen_orientation_controller() 46 ->screen_orientation_controller()
47 ->UnlockOrientationForWindow( 47 ->UnlockOrientationForWindow(
48 WmWindowAura::Get(web_contents->GetNativeView())); 48 WmWindow::Get(web_contents->GetNativeView()));
49 } 49 }
50 50
51 } // namespace ash 51 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/wm_window.cc ('k') | ash/display/screen_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698